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 - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

37       Report bugs to <bugs@gnutls.org>.
38       Home page: https://www.gnutls.org
39
40
42       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
43       Copying  and  distribution  of this file, with or without modification,
44       are permitted in any medium without royalty provided the copyright  no‐
45       tice and this notice are preserved.
46

SEE ALSO

48       The  full  documentation  for gnutls is maintained as a Texinfo manual.
49       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
50       visit
51
52       https://www.gnutls.org/manual/
53
54gnutls                               3.8.2 gnutls_x509_crt_get_pk_algorithm(3)
Impressum