summaryrefslogtreecommitdiffstats
path: root/apps/smime.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-02-25 19:03:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-02-25 19:03:31 +0000
commite9ec63961be610bbd386f482335772bc23dc095e (patch)
tree4c315799588e5d459fc804c47d74f56c6fc702af /apps/smime.c
parent0185803cc224c8d88ca39ae07c296a4f1854e478 (diff)
Fix indefinite length encoding so EOC correctly updates
the buffer pointer. Rename PKCS7_PARTSIGN to PKCS7_STREAM. Guess what that's for :-)
Diffstat (limited to 'apps/smime.c')
-rw-r--r--apps/smime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/smime.c b/apps/smime.c
index 83daa71ca1..1d7d828e01 100644
--- 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))
- flags |= PKCS7_PARTSIGN;
+ flags |= PKCS7_STREAM;
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;
}