aboutsummaryrefslogtreecommitdiff
path: root/crypto/asn1/standard_methods.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-01-06 13:11:50 +0000
committerDr. Stephen Henson <steve@openssl.org>2017-01-08 01:42:51 +0000
commit568b9cdc646904f0966767467d6a28adaa5c8f68 (patch)
treed45a7e49838af6938c4fbedf8d81d832bb258de0 /crypto/asn1/standard_methods.h
parent52ad523c0e7bc159fcc84549bece61bb5c3e44a8 (diff)
downloadopenssl-568b9cdc646904f0966767467d6a28adaa5c8f68.zip
openssl-568b9cdc646904f0966767467d6a28adaa5c8f68.tar.gz
openssl-568b9cdc646904f0966767467d6a28adaa5c8f68.tar.bz2
clarify comment
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2177)
Diffstat (limited to 'crypto/asn1/standard_methods.h')
-rw-r--r--crypto/asn1/standard_methods.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/asn1/standard_methods.h b/crypto/asn1/standard_methods.h
index 51b0e81..322ba97 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],