diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/x509/x509name.c | 11 |
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 | } |
| 427 | LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data); | 424 | LCRYPTO_ALIAS(X509_NAME_ENTRY_set_data); |
