Blame doc/functions/gnutls_privkey_import_ext

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@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})
Packit aea12f
@var{pkey}: The private key
Packit aea12f
Packit aea12f
@var{pk}: The public key algorithm
Packit aea12f
Packit aea12f
@var{userdata}: private data to be provided to the callbacks
Packit aea12f
Packit aea12f
@var{sign_func}: callback for signature operations
Packit aea12f
Packit aea12f
@var{decrypt_func}: callback for decryption operations
Packit aea12f
Packit aea12f
@var{flags}: Flags for the import
Packit aea12f
Packit aea12f
This function will associate the given callbacks with the
Packit aea12f
@code{gnutls_privkey_t}  type. At least one of the two callbacks
Packit aea12f
must be non-null.
Packit aea12f
Packit aea12f
Note that the signing function is supposed to "raw" sign data, i.e.,
Packit aea12f
without any hashing or preprocessing. In case of RSA the DigestInfo
Packit aea12f
will be provided, and the signing function is expected to do the PKCS @code{1} 
Packit aea12f
1.5 padding and the exponentiation.
Packit aea12f
Packit aea12f
See also @code{gnutls_privkey_import_ext3()} .
Packit aea12f
Packit aea12f
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
Packit aea12f
negative error value.
Packit aea12f
Packit aea12f
@strong{Since:} 3.0
Packit aea12f
@end deftypefun