1gnutls_pkcs11_privkey_export_pubkey(3g)nutlgsnutls_pkcs11_privkey_export_pubkey(3)
2
3
4
6 gnutls_pkcs11_privkey_export_pubkey - API function
7
9 #include <gnutls/pkcs11.h>
10
11 int gnutls_pkcs11_privkey_export_pubkey(gnutls_pkcs11_privkey_t pkey,
12 gnutls_x509_crt_fmt_t fmt, gnutls_datum_t * data, unsigned int flags);
13
15 gnutls_pkcs11_privkey_t pkey
16 The private key
17
18 gnutls_x509_crt_fmt_t fmt
19 the format of output params. PEM or DER.
20
21 gnutls_datum_t * data
22 will hold the public key
23
24 unsigned int flags
25 should be zero
26
28 This function will extract the public key (modulus and public exponent)
29 from the private key specified by the url private key. This public
30 key will be stored in pubkey in the format specified by fmt . pubkey
31 should be deinitialized using gnutls_free().
32
34 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
35 error value.
36
38 3.3.7
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: https://www.gnutls.org
43
44
46 Copyright © 2001- Free Software Foundation, Inc., and others.
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 https://www.gnutls.org/manual/
57
58gnutls 3.6.1g5nutls_pkcs11_privkey_export_pubkey(3)