summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/tasn_utl.c
diff options
context:
space:
mode:
authorjsing <>2022-05-10 05:19:23 +0000
committerjsing <>2022-05-10 05:19:23 +0000
commit92cff24279888a655e71809016c6b1d366158c34 (patch)
tree3e26f1150af9c6dd479ad5ca7947582f1c29cffe /src/lib/libcrypto/asn1/tasn_utl.c
parentaffd849ffb55c61005447fc830be63be639e6e82 (diff)
downloadopenbsd-92cff24279888a655e71809016c6b1d366158c34.tar.gz
openbsd-92cff24279888a655e71809016c6b1d366158c34.tar.bz2
openbsd-92cff24279888a655e71809016c6b1d366158c34.zip
Remove ASN.1 combining.
This was an option used to combine ASN.1 into a single structure, which was only ever used by DSAPublicKey and X509_ATTRIBUTE. Since they no longer use it we can mop this up and simplify all of the related code. ok tb@
Diffstat (limited to 'src/lib/libcrypto/asn1/tasn_utl.c')
-rw-r--r--src/lib/libcrypto/asn1/tasn_utl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_utl.c b/src/lib/libcrypto/asn1/tasn_utl.c
index e64bbe1f1a..4ef4232c7e 100644
--- a/src/lib/libcrypto/asn1/tasn_utl.c
+++ b/src/lib/libcrypto/asn1/tasn_utl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_utl.c,v 1.13 2021/12/25 13:17:48 jsing Exp $ */ 1/* $OpenBSD: tasn_utl.c,v 1.14 2022/05/10 05:19:23 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 */
@@ -205,8 +205,6 @@ asn1_get_field_ptr(ASN1_VALUE **pval, const ASN1_TEMPLATE *tt)
205{ 205{
206 ASN1_VALUE **pvaltmp; 206 ASN1_VALUE **pvaltmp;
207 207
208 if (tt->flags & ASN1_TFLG_COMBINE)
209 return pval;
210 pvaltmp = offset2ptr(*pval, tt->offset); 208 pvaltmp = offset2ptr(*pval, tt->offset);
211 /* NOTE for BOOLEAN types the field is just a plain 209 /* NOTE for BOOLEAN types the field is just a plain
212 * int so we can't return int **, so settle for 210 * int so we can't return int **, so settle for