@deftypefun {int} {gnutls_x509_privkey_get_pk_algorithm2} (gnutls_x509_privkey_t @var{key}, unsigned int * @var{bits})
@var{key}: should contain a @code{gnutls_x509_privkey_t} type
@var{bits}: The number of bits in the public key algorithm
This function will return the public key algorithm of a private
key.
@strong{Returns:} a member of the @code{gnutls_pk_algorithm_t} enumeration on
success, or a negative error code on error.
@end deftypefun