diff options
author | 2020-01-21 10:18:52 +0000 | |
---|---|---|
committer | 2020-01-21 10:18:52 +0000 | |
commit | a0067a85f209aceec466528d3b4d03ea781ee512 (patch) | |
tree | edb2fba22ab4c0c4374c8beea8043a95eaa42477 | |
parent | libisc has a global variable called "isc_bind9" that indicates the program-family (diff) | |
download | wireguard-openbsd-a0067a85f209aceec466528d3b4d03ea781ee512.tar.xz wireguard-openbsd-a0067a85f209aceec466528d3b4d03ea781ee512.zip |
Remove redundant ASN1_INTEGER_set call in PKCS7_set_type
ok bcook@
-rw-r--r-- | lib/libcrypto/pkcs7/pk7_lib.c | 3 |
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 = |