projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix indefinite length encoding so EOC correctly updates
[openssl.git]
/
apps
/
smime.c
diff --git
a/apps/smime.c
b/apps/smime.c
index 83daa71ca19d47f97a9153d2af9414773c83fa30..1d7d828e01f4150fa0de5e2b1b32162dde093a8f 100644
(file)
--- a/
apps/smime.c
+++ b/
apps/smime.c
@@
-482,10
+482,10
@@
int MAIN(int argc, char **argv)
* signing.
*/
if ((flags & PKCS7_DETACHED) && (outformat == FORMAT_SMIME))
* signing.
*/
if ((flags & PKCS7_DETACHED) && (outformat == FORMAT_SMIME))
- flags |= PKCS7_
PARTSIGN
;
+ flags |= PKCS7_
STREAM
;
p7 = PKCS7_sign(signer, key, other, in, flags);
/* Don't need to rewind for partial signing */
p7 = PKCS7_sign(signer, key, other, in, flags);
/* Don't need to rewind for partial signing */
- if (!(flags & PKCS7_
PARTSIGN
) && (BIO_reset(in) != 0)) {
+ if (!(flags & PKCS7_
STREAM
) && (BIO_reset(in) != 0)) {
BIO_printf(bio_err, "Can't rewind input file\n");
goto end;
}
BIO_printf(bio_err, "Can't rewind input file\n");
goto end;
}