1gnutls_sign_callback_set(3) gnutls gnutls_sign_callback_set(3)
2
3
4
6 gnutls_sign_callback_set - API function
7
9 #include <gnutls/compat.h>
10
11 void gnutls_sign_callback_set(gnutls_session_t session,
12 gnutls_sign_func sign_func, void * userdata);
13
15 gnutls_session_t session
16 is a gnutls session
17
18 gnutls_sign_func sign_func
19 function pointer to application's sign callback.
20
21 void * userdata
22 void pointer that will be passed to sign callback.
23
25 Set the callback function. The function must have this prototype:
26
27 typedef int (*gnutls_sign_func) (gnutls_session_t session, void *user‐
28 data, gnutls_certificate_type_t cert_type, const gnutls_datum_t * cert,
29 const gnutls_datum_t * hash, gnutls_datum_t * signature);
30
31 The userdata parameter is passed to the sign_func verbatim, and can
32 be used to store application-specific data needed in the callback func‐
33 tion. See also gnutls_sign_callback_get().
34
36 Use the PKCS 11 or gnutls_privkey_t interfacess like
37 gnutls_privkey_import_ext() instead.
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: http://www.gnutls.org
42
43
45 Copyright © 2001-2014 Free Software Foundation, Inc..
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 http://www.gnutls.org/manual/
56
57gnutls 3.3.29 gnutls_sign_callback_set(3)