| 1 |
/* |
| 2 |
* Copyright 2006-2025 The OpenSSL Project Authors. All Rights Reserved. |
| 3 |
* |
| 4 |
* Licensed under the Apache License 2.0 (the "License"). You may not use |
| 5 |
* this file except in compliance with the License. You can obtain a copy |
| 6 |
* in the file LICENSE in the source distribution or at |
| 7 |
* https://www.openssl.org/source/license.html |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef OPENSSL_NO_DEPRECATED_3_6 |
| 11 |
/* |
| 12 |
* This table MUST be kept in ascending order of the NID each method |
| 13 |
* represents (corresponding to the pkey_id field) as OBJ_bsearch |
| 14 |
* is used to search it. |
| 15 |
*/ |
| 16 |
static const EVP_PKEY_ASN1_METHOD *standard_methods[] = { |
| 17 |
&ossl_rsa_asn1_meths[0], |
| 18 |
&ossl_rsa_asn1_meths[1], |
| 19 |
#ifndef OPENSSL_NO_DH |
| 20 |
&ossl_dh_asn1_meth, |
| 21 |
#endif |
| 22 |
#ifndef OPENSSL_NO_DSA |
| 23 |
&ossl_dsa_asn1_meths[0], |
| 24 |
&ossl_dsa_asn1_meths[1], |
| 25 |
&ossl_dsa_asn1_meths[2], |
| 26 |
&ossl_dsa_asn1_meths[3], |
| 27 |
#endif |
| 28 |
#ifndef OPENSSL_NO_EC |
| 29 |
&ossl_eckey_asn1_meth, |
| 30 |
#endif |
| 31 |
&ossl_rsa_pss_asn1_meth, |
| 32 |
#ifndef OPENSSL_NO_DH |
| 33 |
&ossl_dhx_asn1_meth, |
| 34 |
#endif |
| 35 |
#ifndef OPENSSL_NO_ECX |
| 36 |
&ossl_ecx25519_asn1_meth, |
| 37 |
&ossl_ecx448_asn1_meth, |
| 38 |
&ossl_ed25519_asn1_meth, |
| 39 |
&ossl_ed448_asn1_meth, |
| 40 |
#endif |
| 41 |
#ifndef OPENSSL_NO_SM2 |
| 42 |
&ossl_sm2_asn1_meth, |
| 43 |
#endif |
| 44 |
}; |
| 45 |
#endif |