gnutls_sign_callback_set3
Api function
Usage
#include <gnutls/compat.h>
void gnutls_sign_callback_set(gnutls_session_t session, gnutls_sign_func sign_func, void * userdata);
Arguments
gnutls_session_t session
|
is a gnutls session |
|---|---|
gnutls_sign_func sign_func
|
function pointer to application's sign callback. |
void * userdata
|
void pointer that will be passed to sign callback. |
Overview
Set the callback function. The function must have this prototype:
typedef int (*gnutls_sign_func) (gnutls_session_t session, void *userdata, gnutls_certificate_type_t cert_type, const gnutls_datum_t * cert, const gnutls_datum_t * hash, gnutls_datum_t * signature);
The userdata parameter is passed to the sign_func verbatim, and can be used to store application-specific data needed in the callback function. See also gnutls_sign_callback_get().
Deprecated
Use the PKCS 11 or gnutls_privkey_t interfacess like gnutls_privkey_import_ext() instead.
Releases
3 releases since Debian 5.0 (Lenny); the text changed 2 times.