diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-12-15 01:26:17 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-12-15 01:26:17 +0000 |
commit | 3fc9635ea763d9f2abeacf5a8d111964fbd4cb2d (patch) | |
tree | a71ee7782d2f8a3160c512edf1da485f5521b6b9 /crypto | |
parent | 3b14cb717defe41cebbe5524ff9d5ae84260a005 (diff) | |
download | openssl-3fc9635ea763d9f2abeacf5a8d111964fbd4cb2d.tar.gz |
Fix the S/MIME code to use canonical MIME format for
encrypted mail. Also update the smime docs.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 04489380b8..7cb553632c 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -362,11 +362,8 @@ PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, EVP_CIPHER *cipher, } } - for (;;) { - i = BIO_read(in, inbuf, sizeof(inbuf)); - if (i <= 0) break; - BIO_write(p7bio, inbuf, i); - } + SMIME_crlf_copy(in, p7bio, flags); + BIO_flush(p7bio); if (!PKCS7_dataFinal(p7,p7bio)) { |