From 568b9cdc646904f0966767467d6a28adaa5c8f68 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 6 Jan 2017 13:11:50 +0000 Subject: [PATCH 1/1] clarify comment Reviewed-by: Rich Salz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2177) --- crypto/asn1/standard_methods.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crypto/asn1/standard_methods.h b/crypto/asn1/standard_methods.h index 51b0e81f68..322ba9787f 100644 --- a/crypto/asn1/standard_methods.h +++ b/crypto/asn1/standard_methods.h @@ -7,7 +7,11 @@ * https://www.openssl.org/source/license.html */ -/* Keep this sorted in type order !! */ +/* + * This table MUST be kept in ascening order of the NID each method + * represents (corresponding to the pkey_id field) as OBJ_bsearch + * is used to search it. + */ static const EVP_PKEY_ASN1_METHOD *standard_methods[] = { #ifndef OPENSSL_NO_RSA &rsa_asn1_meths[0], -- 2.34.1