| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_pkcs12_import} (gnutls_pkcs12_t @var{pkcs12}, const gnutls_datum_t * @var{data}, gnutls_x509_crt_fmt_t @var{format}, unsigned int @var{flags}) |
| 6 |
@var{pkcs12}: The data to store the parsed PKCS12. |
| 7 |
|
| 8 |
@var{data}: The DER or PEM encoded PKCS12. |
| 9 |
|
| 10 |
@var{format}: One of DER or PEM |
| 11 |
|
| 12 |
@var{flags}: an ORed sequence of gnutls_privkey_pkcs8_flags |
| 13 |
|
| 14 |
This function will convert the given DER or PEM encoded PKCS12 |
| 15 |
to the native gnutls_pkcs12_t format. The output will be stored in 'pkcs12'. |
| 16 |
|
| 17 |
If the PKCS12 is PEM encoded it should have a header of "PKCS12". |
| 18 |
|
| 19 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 20 |
negative error value. |
| 21 |
@end deftypefun |