gnutls_privkey_import_x5093
Api function
Arguments
- gnutls_privkey_t pkey
-
The private key
- gnutls_x509_privkey_t key
-
The private key to be imported
- unsigned int flags
-
Flags for the import
Overview
This function will import the given private key to the abstract gnutls_privkey_t type.
The gnutls_x509_privkey_t object must not be deallocated during the lifetime of this structure.
flags might be zero or one of GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE and GNUTLS_PRIVKEY_IMPORT_COPY.
Returns
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
Since
2.12.0
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie)
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)
- Debian 8 (Jessie)