| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pubkey_import_privkey} (gnutls_pubkey_t @var{key}, gnutls_privkey_t @var{pkey}, unsigned int @var{usage}, unsigned int @var{flags}) |
| 6 |
@var{key}: The public key |
| 7 |
|
| 8 |
@var{pkey}: The private key |
| 9 |
|
| 10 |
@var{usage}: GNUTLS_KEY_* key usage flags. |
| 11 |
|
| 12 |
@var{flags}: should be zero |
| 13 |
|
| 14 |
Imports the public key from a private. This function will import |
| 15 |
the given public key to the abstract @code{gnutls_pubkey_t} type. |
| 16 |
|
| 17 |
Note that in certain keys this operation may not be possible, e.g., |
| 18 |
in other than RSA PKCS@code{11} keys. |
| 19 |
|
| 20 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 21 |
negative error value. |
| 22 |
|
| 23 |
@strong{Since:} 2.12.0 |
| 24 |
@end deftypefun |