mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-04-27 18:24:37 +00:00
Fix from HEAD. Except we can't stream multipart/signed in 0.9.7 so that case
still rewinds the stream.
This commit is contained in:
parent
0f562e2a2c
commit
45e33ebeab
@ -483,7 +483,8 @@ int MAIN(int argc, char **argv)
|
||||
p7 = PKCS7_encrypt(encerts, in, cipher, flags);
|
||||
} else if(operation == SMIME_SIGN) {
|
||||
p7 = PKCS7_sign(signer, key, other, in, flags);
|
||||
if (BIO_reset(in) != 0 && (flags & PKCS7_DETACHED)) {
|
||||
if ((flags & PKCS7_DETACHED) && (outformat == FORMAT_SMIME)
|
||||
&& (BIO_reset(in) != 0)) {
|
||||
BIO_printf(bio_err, "Can't rewind input file\n");
|
||||
goto end;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user