projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35fbadb
)
Generate an error if rewinding wasn't possible.
author
Richard Levitte
<levitte@openssl.org>
Wed, 8 May 2002 15:13:35 +0000
(15:13 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 8 May 2002 15:13:35 +0000
(15:13 +0000)
Notified by Ken Hirsch <kenhirsch@myself.com>.
PR: 23
apps/smime.c
patch
|
blob
|
history
diff --git
a/apps/smime.c
b/apps/smime.c
index 83f9371a5826ecda5fb8710c00f17dc408ab984b..ebdac15d067bcaf3815318feafa937a2d90f61a3 100644
(file)
--- a/
apps/smime.c
+++ b/
apps/smime.c
@@
-414,7
+414,10
@@
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);
- BIO_reset(in);
+ if (BIO_reset(in) != 0 && (flags & PKCS7_DETACHED)) {
+ BIO_printf(bio_err, "Can't rewind input file\n");
+ goto end;
+ }
} else {
if(informat == FORMAT_SMIME)
p7 = SMIME_read_PKCS7(in, &indata);