



@deftypefun {int} {gnutls_pkcs11_obj_get_pk_algorithm} (gnutls_pkcs11_obj_t @var{obj}, unsigned int * @var{bits})
@var{obj}: The pkcs11 object

@var{bits}: Will hold the rsa/dsa bit count or the ecc curve
This function given a pkcs11 object with privkey_type initialized,
will return the algorithm type on success , and will store the number
of bits if the algo type is @code{GNUTLS_PK_RSA}  or @code{GNUTLS_PK_DSA} , or the curve
if the algo type is @code{GNUTLS_PK_ECDSA} .

The return value needs to be checked to determine if bits represents
the ecc curve or the number of bits.

@strong{Returns:} The private key algorithm associated with the object on success
or a an error code otherwise.

@strong{Since:} 3.8.13
@end deftypefun
