diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-05-26 17:14:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-05-26 17:14:23 +0000 |
commit | 994df5a248183386727b136054eb93b516f940f6 (patch) | |
tree | 12815e9c91ffff1d5ea02935a964bbd51e3a82fc /crypto/pkcs7/pk7_smime.c | |
parent | 6657b9c73acfddc9b3fe86da0ee63494c7826742 (diff) |
Flush p7bio when all data has been copied.
Diffstat (limited to 'crypto/pkcs7/pk7_smime.c')
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index d3b55e4273..4312d8d4bf 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -121,6 +121,8 @@ int PKCS7_final(PKCS7 *p7, BIO *data, int flags) SMIME_crlf_copy(data, p7bio, flags); + BIO_flush(p7bio); + if(PKCS7_type_is_signed(p7) && (flags & PKCS7_DETACHED)) PKCS7_set_detached(p7, 1); |