| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_privkey_export_x509} (gnutls_privkey_t @var{pkey}, gnutls_x509_privkey_t * @var{key}) |
| 6 |
@var{pkey}: The private key |
| 7 |
|
| 8 |
@var{key}: Location for the key to be exported. |
| 9 |
|
| 10 |
Converts the given abstract private key to a @code{gnutls_x509_privkey_t} |
| 11 |
type. The abstract key must be of type @code{GNUTLS_PRIVKEY_X509} . The input |
| 12 |
@code{key} must not be initialized. The key returned in @code{key} should be deinitialized |
| 13 |
using @code{gnutls_x509_privkey_deinit()} . |
| 14 |
|
| 15 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 16 |
negative error value. |
| 17 |
|
| 18 |
@strong{Since:} 3.4.0 |
| 19 |
@end deftypefun |