diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-06-25 14:30:16 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-06-25 14:30:16 +0000 |
commit | cc9b4ae228829749072e1ef9c60d83e0490b63ff (patch) | |
tree | 77e6e5dbb8650bf771b0efca9d5298a38abb417f /lib/x509/pkcs7.c | |
parent | 9cb0264a9cd1fe633219ca273b937c5dbfc3925c (diff) | |
download | gnutls-cc9b4ae228829749072e1ef9c60d83e0490b63ff.tar.gz |
More PKCS #12 additions. Now the code can generate PKCS #12 files. Also added the ability to decrypt plain DES encrypted PKCS #8 keys.
Diffstat (limited to 'lib/x509/pkcs7.c')
-rw-r--r-- | lib/x509/pkcs7.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c index d56ccf5e84..f7d03957a9 100644 --- a/lib/x509/pkcs7.c +++ b/lib/x509/pkcs7.c @@ -517,7 +517,7 @@ int gnutls_pkcs7_set_certificate(gnutls_pkcs7 pkcs7, /* Step 3. Replace the old content with the new */ - result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content"); + result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content", 0); if (result < 0) { gnutls_assert(); goto cleanup; @@ -573,7 +573,7 @@ int gnutls_pkcs7_delete_certificate(gnutls_pkcs7 pkcs7, int indx) /* Step 3. Replace the old content with the new */ - result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content"); + result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content", 0); if (result < 0) { gnutls_assert(); goto cleanup; @@ -760,7 +760,7 @@ int gnutls_pkcs7_set_crl(gnutls_pkcs7 pkcs7, /* Step 3. Replace the old content with the new */ - result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content"); + result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content", 0); if (result < 0) { gnutls_assert(); goto cleanup; @@ -816,7 +816,7 @@ int gnutls_pkcs7_delete_crl(gnutls_pkcs7 pkcs7, int indx) /* Step 3. Replace the old content with the new */ - result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content"); + result = _gnutls_x509_der_encode_and_copy( c2, "", pkcs7->pkcs7, "content", 0); if (result < 0) { gnutls_assert(); goto cleanup; |