summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2025-12-21 09:34:28 +0000
committertb <>2025-12-21 09:34:28 +0000
commit3b5d8147ac910c080a5f4d6fb96714689ac8cb3d (patch)
tree91155ec5cb63705b05289314818cdf347724dd6b /src
parentc58dfc9c3fb284d9e07336a2d910134ea05b7aea (diff)
downloadopenbsd-3b5d8147ac910c080a5f4d6fb96714689ac8cb3d.tar.gz
openbsd-3b5d8147ac910c080a5f4d6fb96714689ac8cb3d.tar.bz2
openbsd-3b5d8147ac910c080a5f4d6fb96714689ac8cb3d.zip
X509_NAME_ENTRY_set_data: remove V_ASN1_APP_CHOOSE quirk
This is the last remaining actual use of ASN1_PRINTABLE_type(), which will go away in the next major bump. ok kenjiro
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/x509/x509name.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509name.c b/src/lib/libcrypto/x509/x509name.c
index 9a582d34e4..e1a1432a04 100644
--- a/src/lib/libcrypto/x509/x509name.c
+++ b/src/lib/libcrypto/x509/x509name.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509name.c,v 1.36 2025/05/10 05:54:39 tb Exp $ */ 1/* $OpenBSD: x509name.c,v 1.37 2025/12/21 09:34:28 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -416,12 +416,9 @@ X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type,
416 i = ASN1_STRING_set(ne->value, bytes, len); 416 i = ASN1_STRING_set(ne->value, bytes, len);
417 if (!i) 417 if (!i)
418 return (0); 418 return (0);
419 if (type != V_ASN1_UNDEF) { 419 if (type != V_ASN1_UNDEF)
420 if (type == V_ASN1_APP_CHOOSE) 420 ne->value->type = type;
421 ne->value->type = ASN1_PRINTABLE_type(bytes, len); 421
422 else
423 ne->value->type = type;
424 }
425 return (1); 422 return (1);
426} 423}
427LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data); 424LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data);