Blame doc/functions/gnutls_x509_crt_set_key
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_x509_crt_set_key} (gnutls_x509_crt_t @var{crt}, gnutls_x509_privkey_t @var{key})
|
|
Packit Service |
4684c1 |
@var{crt}: a certificate of type @code{gnutls_x509_crt_t}
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{key}: holds a private key
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will set the public parameters from the given
|
|
Packit Service |
4684c1 |
private key to the certificate.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
To export the public key (i.e., the SubjectPublicKeyInfo part), check
|
|
Packit Service |
4684c1 |
@code{gnutls_pubkey_import_x509()} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
|
|
Packit Service |
4684c1 |
negative error value.
|
|
Packit Service |
4684c1 |
@end deftypefun
|