Commit 45e33ebe authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix from HEAD. Except we can't stream multipart/signed in 0.9.7 so that case

still rewinds the stream.
parent 0f562e2a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		}