1gnutls_openpgp_crt_get_auth_subkey(3)gnutlsgnutls_openpgp_crt_get_auth_subkey(3)
2
3
4
6 gnutls_openpgp_crt_get_auth_subkey - API function
7
9 #include <gnutls/openpgp.h>
10
11 int gnutls_openpgp_crt_get_auth_subkey(gnutls_openpgp_crt_t crt,
12 gnutls_openpgp_keyid_t keyid, unsigned int flag);
13
15 gnutls_openpgp_crt_t crt
16 the structure that contains the OpenPGP public key.
17
18 gnutls_openpgp_keyid_t keyid
19 the struct to save the keyid.
20
21 unsigned int flag
22 Non-zero indicates that a valid subkey is always returned.
23
25 Returns the 64-bit keyID of the first valid OpenPGP subkey marked for
26 authentication. If flag is non-zero and no authentication subkey
27 exists, then a valid subkey will be returned even if it is not marked
28 for authentication.
29
31 GNUTLS_E_SUCCESS on success, or an error code.
32
34 Report bugs to <bugs@gnutls.org>.
35 Home page: http://www.gnutls.org
36
37
39 Copyright © 2001-2014 Free Software Foundation, Inc..
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
47 visit
48
49 http://www.gnutls.org/manual/
50
51gnutls 3.3.29gnutls_openpgp_crt_get_auth_subkey(3)