diff options
Diffstat (limited to 'doc/functions/gnutls_pubkey_import_privkey')
-rw-r--r-- | doc/functions/gnutls_pubkey_import_privkey | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/functions/gnutls_pubkey_import_privkey b/doc/functions/gnutls_pubkey_import_privkey new file mode 100644 index 0000000..ed13b70 --- /dev/null +++ b/doc/functions/gnutls_pubkey_import_privkey @@ -0,0 +1,24 @@ + + + + +@deftypefun {int} {gnutls_pubkey_import_privkey} (gnutls_pubkey_t @var{key}, gnutls_privkey_t @var{pkey}, unsigned int @var{usage}, unsigned int @var{flags}) +@var{key}: The public key + +@var{pkey}: The private key + +@var{usage}: GNUTLS_KEY_* key usage flags. + +@var{flags}: should be zero + +Imports the public key from a private. This function will import +the given public key to the abstract @code{gnutls_pubkey_t} type. + +Note that in certain keys this operation may not be possible, e.g., +in other than RSA PKCS@code{11} keys. + +@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a +negative error value. + +@strong{Since:} 2.12.0 +@end deftypefun |