diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-09-07 22:59:34 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-09-07 22:59:34 +0000 |
commit | e696a05791d0473b2f7a4491f44505ea83a46707 (patch) | |
tree | 0f536b09e7c471f3f46f837ac67bd0621d5c1f12 /crypto/pkcs7 | |
parent | 4a13e4b36c524c2edbc126746a0712814870e4ae (diff) |
Fix typos in PKCS#12 ASN1 code.
Make PKCS7_set_detached work again.
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/pk7_lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_lib.c b/crypto/pkcs7/pk7_lib.c index c00ed6833a..612cbd8c68 100644 --- a/crypto/pkcs7/pk7_lib.c +++ b/crypto/pkcs7/pk7_lib.c @@ -74,6 +74,13 @@ long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg) if (nid == NID_pkcs7_signed) { ret=p7->detached=(int)larg; + if (PKCS7_type_is_data(p7->d.sign->contents)) + { + ASN1_OCTET_STRING *os; + os=p7->d.sign->contents->d.data; + ASN1_OCTET_STRING_free(os); + p7->d.sign->contents->d.data = NULL; + } } else { |