| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pcert_export_x509} (gnutls_pcert_st * @var{pcert}, gnutls_x509_crt_t * @var{crt}) |
| 6 |
@var{pcert}: The pcert structure. |
| 7 |
|
| 8 |
@var{crt}: An initialized @code{gnutls_x509_crt_t} . |
| 9 |
|
| 10 |
Converts the given @code{gnutls_pcert_t} type into a @code{gnutls_x509_crt_t} . |
| 11 |
This function only works if the type of @code{pcert} is @code{GNUTLS_CRT_X509} . |
| 12 |
When successful, the value written to @code{crt} must be freed with |
| 13 |
@code{gnutls_x509_crt_deinit()} when no longer needed. |
| 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 |