Latest update.
This commit is contained in:
@@ -66,10 +66,8 @@ static int obj_name_cmp(const OBJ_NAME *a, const OBJ_NAME *b);
|
||||
static CRYPTO_ONCE init = CRYPTO_ONCE_STATIC_INIT;
|
||||
DEFINE_RUN_ONCE_STATIC(o_names_init)
|
||||
{
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE);
|
||||
names_lh = lh_OBJ_NAME_new(obj_name_hash, obj_name_cmp);
|
||||
obj_lock = CRYPTO_THREAD_lock_new();
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE);
|
||||
return names_lh != NULL && obj_lock != NULL;
|
||||
}
|
||||
|
||||
@@ -90,11 +88,8 @@ int OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),
|
||||
|
||||
CRYPTO_THREAD_write_lock(obj_lock);
|
||||
|
||||
if (name_funcs_stack == NULL) {
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE);
|
||||
if (name_funcs_stack == NULL)
|
||||
name_funcs_stack = sk_NAME_FUNCS_new_null();
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE);
|
||||
}
|
||||
if (name_funcs_stack == NULL) {
|
||||
/* ERROR */
|
||||
goto out;
|
||||
@@ -102,9 +97,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),
|
||||
ret = names_type_num;
|
||||
names_type_num++;
|
||||
for (i = sk_NAME_FUNCS_num(name_funcs_stack); i < names_type_num; i++) {
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE);
|
||||
name_funcs = OPENSSL_zalloc(sizeof(*name_funcs));
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE);
|
||||
if (name_funcs == NULL) {
|
||||
OBJerr(OBJ_F_OBJ_NAME_NEW_INDEX, ERR_R_MALLOC_FAILURE);
|
||||
ret = 0;
|
||||
@@ -112,10 +105,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func) (const char *),
|
||||
}
|
||||
name_funcs->hash_func = openssl_lh_strcasehash;
|
||||
name_funcs->cmp_func = obj_strcasecmp;
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE);
|
||||
|
||||
push = sk_NAME_FUNCS_push(name_funcs_stack, name_funcs);
|
||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ENABLE);
|
||||
|
||||
if (!push) {
|
||||
OBJerr(OBJ_F_OBJ_NAME_NEW_INDEX, ERR_R_MALLOC_FAILURE);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* WARNING: do not edit!
|
||||
* Generated by crypto/objects/obj_dat.pl
|
||||
*
|
||||
* Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
* in the file LICENSE in the source distribution or at
|
||||
@@ -10,7 +10,7 @@
|
||||
*/
|
||||
|
||||
/* Serialized OID's */
|
||||
static const unsigned char so[7837] = {
|
||||
static const unsigned char so[7845] = {
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D, /* [ 0] OBJ_rsadsi */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01, /* [ 6] OBJ_pkcs */
|
||||
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x02,0x02, /* [ 13] OBJ_md2 */
|
||||
@@ -1085,9 +1085,10 @@ static const unsigned char so[7837] = {
|
||||
0x2B,0x06,0x01,0x05,0x05,0x07,0x08,0x09, /* [ 7812] OBJ_id_on_SmtpUTF8Mailbox */
|
||||
0x2B,0x06,0x01,0x05,0x05,0x07,0x08,0x05, /* [ 7820] OBJ_XmppAddr */
|
||||
0x2B,0x06,0x01,0x05,0x05,0x07,0x08,0x07, /* [ 7828] OBJ_SRVName */
|
||||
0x2B,0x06,0x01,0x05,0x05,0x07,0x08,0x08, /* [ 7836] OBJ_NAIRealm */
|
||||
};
|
||||
|
||||
#define NUM_NID 1212
|
||||
#define NUM_NID 1213
|
||||
static const ASN1_OBJECT nid_objs[NUM_NID] = {
|
||||
{"UNDEF", "undefined", NID_undef},
|
||||
{"rsadsi", "RSA Data Security, Inc.", NID_rsadsi, 6, &so[0]},
|
||||
@@ -2300,10 +2301,11 @@ static const ASN1_OBJECT nid_objs[NUM_NID] = {
|
||||
{"id-on-SmtpUTF8Mailbox", "Smtp UTF8 Mailbox", NID_id_on_SmtpUTF8Mailbox, 8, &so[7812]},
|
||||
{"id-on-xmppAddr", "XmppAddr", NID_XmppAddr, 8, &so[7820]},
|
||||
{"id-on-dnsSRV", "SRVName", NID_SRVName, 8, &so[7828]},
|
||||
{"id-on-NAIRealm", "NAIRealm", NID_NAIRealm, 8, &so[7836]},
|
||||
{"ChaCha20-Poly1305-D", "chacha20-poly1305-draft", NID_chacha20_poly1305_draft},
|
||||
};
|
||||
|
||||
#define NUM_SN 1203
|
||||
#define NUM_SN 1204
|
||||
static const unsigned int sn_objs[NUM_SN] = {
|
||||
364, /* "AD_DVCS" */
|
||||
419, /* "AES-128-CBC" */
|
||||
@@ -2426,7 +2428,7 @@ static const unsigned int sn_objs[NUM_SN] = {
|
||||
417, /* "CSPName" */
|
||||
1019, /* "ChaCha20" */
|
||||
1018, /* "ChaCha20-Poly1305" */
|
||||
1211, /* "ChaCha20-Poly1305-D" */
|
||||
1212, /* "ChaCha20-Poly1305-D" */
|
||||
367, /* "CrlID" */
|
||||
391, /* "DC" */
|
||||
31, /* "DES-CBC" */
|
||||
@@ -2959,6 +2961,7 @@ static const unsigned int sn_objs[NUM_SN] = {
|
||||
279, /* "id-mod-qualified-cert-93" */
|
||||
281, /* "id-mod-timestamp-protocol" */
|
||||
264, /* "id-on" */
|
||||
1211, /* "id-on-NAIRealm" */
|
||||
1208, /* "id-on-SmtpUTF8Mailbox" */
|
||||
1210, /* "id-on-dnsSRV" */
|
||||
858, /* "id-on-permanentIdentifier" */
|
||||
@@ -3510,7 +3513,7 @@ static const unsigned int sn_objs[NUM_SN] = {
|
||||
1093, /* "x509ExtAdmission" */
|
||||
};
|
||||
|
||||
#define NUM_LN 1203
|
||||
#define NUM_LN 1204
|
||||
static const unsigned int ln_objs[NUM_LN] = {
|
||||
363, /* "AD Time Stamping" */
|
||||
405, /* "ANSI X9.62" */
|
||||
@@ -3624,6 +3627,7 @@ static const unsigned int ln_objs[NUM_LN] = {
|
||||
648, /* "Microsoft Smartcard Login" */
|
||||
136, /* "Microsoft Trust List Signing" */
|
||||
649, /* "Microsoft User Principal Name" */
|
||||
1211, /* "NAIRealm" */
|
||||
393, /* "NULL" */
|
||||
404, /* "NULL" */
|
||||
72, /* "Netscape Base Url" */
|
||||
@@ -3898,7 +3902,7 @@ static const unsigned int ln_objs[NUM_LN] = {
|
||||
883, /* "certificateRevocationList" */
|
||||
1019, /* "chacha20" */
|
||||
1018, /* "chacha20-poly1305" */
|
||||
1211, /* "chacha20-poly1305-draft" */
|
||||
1212, /* "chacha20-poly1305-draft" */
|
||||
54, /* "challengePassword" */
|
||||
407, /* "characteristic-two-field" */
|
||||
395, /* "clearance" */
|
||||
@@ -4717,7 +4721,7 @@ static const unsigned int ln_objs[NUM_LN] = {
|
||||
125, /* "zlib compression" */
|
||||
};
|
||||
|
||||
#define NUM_OBJ 1080
|
||||
#define NUM_OBJ 1081
|
||||
static const unsigned int obj_objs[NUM_OBJ] = {
|
||||
0, /* OBJ_undef 0 */
|
||||
181, /* OBJ_iso 1 */
|
||||
@@ -5369,6 +5373,7 @@ static const unsigned int obj_objs[NUM_OBJ] = {
|
||||
858, /* OBJ_id_on_permanentIdentifier 1 3 6 1 5 5 7 8 3 */
|
||||
1209, /* OBJ_XmppAddr 1 3 6 1 5 5 7 8 5 */
|
||||
1210, /* OBJ_SRVName 1 3 6 1 5 5 7 8 7 */
|
||||
1211, /* OBJ_NAIRealm 1 3 6 1 5 5 7 8 8 */
|
||||
1208, /* OBJ_id_on_SmtpUTF8Mailbox 1 3 6 1 5 5 7 8 9 */
|
||||
348, /* OBJ_id_pda_dateOfBirth 1 3 6 1 5 5 7 9 1 */
|
||||
349, /* OBJ_id_pda_placeOfBirth 1 3 6 1 5 5 7 9 2 */
|
||||
|
||||
@@ -36,10 +36,8 @@ sub der_it
|
||||
return $ret;
|
||||
}
|
||||
|
||||
# Output year depends on the year of the script and the input file.
|
||||
my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900;
|
||||
my $iYEAR = [localtime([stat($ARGV[0])]->[9])]->[5] + 1900;
|
||||
$YEAR = $iYEAR if $iYEAR > $YEAR;
|
||||
# The year the output file is generated.
|
||||
my $YEAR = [localtime()]->[5] + 1900;
|
||||
|
||||
# Read input, parse all #define's into OID name and value.
|
||||
# Populate %ln and %sn with long and short names (%dupln and %dupsn)
|
||||
|
||||
@@ -1208,4 +1208,5 @@ x942kdf 1207
|
||||
id_on_SmtpUTF8Mailbox 1208
|
||||
XmppAddr 1209
|
||||
SRVName 1210
|
||||
chacha20_poly1305_draft 1211
|
||||
NAIRealm 1211
|
||||
chacha20_poly1305_draft 1212
|
||||
@@ -2,7 +2,7 @@
|
||||
* WARNING: do not edit!
|
||||
* Generated by objxref.pl
|
||||
*
|
||||
* Copyright 1998-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1998-2020 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
|
||||
@@ -11,12 +11,8 @@ use Getopt::Std;
|
||||
our($opt_n);
|
||||
getopts('n');
|
||||
|
||||
# Output year depends on the year of the script and the input file.
|
||||
my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900;
|
||||
my $iYEAR = [localtime([stat($ARGV[0])]->[9])]->[5] + 1900;
|
||||
$YEAR = $iYEAR if $iYEAR > $YEAR;
|
||||
$iYEAR = [localtime([stat($ARGV[1])]->[9])]->[5] + 1900;
|
||||
$YEAR = $iYEAR if $iYEAR > $YEAR;
|
||||
# The year the output file is generated.
|
||||
my $YEAR = [localtime()]->[5] + 1900;
|
||||
|
||||
open (NUMIN,"$ARGV[1]") || die "Can't open number file $ARGV[1]";
|
||||
$max_nid=0;
|
||||
|
||||
@@ -611,6 +611,7 @@ id-on 1 : id-on-personalData
|
||||
id-on 3 : id-on-permanentIdentifier : Permanent Identifier
|
||||
id-on 5 : id-on-xmppAddr : XmppAddr
|
||||
id-on 7 : id-on-dnsSRV : SRVName
|
||||
id-on 8 : id-on-NAIRealm : NAIRealm
|
||||
id-on 9 : id-on-SmtpUTF8Mailbox : Smtp UTF8 Mailbox
|
||||
|
||||
# personal data attributes
|
||||
|
||||
@@ -611,6 +611,7 @@ id-on 1 : id-on-personalData
|
||||
id-on 3 : id-on-permanentIdentifier : Permanent Identifier
|
||||
id-on 5 : id-on-xmppAddr : XmppAddr
|
||||
id-on 7 : id-on-dnsSRV : SRVName
|
||||
id-on 8 : id-on-NAIRealm : NAIRealm
|
||||
id-on 9 : id-on-SmtpUTF8Mailbox : Smtp UTF8 Mailbox
|
||||
|
||||
# personal data attributes
|
||||
|
||||
@@ -14,12 +14,8 @@ my %oid_tbl;
|
||||
|
||||
my ($mac_file, $xref_file) = @ARGV;
|
||||
|
||||
# Output year depends on the year of the script and the input file.
|
||||
my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900;
|
||||
my $iYEAR = [localtime([stat($mac_file)]->[9])]->[5] + 1900;
|
||||
$YEAR = $iYEAR if $iYEAR > $YEAR;
|
||||
$iYEAR = [localtime([stat($xref_file)]->[9])]->[5] + 1900;
|
||||
$YEAR = $iYEAR if $iYEAR > $YEAR;
|
||||
# The year the output file is generated.
|
||||
my $YEAR = [localtime()]->[5] + 1900;
|
||||
|
||||
open(IN, $mac_file) || die "Can't open $mac_file, $!\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user