1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
@deftypefun {int} {gnutls_privkey_import_ext} (gnutls_privkey_t @var{pkey}, gnutls_pk_algorithm_t @var{pk}, void * @var{userdata}, gnutls_privkey_sign_func @var{sign_func}, gnutls_privkey_decrypt_func @var{decrypt_func}, unsigned int @var{flags})
@var{pkey}: The private key
@var{pk}: The public key algorithm
@var{userdata}: private data to be provided to the callbacks
@var{sign_func}: callback for signature operations
@var{decrypt_func}: callback for decryption operations
@var{flags}: Flags for the import
This function will associate the given callbacks with the
@code{gnutls_privkey_t} structure. At least one of the two callbacks
must be non-null.
See also @code{gnutls_privkey_import_ext2()} .
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
negative error value.
@strong{Since:} 3.0
@end deftypefun
|