clarify comment
[openssl.git] / crypto / asn1 / standard_methods.h
index 51b0e81f68d9566193849c7430a48aab4622a79b..322ba9787f952a8c4f4b0f894ace748a96bfc9b2 100644 (file)
@@ -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],