Blame doc/functions/gnutls_pubkey_export2
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_pubkey_export2} (gnutls_pubkey_t @var{key}, gnutls_x509_crt_fmt_t @var{format}, gnutls_datum_t * @var{out})
|
|
Packit Service |
4684c1 |
@var{key}: Holds the certificate
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{format}: the format of output params. One of PEM or DER.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{out}: will contain a certificate PEM or DER encoded
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will export the public key to DER or PEM format.
|
|
Packit Service |
4684c1 |
The contents of the exported data is the SubjectPublicKeyInfo
|
|
Packit Service |
4684c1 |
X.509 structure.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The output buffer will be allocated using @code{gnutls_malloc()} .
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
If the structure is PEM encoded, it will have a header
|
|
Packit Service |
4684c1 |
of "BEGIN CERTIFICATE".
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} In case of failure a negative error code will be
|
|
Packit Service |
4684c1 |
returned, and 0 on success.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Since:} 3.1.3
|
|
Packit Service |
4684c1 |
@end deftypefun
|