summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2020-01-21 10:18:53 +0000
committerKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2020-01-21 10:18:53 +0000
commit1c69e6c528c462fc29512686f30c76bf8e65b286 (patch)
tree00ddaff59b0cf23e05300b180008ecaaa4b0ddf9 /lib
parent8318cb767dd291f3f38ec1205241922e0886654b (diff)
Remove redundant ASN1_INTEGER_set call in PKCS7_set_type
ok bcook@
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/pkcs7/pk7_lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libcrypto/pkcs7/pk7_lib.c b/lib/libcrypto/pkcs7/pk7_lib.c
index 28f812a811d..afcc179240f 100644
--- a/lib/libcrypto/pkcs7/pk7_lib.c
+++ b/lib/libcrypto/pkcs7/pk7_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pk7_lib.c,v 1.20 2019/03/13 20:34:00 tb Exp $ */
+/* $OpenBSD: pk7_lib.c,v 1.21 2020/01/21 10:18:52 inoguchi Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -186,7 +186,6 @@ PKCS7_set_type(PKCS7 *p7, int type)
if ((p7->d.signed_and_enveloped =
PKCS7_SIGN_ENVELOPE_new()) == NULL)
goto err;
- ASN1_INTEGER_set(p7->d.signed_and_enveloped->version, 1);
if (!ASN1_INTEGER_set(p7->d.signed_and_enveloped->version, 1))
goto err;
p7->d.signed_and_enveloped->enc_data->content_type =