From cc9b4ae228829749072e1ef9c60d83e0490b63ff Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 25 Jun 2003 14:30:16 +0000 Subject: More PKCS #12 additions. Now the code can generate PKCS #12 files. Also added the ability to decrypt plain DES encrypted PKCS #8 keys. --- lib/x509/pkcs7.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/x509/pkcs7.c') 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; -- cgit v1.2.1