From 3c74274b4aa80ba5018f12a24a75e7ade75ac3f1 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 31 Dec 2023 07:14:42 +0000 Subject: [PATCH] Sort the NIDs by name requested by jsing --- lib/libcrypto/x509/x509_purp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libcrypto/x509/x509_purp.c b/lib/libcrypto/x509/x509_purp.c index 8b8075b00e5..c5f199676e7 100644 --- a/lib/libcrypto/x509/x509_purp.c +++ b/lib/libcrypto/x509/x509_purp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_purp.c,v 1.31 2023/12/31 07:10:50 tb Exp $ */ +/* $OpenBSD: x509_purp.c,v 1.32 2023/12/31 07:14:42 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2001. */ @@ -395,20 +395,20 @@ int X509_supported_extension(X509_EXTENSION *ext) { switch(OBJ_obj2nid(X509_EXTENSION_get_object(ext))) { - case NID_netscape_cert_type: - case NID_key_usage: - case NID_subject_alt_name: case NID_basic_constraints: case NID_certificate_policies: case NID_ext_key_usage: + case NID_inhibit_any_policy: + case NID_key_usage: + case NID_name_constraints: + case NID_netscape_cert_type: + case NID_policy_constraints: + case NID_policy_mappings: #ifndef OPENSSL_NO_RFC3779 case NID_sbgp_ipAddrBlock: case NID_sbgp_autonomousSysNum: #endif - case NID_policy_constraints: - case NID_name_constraints: - case NID_policy_mappings: - case NID_inhibit_any_policy: + case NID_subject_alt_name: return 1; default: return 0; -- 2.20.1