1gnutls_privkey_import_ext(3) gnutls gnutls_privkey_import_ext(3)
2
3
4
6 gnutls_privkey_import_ext - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_privkey_import_ext(gnutls_privkey_t pkey, gnutls_pk_algo‐
12 rithm_t pk, void * userdata, gnutls_privkey_sign_func sign_func,
13 gnutls_privkey_decrypt_func decrypt_func, unsigned int flags);
14
16 gnutls_privkey_t pkey
17 The private key
18
19 gnutls_pk_algorithm_t pk
20 The public key algorithm
21
22 void * userdata
23 private data to be provided to the callbacks
24
25 gnutls_privkey_sign_func sign_func
26 callback for signature operations
27
28 gnutls_privkey_decrypt_func decrypt_func
29 callback for decryption operations
30
31 unsigned int flags
32 Flags for the import
33
35 This function will associate the given callbacks with the
36 gnutls_privkey_t structure. At least one of the two callbacks must be
37 non-null.
38
39 See also gnutls_privkey_import_ext2().
40
42 On success, GNUTLS_E_SUCCESS [22m(0) is returned, otherwise a negative
43 error value.
44
46 3.0
47
49 Report bugs to <bugs@gnutls.org>.
50 Home page: http://www.gnutls.org
51
52
54 Copyright © 2001-2014 Free Software Foundation, Inc..
55 Copying and distribution of this file, with or without modification,
56 are permitted in any medium without royalty provided the copyright
57 notice and this notice are preserved.
58
60 The full documentation for gnutls is maintained as a Texinfo manual.
61 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
62 visit
63
64 http://www.gnutls.org/manual/
65
66gnutls 3.3.29 gnutls_privkey_import_ext(3)