From: Dr. Stephen Henson Date: Fri, 6 Jan 2017 13:11:50 +0000 (+0000) Subject: clarify comment X-Git-Tag: OpenSSL_1_1_1-pre1~2755 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=568b9cdc646904f0966767467d6a28adaa5c8f68;hp=52ad523c0e7bc159fcc84549bece61bb5c3e44a8 clarify comment Reviewed-by: Rich Salz Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/2177) --- 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],