diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-02-28 14:11:19 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-02-28 14:11:19 +0000 |
commit | 82b931860a6931f7c1711169b547c44a3e01d3d1 (patch) | |
tree | a81f19deb713a6f528af779e745275a7fcbf62da /crypto/pkcs7/pk7_smime.c | |
parent | 11750113c62b61ac152f581c28691927ecf59729 (diff) |
Ouch! PKCS7_encrypt() was heading MIME text headers twice
because it added them manually and as part of SMIME_crlf_copy().
Removed the manual add.
Diffstat (limited to 'crypto/pkcs7/pk7_smime.c')
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 17e51941c7..b41f42ed04 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -329,7 +329,6 @@ PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, EVP_CIPHER *cipher, BIO *p7bio = NULL; int i; X509 *x509; - static char txthdr[] = "Content-type: text/plain\r\n\r\n"; if(!(p7 = PKCS7_new())) { PKCS7err(PKCS7_F_PKCS7_ENCRYPT,ERR_R_MALLOC_FAILURE); return NULL; @@ -355,12 +354,6 @@ PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, EVP_CIPHER *cipher, goto err; } - if(flags & PKCS7_TEXT) { - if(BIO_write(p7bio, txthdr, sizeof(txthdr) - 1) < 0) { - goto err; - } - } - SMIME_crlf_copy(in, p7bio, flags); BIO_flush(p7bio); |