1gnutls_x509_crt_get_pk_rsa_raw(3) gnutls gnutls_x509_crt_get_pk_rsa_raw(3)
2
3
4
6 gnutls_x509_crt_get_pk_rsa_raw - This function will export the RSA pub‐
7 lic key
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crt_get_pk_rsa_raw(gnutls_x509_crt_t crt,
13 gnutls_datum_t * m, gnutls_datum_t * e);
14
16 gnutls_x509_crt_t crt
17 Holds the certificate
18
19 gnutls_datum_t * m
20 will hold the modulus
21
22 gnutls_datum_t * e
23 will hold the public exponent
24
26 This function will export the RSA public key's parameters found in the
27 given structure. The new parameters will be allocated using
28 gnutls_malloc() and will be stored in the appropriate datum.
29
31 GNUTLS_E_SUCCESS on success, otherwise an error.
32
34 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
35 http://www.gnu.org/software/gnutls/ General help using GNU software:
36 http://www.gnu.org/gethelp/
37
39 Copyright © 2008 Free Software Foundation.
40 Copying and distribution of this file, with or without modification,
41 are permitted in any medium without royalty provided the copyright
42 notice and this notice are preserved.
43
45 The full documentation for gnutls is maintained as a Texinfo manual.
46 If the info and gnutls programs are properly installed at your site,
47 the command
48
49 info gnutls
50
51 should give you access to the complete manual.
52
53
54
55gnutls 2.8.6 gnutls_x509_crt_get_pk_rsa_raw(3)