summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/tasn_dec.c
diff options
context:
space:
mode:
authorjsing <>2022-04-26 20:00:18 +0000
committerjsing <>2022-04-26 20:00:18 +0000
commitb70afd76cfc0adf014774be1a4a6b38ca614a780 (patch)
treefec9a82c257f4ca26cfe78d9eb92d1020b194c8d /src/lib/libcrypto/asn1/tasn_dec.c
parent574d102655d7864b90ada06bb85aaf45d9579ac8 (diff)
downloadopenbsd-b70afd76cfc0adf014774be1a4a6b38ca614a780.tar.gz
openbsd-b70afd76cfc0adf014774be1a4a6b38ca614a780.tar.bz2
openbsd-b70afd76cfc0adf014774be1a4a6b38ca614a780.zip
Decode via c2i_ASN1_BIT_STRING_cbs() from asn1_ex_c2i().
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_dec.c')
-rw-r--r--src/lib/libcrypto/asn1/tasn_dec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_dec.c b/src/lib/libcrypto/asn1/tasn_dec.c
index 76dceaabef..5c68834461 100644
--- a/src/lib/libcrypto/asn1/tasn_dec.c
+++ b/src/lib/libcrypto/asn1/tasn_dec.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_dec.c,v 1.50 2022/04/23 18:47:08 jsing Exp $ */ 1/* $OpenBSD: tasn_dec.c,v 1.51 2022/04/26 20:00:18 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -856,9 +856,7 @@ asn1_ex_c2i(ASN1_VALUE **pval, CBS *content, int utype, const ASN1_ITEM *it)
856 break; 856 break;
857 857
858 case V_ASN1_BIT_STRING: 858 case V_ASN1_BIT_STRING:
859 p = CBS_data(content); 859 if (!c2i_ASN1_BIT_STRING_cbs((ASN1_BIT_STRING **)pval, content))
860 if (!c2i_ASN1_BIT_STRING((ASN1_BIT_STRING **)pval, &p,
861 CBS_len(content)))
862 goto err; 860 goto err;
863 break; 861 break;
864 862