1gnutls_x509_crt_get_pk_algorithm(3) gnutls gnutls_x509_crt_get_pk_algorithm(3)
2
3
4

NAME

6       gnutls_x509_crt_get_pk_algorithm  -  return the certificate's PublicKey
7       algorithm
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_get_pk_algorithm(gnutls_x509_crt_t  cert,  unsigned
13       int * bits);
14

ARGUMENTS

16       gnutls_x509_crt_t cert
17                   should contain a gnutls_x509_crt_t structure
18
19       unsigned int * bits
20                   if  bits  is  non null it will hold the size of the parame‐
21                   ters' in bits
22

DESCRIPTION

24       This function will return the public key algorithm of an X.509 certifi‐
25       cate.
26
27       If  bits is non null, it should have enough size to hold the parameters
28       size in bits. For RSA the bits returned is the modulus.   For  DSA  the
29       bits returned are of the public exponent.
30

RETURNS

32       a member of the gnutls_pk_algorithm_t enumeration on success, or a neg‐
33       ative value on error.
34

REPORTING BUGS

36       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
37       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
38       http://www.gnu.org/gethelp/
39
41       Copyright © 2008 Free Software Foundation.
42       Copying and distribution of this file, with  or  without  modification,
43       are  permitted  in  any  medium  without royalty provided the copyright
44       notice and this notice are preserved.
45

SEE ALSO

47       The full documentation for gnutls is maintained as  a  Texinfo  manual.
48       If  the  info  and gnutls programs are properly installed at your site,
49       the command
50
51              info gnutls
52
53       should give you access to the complete manual.
54
55
56
57gnutls                               2.8.6 gnutls_x509_crt_get_pk_algorithm(3)
Impressum