Skip to content

Commit

Permalink
Add OID for draft-ietf-opsawg-finding-geofeeds detached CMS signature
Browse files Browse the repository at this point in the history
RFC 8805 Geofeed files can be authenticated with RPKI

CLA: trivial

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #14050)
  • Loading branch information
Job Snijders authored and paulidale committed Feb 12, 2021
1 parent 1eaf1fc commit f2d7853
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
15 changes: 10 additions & 5 deletions crypto/objects/obj_dat.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

/* Serialized OID's */
static const unsigned char so[8054] = {
static const unsigned char so[8065] = {
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 */
Expand Down Expand Up @@ -1113,9 +1113,10 @@ static const unsigned char so[8054] = {
0x2B,0x06,0x01,0x05,0x05,0x07,0x30,0x0A, /* [ 8029] OBJ_rpkiManifest */
0x2B,0x06,0x01,0x05,0x05,0x07,0x30,0x0B, /* [ 8037] OBJ_signedObject */
0x2B,0x06,0x01,0x05,0x05,0x07,0x30,0x0D, /* [ 8045] OBJ_rpkiNotify */
0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x10,0x01,0x2F, /* [ 8053] OBJ_id_ct_geofeedCSVwithCRLF */
};

#define NUM_NID 1246
#define NUM_NID 1247
static const ASN1_OBJECT nid_objs[NUM_NID] = {
{"UNDEF", "undefined", NID_undef},
{"rsadsi", "RSA Data Security, Inc.", NID_rsadsi, 6, &so[0]},
Expand Down Expand Up @@ -2363,9 +2364,10 @@ static const ASN1_OBJECT nid_objs[NUM_NID] = {
{"rpkiManifest", "RPKI Manifest", NID_rpkiManifest, 8, &so[8029]},
{"signedObject", "Signed Object", NID_signedObject, 8, &so[8037]},
{"rpkiNotify", "RPKI Notify", NID_rpkiNotify, 8, &so[8045]},
{"id-ct-geofeedCSVwithCRLF", "id-ct-geofeedCSVwithCRLF", NID_id_ct_geofeedCSVwithCRLF, 11, &so[8053]},
};

#define NUM_SN 1237
#define NUM_SN 1238
static const unsigned int sn_objs[NUM_SN] = {
364, /* "AD_DVCS" */
419, /* "AES-128-CBC" */
Expand Down Expand Up @@ -2977,6 +2979,7 @@ static const unsigned int sn_objs[NUM_SN] = {
331, /* "id-cmc-transactionId" */
1238, /* "id-cp" */
787, /* "id-ct-asciiTextWithCRLF" */
1246, /* "id-ct-geofeedCSVwithCRLF" */
1237, /* "id-ct-resourceTaggedAttest" */
1234, /* "id-ct-routeOriginAuthz" */
1236, /* "id-ct-rpkiGhostbusters" */
Expand Down Expand Up @@ -3606,7 +3609,7 @@ static const unsigned int sn_objs[NUM_SN] = {
1093, /* "x509ExtAdmission" */
};

#define NUM_LN 1237
#define NUM_LN 1238
static const unsigned int ln_objs[NUM_LN] = {
363, /* "AD Time Stamping" */
405, /* "ANSI X9.62" */
Expand Down Expand Up @@ -4236,6 +4239,7 @@ static const unsigned int ln_objs[NUM_LN] = {
331, /* "id-cmc-transactionId" */
1238, /* "id-cp" */
787, /* "id-ct-asciiTextWithCRLF" */
1246, /* "id-ct-geofeedCSVwithCRLF" */
1237, /* "id-ct-resourceTaggedAttest" */
1234, /* "id-ct-routeOriginAuthz" */
1236, /* "id-ct-rpkiGhostbusters" */
Expand Down Expand Up @@ -4847,7 +4851,7 @@ static const unsigned int ln_objs[NUM_LN] = {
125, /* "zlib compression" */
};

#define NUM_OBJ 1108
#define NUM_OBJ 1109
static const unsigned int obj_objs[NUM_OBJ] = {
0, /* OBJ_undef 0 */
181, /* OBJ_iso 1 */
Expand Down Expand Up @@ -5886,6 +5890,7 @@ static const unsigned int obj_objs[NUM_OBJ] = {
1060, /* OBJ_id_ct_xml 1 2 840 113549 1 9 16 1 28 */
1236, /* OBJ_id_ct_rpkiGhostbusters 1 2 840 113549 1 9 16 1 35 */
1237, /* OBJ_id_ct_resourceTaggedAttest 1 2 840 113549 1 9 16 1 36 */
1246, /* OBJ_id_ct_geofeedCSVwithCRLF 1 2 840 113549 1 9 16 1 47 */
212, /* OBJ_id_smime_aa_receiptRequest 1 2 840 113549 1 9 16 2 1 */
213, /* OBJ_id_smime_aa_securityLabel 1 2 840 113549 1 9 16 2 2 */
214, /* OBJ_id_smime_aa_mlExpandHistory 1 2 840 113549 1 9 16 2 3 */
Expand Down
1 change: 1 addition & 0 deletions crypto/objects/obj_mac.num
Original file line number Diff line number Diff line change
Expand Up @@ -1243,3 +1243,4 @@ ipAddr_asNumberv2 1242
rpkiManifest 1243
signedObject 1244
rpkiNotify 1245
id_ct_geofeedCSVwithCRLF 1246
1 change: 1 addition & 0 deletions crypto/objects/objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ id-smime-ct 27 : id-ct-asciiTextWithCRLF
id-smime-ct 28 : id-ct-xml
id-smime-ct 35 : id-ct-rpkiGhostbusters
id-smime-ct 36 : id-ct-resourceTaggedAttest
id-smime-ct 47 : id-ct-geofeedCSVwithCRLF

# S/MIME Attributes
id-smime-aa 1 : id-smime-aa-receiptRequest
Expand Down
1 change: 1 addition & 0 deletions fuzz/oids.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1100,3 +1100,4 @@ OBJ_ipAddr_asNumberv2="\x2B\x06\x01\x05\x05\x07\x0E\x03"
OBJ_rpkiManifest="\x2B\x06\x01\x05\x05\x07\x30\x0A"
OBJ_signedObject="\x2B\x06\x01\x05\x05\x07\x30\x0B"
OBJ_rpkiNotify="\x2B\x06\x01\x05\x05\x07\x30\x0D"
OBJ_id_ct_geofeedCSVwithCRLF="\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x2F"
4 changes: 4 additions & 0 deletions include/openssl/obj_mac.h
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,10 @@
#define NID_id_ct_resourceTaggedAttest 1237
#define OBJ_id_ct_resourceTaggedAttest OBJ_id_smime_ct,36L

#define SN_id_ct_geofeedCSVwithCRLF "id-ct-geofeedCSVwithCRLF"
#define NID_id_ct_geofeedCSVwithCRLF 1246
#define OBJ_id_ct_geofeedCSVwithCRLF OBJ_id_smime_ct,47L

#define SN_id_smime_aa_receiptRequest "id-smime-aa-receiptRequest"
#define NID_id_smime_aa_receiptRequest 212
#define OBJ_id_smime_aa_receiptRequest OBJ_id_smime_aa,1L
Expand Down

0 comments on commit f2d7853

Please sign in to comment.