Add NID_auth_any and NID_kx_any NIDs.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2550)
This commit is contained in:
Dr. Stephen Henson 2017-02-04 12:42:57 +00:00
parent e5c4bf93a9
commit 7114af3054
5 changed files with 25 additions and 5 deletions

View File

@ -963,7 +963,7 @@ static const unsigned char so[6765] = {
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x10,0x01,0x1C, /* [ 6753] OBJ_id_ct_xml */ 0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x10,0x01,0x1C, /* [ 6753] OBJ_id_ct_xml */
}; };
#define NUM_NID 1063 #define NUM_NID 1065
static const ASN1_OBJECT nid_objs[NUM_NID] = { static const ASN1_OBJECT nid_objs[NUM_NID] = {
{"UNDEF", "undefined", NID_undef}, {"UNDEF", "undefined", NID_undef},
{"rsadsi", "RSA Data Security, Inc.", NID_rsadsi, 6, &so[0]}, {"rsadsi", "RSA Data Security, Inc.", NID_rsadsi, 6, &so[0]},
@ -2028,9 +2028,11 @@ static const ASN1_OBJECT nid_objs[NUM_NID] = {
{"id-ct-xml", "id-ct-xml", NID_id_ct_xml, 11, &so[6753]}, {"id-ct-xml", "id-ct-xml", NID_id_ct_xml, 11, &so[6753]},
{"Poly1305", "poly1305", NID_poly1305}, {"Poly1305", "poly1305", NID_poly1305},
{"SipHash", "siphash", NID_siphash}, {"SipHash", "siphash", NID_siphash},
{"KxANY", "kx-any", NID_kx_any},
{"AuthANY", "auth-any", NID_auth_any},
}; };
#define NUM_SN 1054 #define NUM_SN 1056
static const unsigned int sn_objs[NUM_SN] = { static const unsigned int sn_objs[NUM_SN] = {
364, /* "AD_DVCS" */ 364, /* "AD_DVCS" */
419, /* "AES-128-CBC" */ 419, /* "AES-128-CBC" */
@ -2065,6 +2067,7 @@ static const unsigned int sn_objs[NUM_SN] = {
960, /* "AES-256-OCB" */ 960, /* "AES-256-OCB" */
428, /* "AES-256-OFB" */ 428, /* "AES-256-OFB" */
914, /* "AES-256-XTS" */ 914, /* "AES-256-XTS" */
1064, /* "AuthANY" */
1049, /* "AuthDSS" */ 1049, /* "AuthDSS" */
1047, /* "AuthECDSA" */ 1047, /* "AuthECDSA" */
1050, /* "AuthGOST01" */ 1050, /* "AuthGOST01" */
@ -2163,6 +2166,7 @@ static const unsigned int sn_objs[NUM_SN] = {
645, /* "ITU-T" */ 645, /* "ITU-T" */
646, /* "JOINT-ISO-ITU-T" */ 646, /* "JOINT-ISO-ITU-T" */
773, /* "KISA" */ 773, /* "KISA" */
1063, /* "KxANY" */
1039, /* "KxDHE" */ 1039, /* "KxDHE" */
1041, /* "KxDHE-PSK" */ 1041, /* "KxDHE-PSK" */
1038, /* "KxECDHE" */ 1038, /* "KxECDHE" */
@ -3088,7 +3092,7 @@ static const unsigned int sn_objs[NUM_SN] = {
160, /* "x509Crl" */ 160, /* "x509Crl" */
}; };
#define NUM_LN 1054 #define NUM_LN 1056
static const unsigned int ln_objs[NUM_LN] = { static const unsigned int ln_objs[NUM_LN] = {
363, /* "AD Time Stamping" */ 363, /* "AD Time Stamping" */
405, /* "ANSI X9.62" */ 405, /* "ANSI X9.62" */
@ -3310,6 +3314,7 @@ static const unsigned int ln_objs[NUM_LN] = {
484, /* "associatedDomain" */ 484, /* "associatedDomain" */
485, /* "associatedName" */ 485, /* "associatedName" */
501, /* "audio" */ 501, /* "audio" */
1064, /* "auth-any" */
1049, /* "auth-dss" */ 1049, /* "auth-dss" */
1047, /* "auth-ecdsa" */ 1047, /* "auth-ecdsa" */
1050, /* "auth-gost01" */ 1050, /* "auth-gost01" */
@ -3783,6 +3788,7 @@ static const unsigned int ln_objs[NUM_LN] = {
956, /* "jurisdictionStateOrProvinceName" */ 956, /* "jurisdictionStateOrProvinceName" */
150, /* "keyBag" */ 150, /* "keyBag" */
773, /* "kisa" */ 773, /* "kisa" */
1063, /* "kx-any" */
1039, /* "kx-dhe" */ 1039, /* "kx-dhe" */
1041, /* "kx-dhe-psk" */ 1041, /* "kx-dhe-psk" */
1038, /* "kx-ecdhe" */ 1038, /* "kx-ecdhe" */

View File

@ -1060,3 +1060,5 @@ id_smime_ct_authEnvelopedData 1059
id_ct_xml 1060 id_ct_xml 1060
poly1305 1061 poly1305 1061
siphash 1062 siphash 1062
kx_any 1063
auth_any 1064

View File

@ -1472,6 +1472,7 @@ id-pkinit 5 : pkInitKDC : Signing KDC Response
: KxPSK : kx-psk : KxPSK : kx-psk
: KxSRP : kx-srp : KxSRP : kx-srp
: KxGOST : kx-gost : KxGOST : kx-gost
: KxANY : kx-any
# NIDs for cipher authentication # NIDs for cipher authentication
: AuthRSA : auth-rsa : AuthRSA : auth-rsa
@ -1482,6 +1483,7 @@ id-pkinit 5 : pkInitKDC : Signing KDC Response
: AuthGOST12 : auth-gost12 : AuthGOST12 : auth-gost12
: AuthSRP : auth-srp : AuthSRP : auth-srp
: AuthNULL : auth-null : AuthNULL : auth-null
: AuthANY : auth-any
# NID for Poly1305 # NID for Poly1305
: Poly1305 : poly1305 : Poly1305 : poly1305
# NID for SipHash # NID for SipHash

View File

@ -4544,6 +4544,10 @@
#define LN_kx_gost "kx-gost" #define LN_kx_gost "kx-gost"
#define NID_kx_gost 1045 #define NID_kx_gost 1045
#define SN_kx_any "KxANY"
#define LN_kx_any "kx-any"
#define NID_kx_any 1063
#define SN_auth_rsa "AuthRSA" #define SN_auth_rsa "AuthRSA"
#define LN_auth_rsa "auth-rsa" #define LN_auth_rsa "auth-rsa"
#define NID_auth_rsa 1046 #define NID_auth_rsa 1046
@ -4576,6 +4580,10 @@
#define LN_auth_null "auth-null" #define LN_auth_null "auth-null"
#define NID_auth_null 1053 #define NID_auth_null 1053
#define SN_auth_any "AuthANY"
#define LN_auth_any "auth-any"
#define NID_auth_any 1064
#define SN_poly1305 "Poly1305" #define SN_poly1305 "Poly1305"
#define LN_poly1305 "poly1305" #define LN_poly1305 "poly1305"
#define NID_poly1305 1061 #define NID_poly1305 1061

View File

@ -153,7 +153,8 @@ static const ssl_cipher_table ssl_cipher_table_kx[] = {
{SSL_kRSAPSK, NID_kx_rsa_psk}, {SSL_kRSAPSK, NID_kx_rsa_psk},
{SSL_kPSK, NID_kx_psk}, {SSL_kPSK, NID_kx_psk},
{SSL_kSRP, NID_kx_srp}, {SSL_kSRP, NID_kx_srp},
{SSL_kGOST, NID_kx_gost} {SSL_kGOST, NID_kx_gost},
{SSL_kANY, NID_kx_any}
}; };
static const ssl_cipher_table ssl_cipher_table_auth[] = { static const ssl_cipher_table ssl_cipher_table_auth[] = {
@ -164,7 +165,8 @@ static const ssl_cipher_table ssl_cipher_table_auth[] = {
{SSL_aGOST01, NID_auth_gost01}, {SSL_aGOST01, NID_auth_gost01},
{SSL_aGOST12, NID_auth_gost12}, {SSL_aGOST12, NID_auth_gost12},
{SSL_aSRP, NID_auth_srp}, {SSL_aSRP, NID_auth_srp},
{SSL_aNULL, NID_auth_null} {SSL_aNULL, NID_auth_null},
{SSL_aANY, NID_auth_any}
}; };
/* *INDENT-ON* */ /* *INDENT-ON* */