PR: 2727
[oweals/openssl.git] / crypto / pkcs7 / pk7_mime.c
index f44ca697db49c501b6cb30adf40a5efb9f5565c4..938f79a646cb256f3df10ac45189f7f7e407144c 100644 (file)
@@ -1,5 +1,5 @@
 /* pk7_mime.c */
-/* Written by Dr Stephen N Henson (shenson@bigfoot.com) for the OpenSSL
+/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
  * project.
  */
 /* ====================================================================
@@ -87,11 +87,11 @@ int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags)
 
 
        return SMIME_write_ASN1(bio, (ASN1_VALUE *)p7, data, flags,
-                                       ctype_nid, mdalgs,
+                                       ctype_nid, NID_undef, mdalgs,
                                        ASN1_ITEM_rptr(PKCS7)); 
        }
 
 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont)
        {
-       return (PKCS7 *)SMIME_read_asn1(bio, bcont, ASN1_ITEM_rptr(PKCS7));
+       return (PKCS7 *)SMIME_read_ASN1(bio, bcont, ASN1_ITEM_rptr(PKCS7));
        }