diff options
Diffstat (limited to 'src/lib/libcrypto/objects')
-rw-r--r-- | src/lib/libcrypto/objects/Makefile | 122 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/Makefile.ssl | 123 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/o_names.c | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/obj_dat.c | 12 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/obj_err.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/obj_mac.num | 18 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/objects.h | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/objects.pl | 13 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/objects.txt | 22 |
9 files changed, 259 insertions, 64 deletions
diff --git a/src/lib/libcrypto/objects/Makefile b/src/lib/libcrypto/objects/Makefile new file mode 100644 index 0000000000..e449147129 --- /dev/null +++ b/src/lib/libcrypto/objects/Makefile | |||
@@ -0,0 +1,122 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/objects/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= objects | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALL_PREFIX= | ||
11 | OPENSSLDIR= /usr/local/ssl | ||
12 | INSTALLTOP=/usr/local/ssl | ||
13 | MAKEDEPPROG= makedepend | ||
14 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
15 | MAKEFILE= Makefile | ||
16 | AR= ar r | ||
17 | PERL= perl | ||
18 | |||
19 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
20 | |||
21 | GENERAL=Makefile README | ||
22 | TEST= | ||
23 | APPS= | ||
24 | |||
25 | LIB=$(TOP)/libcrypto.a | ||
26 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c | ||
27 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o | ||
28 | |||
29 | SRC= $(LIBSRC) | ||
30 | |||
31 | EXHEADER= objects.h obj_mac.h | ||
32 | HEADER= $(EXHEADER) obj_dat.h | ||
33 | |||
34 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
35 | |||
36 | top: | ||
37 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
38 | |||
39 | all: obj_dat.h lib | ||
40 | |||
41 | lib: $(LIBOBJ) | ||
42 | $(AR) $(LIB) $(LIBOBJ) | ||
43 | $(RANLIB) $(LIB) || echo Never mind. | ||
44 | @touch lib | ||
45 | |||
46 | obj_dat.h: obj_dat.pl obj_mac.h | ||
47 | $(PERL) obj_dat.pl obj_mac.h obj_dat.h | ||
48 | |||
49 | # objects.pl both reads and writes obj_mac.num | ||
50 | obj_mac.h: objects.pl objects.txt obj_mac.num | ||
51 | $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h | ||
52 | @sleep 1; touch obj_mac.h; sleep 1 | ||
53 | |||
54 | files: | ||
55 | $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO | ||
56 | |||
57 | links: | ||
58 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
59 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
60 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
61 | |||
62 | install: | ||
63 | @headerlist="$(EXHEADER)"; for i in $$headerlist ; \ | ||
64 | do \ | ||
65 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
66 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
67 | done; | ||
68 | |||
69 | tags: | ||
70 | ctags $(SRC) | ||
71 | |||
72 | tests: | ||
73 | |||
74 | lint: | ||
75 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
76 | |||
77 | depend: | ||
78 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
79 | |||
80 | dclean: | ||
81 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
82 | mv -f Makefile.new $(MAKEFILE) | ||
83 | |||
84 | clean: | ||
85 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
86 | |||
87 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
88 | |||
89 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
90 | o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
91 | o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
92 | o_names.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
93 | o_names.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
94 | o_names.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
95 | o_names.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
96 | o_names.o: ../../include/openssl/symhacks.h o_names.c | ||
97 | obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
98 | obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
99 | obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
100 | obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
101 | obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
102 | obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
103 | obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
104 | obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
105 | obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h | ||
106 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
107 | obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
108 | obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
109 | obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
110 | obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
111 | obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
112 | obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
113 | obj_err.o: ../../include/openssl/symhacks.h obj_err.c | ||
114 | obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
115 | obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
116 | obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
117 | obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
118 | obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
119 | obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
120 | obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
121 | obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
122 | obj_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_lib.c | ||
diff --git a/src/lib/libcrypto/objects/Makefile.ssl b/src/lib/libcrypto/objects/Makefile.ssl new file mode 100644 index 0000000000..3e7a194cf9 --- /dev/null +++ b/src/lib/libcrypto/objects/Makefile.ssl | |||
@@ -0,0 +1,123 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/objects/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= objects | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | INCLUDES= -I.. -I$(TOP) -I../../include | ||
9 | CFLAG=-g | ||
10 | INSTALL_PREFIX= | ||
11 | OPENSSLDIR= /usr/local/ssl | ||
12 | INSTALLTOP=/usr/local/ssl | ||
13 | MAKE= make -f Makefile.ssl | ||
14 | MAKEDEPPROG= makedepend | ||
15 | MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG) | ||
16 | MAKEFILE= Makefile.ssl | ||
17 | AR= ar r | ||
18 | PERL= perl | ||
19 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | GENERAL=Makefile README | ||
23 | TEST= | ||
24 | APPS= | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | ||
27 | LIBSRC= o_names.c obj_dat.c obj_lib.c obj_err.c | ||
28 | LIBOBJ= o_names.o obj_dat.o obj_lib.o obj_err.o | ||
29 | |||
30 | SRC= $(LIBSRC) | ||
31 | |||
32 | EXHEADER= objects.h obj_mac.h | ||
33 | HEADER= $(EXHEADER) obj_dat.h | ||
34 | |||
35 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
36 | |||
37 | top: | ||
38 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
39 | |||
40 | all: obj_dat.h lib | ||
41 | |||
42 | lib: $(LIBOBJ) | ||
43 | $(AR) $(LIB) $(LIBOBJ) | ||
44 | $(RANLIB) $(LIB) || echo Never mind. | ||
45 | @touch lib | ||
46 | |||
47 | obj_dat.h: obj_dat.pl obj_mac.h | ||
48 | $(PERL) obj_dat.pl obj_mac.h obj_dat.h | ||
49 | |||
50 | # objects.pl both reads and writes obj_mac.num | ||
51 | obj_mac.h: objects.pl objects.txt obj_mac.num | ||
52 | $(PERL) objects.pl objects.txt obj_mac.num obj_mac.h | ||
53 | |||
54 | files: | ||
55 | $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
56 | |||
57 | links: | ||
58 | @sh $(TOP)/util/point.sh Makefile.ssl Makefile | ||
59 | @$(PERL) $(TOP)/util/mklink.pl ../../include/openssl $(EXHEADER) | ||
60 | @$(PERL) $(TOP)/util/mklink.pl ../../test $(TEST) | ||
61 | @$(PERL) $(TOP)/util/mklink.pl ../../apps $(APPS) | ||
62 | |||
63 | install: | ||
64 | @for i in $(EXHEADER) ; \ | ||
65 | do \ | ||
66 | (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i; \ | ||
67 | chmod 644 $(INSTALL_PREFIX)$(INSTALLTOP)/include/openssl/$$i ); \ | ||
68 | done; | ||
69 | |||
70 | tags: | ||
71 | ctags $(SRC) | ||
72 | |||
73 | tests: | ||
74 | |||
75 | lint: | ||
76 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
77 | |||
78 | depend: | ||
79 | $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) | ||
80 | |||
81 | dclean: | ||
82 | $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
83 | mv -f Makefile.new $(MAKEFILE) | ||
84 | |||
85 | clean: | ||
86 | rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
87 | |||
88 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||
89 | |||
90 | o_names.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
91 | o_names.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
92 | o_names.o: ../../include/openssl/e_os2.h ../../include/openssl/lhash.h | ||
93 | o_names.o: ../../include/openssl/obj_mac.h ../../include/openssl/objects.h | ||
94 | o_names.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h | ||
95 | o_names.o: ../../include/openssl/ossl_typ.h ../../include/openssl/safestack.h | ||
96 | o_names.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h | ||
97 | o_names.o: o_names.c | ||
98 | obj_dat.o: ../../e_os.h ../../include/openssl/asn1.h | ||
99 | obj_dat.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
100 | obj_dat.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
101 | obj_dat.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
102 | obj_dat.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
103 | obj_dat.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
104 | obj_dat.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
105 | obj_dat.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
106 | obj_dat.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_dat.c obj_dat.h | ||
107 | obj_err.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h | ||
108 | obj_err.o: ../../include/openssl/bn.h ../../include/openssl/crypto.h | ||
109 | obj_err.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
110 | obj_err.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
111 | obj_err.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
112 | obj_err.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
113 | obj_err.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
114 | obj_err.o: ../../include/openssl/symhacks.h obj_err.c | ||
115 | obj_lib.o: ../../e_os.h ../../include/openssl/asn1.h | ||
116 | obj_lib.o: ../../include/openssl/bio.h ../../include/openssl/bn.h | ||
117 | obj_lib.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h | ||
118 | obj_lib.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h | ||
119 | obj_lib.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h | ||
120 | obj_lib.o: ../../include/openssl/objects.h ../../include/openssl/opensslconf.h | ||
121 | obj_lib.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h | ||
122 | obj_lib.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h | ||
123 | obj_lib.o: ../../include/openssl/symhacks.h ../cryptlib.h obj_lib.c | ||
diff --git a/src/lib/libcrypto/objects/o_names.c b/src/lib/libcrypto/objects/o_names.c index 28c9370ca3..b4453b4a98 100644 --- a/src/lib/libcrypto/objects/o_names.c +++ b/src/lib/libcrypto/objects/o_names.c | |||
@@ -2,7 +2,6 @@ | |||
2 | #include <stdlib.h> | 2 | #include <stdlib.h> |
3 | #include <string.h> | 3 | #include <string.h> |
4 | 4 | ||
5 | #include <openssl/err.h> | ||
6 | #include <openssl/lhash.h> | 5 | #include <openssl/lhash.h> |
7 | #include <openssl/objects.h> | 6 | #include <openssl/objects.h> |
8 | #include <openssl/safestack.h> | 7 | #include <openssl/safestack.h> |
@@ -81,11 +80,7 @@ int OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), | |||
81 | MemCheck_off(); | 80 | MemCheck_off(); |
82 | name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS)); | 81 | name_funcs = OPENSSL_malloc(sizeof(NAME_FUNCS)); |
83 | MemCheck_on(); | 82 | MemCheck_on(); |
84 | if (!name_funcs) | 83 | if (!name_funcs) return(0); |
85 | { | ||
86 | OBJerr(OBJ_F_OBJ_NAME_NEW_INDEX,ERR_R_MALLOC_FAILURE); | ||
87 | return(0); | ||
88 | } | ||
89 | name_funcs->hash_func = lh_strhash; | 84 | name_funcs->hash_func = lh_strhash; |
90 | name_funcs->cmp_func = OPENSSL_strcmp; | 85 | name_funcs->cmp_func = OPENSSL_strcmp; |
91 | name_funcs->free_func = 0; /* NULL is often declared to | 86 | name_funcs->free_func = 0; /* NULL is often declared to |
diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index f549d078ef..4534dc0985 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/lib/libcrypto/objects/obj_dat.c | |||
@@ -236,13 +236,13 @@ int OBJ_add_object(const ASN1_OBJECT *obj) | |||
236 | if (added == NULL) | 236 | if (added == NULL) |
237 | if (!init_added()) return(0); | 237 | if (!init_added()) return(0); |
238 | if ((o=OBJ_dup(obj)) == NULL) goto err; | 238 | if ((o=OBJ_dup(obj)) == NULL) goto err; |
239 | if (!(ao[ADDED_NID]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)))) goto err2; | 239 | if (!(ao[ADDED_NID]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)))) goto err; |
240 | if ((o->length != 0) && (obj->data != NULL)) | 240 | if ((o->length != 0) && (obj->data != NULL)) |
241 | if (!(ao[ADDED_DATA]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)))) goto err2; | 241 | ao[ADDED_DATA]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)); |
242 | if (o->sn != NULL) | 242 | if (o->sn != NULL) |
243 | if (!(ao[ADDED_SNAME]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)))) goto err2; | 243 | ao[ADDED_SNAME]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)); |
244 | if (o->ln != NULL) | 244 | if (o->ln != NULL) |
245 | if (!(ao[ADDED_LNAME]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)))) goto err2; | 245 | ao[ADDED_LNAME]=(ADDED_OBJ *)OPENSSL_malloc(sizeof(ADDED_OBJ)); |
246 | 246 | ||
247 | for (i=ADDED_DATA; i<=ADDED_NID; i++) | 247 | for (i=ADDED_DATA; i<=ADDED_NID; i++) |
248 | { | 248 | { |
@@ -260,8 +260,6 @@ int OBJ_add_object(const ASN1_OBJECT *obj) | |||
260 | ASN1_OBJECT_FLAG_DYNAMIC_DATA); | 260 | ASN1_OBJECT_FLAG_DYNAMIC_DATA); |
261 | 261 | ||
262 | return(o->nid); | 262 | return(o->nid); |
263 | err2: | ||
264 | OBJerr(OBJ_F_OBJ_ADD_OBJECT,ERR_R_MALLOC_FAILURE); | ||
265 | err: | 263 | err: |
266 | for (i=ADDED_DATA; i<=ADDED_NID; i++) | 264 | for (i=ADDED_DATA; i<=ADDED_NID; i++) |
267 | if (ao[i] != NULL) OPENSSL_free(ao[i]); | 265 | if (ao[i] != NULL) OPENSSL_free(ao[i]); |
@@ -650,7 +648,7 @@ int OBJ_create(const char *oid, const char *sn, const char *ln) | |||
650 | 648 | ||
651 | if ((buf=(unsigned char *)OPENSSL_malloc(i)) == NULL) | 649 | if ((buf=(unsigned char *)OPENSSL_malloc(i)) == NULL) |
652 | { | 650 | { |
653 | OBJerr(OBJ_F_OBJ_CREATE,ERR_R_MALLOC_FAILURE); | 651 | OBJerr(OBJ_F_OBJ_CREATE,OBJ_R_MALLOC_FAILURE); |
654 | return(0); | 652 | return(0); |
655 | } | 653 | } |
656 | i=a2d_ASN1_OBJECT(buf,i,oid,-1); | 654 | i=a2d_ASN1_OBJECT(buf,i,oid,-1); |
diff --git a/src/lib/libcrypto/objects/obj_err.c b/src/lib/libcrypto/objects/obj_err.c index 2b5f43e3cc..80ab6855af 100644 --- a/src/lib/libcrypto/objects/obj_err.c +++ b/src/lib/libcrypto/objects/obj_err.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* crypto/objects/obj_err.c */ | 1 | /* crypto/objects/obj_err.c */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2004 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions |
@@ -66,10 +66,8 @@ | |||
66 | #ifndef OPENSSL_NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
67 | static ERR_STRING_DATA OBJ_str_functs[]= | 67 | static ERR_STRING_DATA OBJ_str_functs[]= |
68 | { | 68 | { |
69 | {ERR_PACK(0,OBJ_F_OBJ_ADD_OBJECT,0), "OBJ_add_object"}, | ||
70 | {ERR_PACK(0,OBJ_F_OBJ_CREATE,0), "OBJ_create"}, | 69 | {ERR_PACK(0,OBJ_F_OBJ_CREATE,0), "OBJ_create"}, |
71 | {ERR_PACK(0,OBJ_F_OBJ_DUP,0), "OBJ_dup"}, | 70 | {ERR_PACK(0,OBJ_F_OBJ_DUP,0), "OBJ_dup"}, |
72 | {ERR_PACK(0,OBJ_F_OBJ_NAME_NEW_INDEX,0), "OBJ_NAME_new_index"}, | ||
73 | {ERR_PACK(0,OBJ_F_OBJ_NID2LN,0), "OBJ_nid2ln"}, | 71 | {ERR_PACK(0,OBJ_F_OBJ_NID2LN,0), "OBJ_nid2ln"}, |
74 | {ERR_PACK(0,OBJ_F_OBJ_NID2OBJ,0), "OBJ_nid2obj"}, | 72 | {ERR_PACK(0,OBJ_F_OBJ_NID2OBJ,0), "OBJ_nid2obj"}, |
75 | {ERR_PACK(0,OBJ_F_OBJ_NID2SN,0), "OBJ_nid2sn"}, | 73 | {ERR_PACK(0,OBJ_F_OBJ_NID2SN,0), "OBJ_nid2sn"}, |
diff --git a/src/lib/libcrypto/objects/obj_mac.num b/src/lib/libcrypto/objects/obj_mac.num index 0e64a929ba..9838072b65 100644 --- a/src/lib/libcrypto/objects/obj_mac.num +++ b/src/lib/libcrypto/objects/obj_mac.num | |||
@@ -647,21 +647,3 @@ joint_iso_itu_t 646 | |||
647 | international_organizations 647 | 647 | international_organizations 647 |
648 | ms_smartcard_login 648 | 648 | ms_smartcard_login 648 |
649 | ms_upn 649 | 649 | ms_upn 649 |
650 | aes_128_cfb1 650 | ||
651 | aes_192_cfb1 651 | ||
652 | aes_256_cfb1 652 | ||
653 | aes_128_cfb8 653 | ||
654 | aes_192_cfb8 654 | ||
655 | aes_256_cfb8 655 | ||
656 | des_cfb1 656 | ||
657 | des_cfb8 657 | ||
658 | des_ede3_cfb1 658 | ||
659 | des_ede3_cfb8 659 | ||
660 | streetAddress 660 | ||
661 | postalCode 661 | ||
662 | id_ppl 662 | ||
663 | proxyCertInfo 663 | ||
664 | id_ppl_anyLanguage 664 | ||
665 | id_ppl_inheritAll 665 | ||
666 | id_ppl_independent 666 | ||
667 | Independent 667 | ||
diff --git a/src/lib/libcrypto/objects/objects.h b/src/lib/libcrypto/objects/objects.h index f859d859b8..de10532813 100644 --- a/src/lib/libcrypto/objects/objects.h +++ b/src/lib/libcrypto/objects/objects.h | |||
@@ -1026,10 +1026,8 @@ void ERR_load_OBJ_strings(void); | |||
1026 | /* Error codes for the OBJ functions. */ | 1026 | /* Error codes for the OBJ functions. */ |
1027 | 1027 | ||
1028 | /* Function codes. */ | 1028 | /* Function codes. */ |
1029 | #define OBJ_F_OBJ_ADD_OBJECT 105 | ||
1030 | #define OBJ_F_OBJ_CREATE 100 | 1029 | #define OBJ_F_OBJ_CREATE 100 |
1031 | #define OBJ_F_OBJ_DUP 101 | 1030 | #define OBJ_F_OBJ_DUP 101 |
1032 | #define OBJ_F_OBJ_NAME_NEW_INDEX 106 | ||
1033 | #define OBJ_F_OBJ_NID2LN 102 | 1031 | #define OBJ_F_OBJ_NID2LN 102 |
1034 | #define OBJ_F_OBJ_NID2OBJ 103 | 1032 | #define OBJ_F_OBJ_NID2OBJ 103 |
1035 | #define OBJ_F_OBJ_NID2SN 104 | 1033 | #define OBJ_F_OBJ_NID2SN 104 |
diff --git a/src/lib/libcrypto/objects/objects.pl b/src/lib/libcrypto/objects/objects.pl index 76c06cc8f9..76bb8da677 100644 --- a/src/lib/libcrypto/objects/objects.pl +++ b/src/lib/libcrypto/objects/objects.pl | |||
@@ -107,12 +107,13 @@ while (<IN>) | |||
107 | } | 107 | } |
108 | close IN; | 108 | close IN; |
109 | 109 | ||
110 | open (NUMOUT,">$ARGV[1]") || die "Can't open output file $ARGV[1]"; | 110 | #XXX don't modify input files |
111 | foreach (sort { $a <=> $b } keys %nidn) | 111 | #open (NUMOUT,">$ARGV[1]") || die "Can't open output file $ARGV[1]"; |
112 | { | 112 | #foreach (sort { $a <=> $b } keys %nidn) |
113 | print NUMOUT $nidn{$_},"\t\t",$_,"\n"; | 113 | # { |
114 | } | 114 | # print NUMOUT $nidn{$_},"\t\t",$_,"\n"; |
115 | close NUMOUT; | 115 | # } |
116 | #close NUMOUT; | ||
116 | 117 | ||
117 | open (OUT,">$ARGV[2]") || die "Can't open output file $ARGV[2]"; | 118 | open (OUT,">$ARGV[2]") || die "Can't open output file $ARGV[2]"; |
118 | print OUT <<'EOF'; | 119 | print OUT <<'EOF'; |
diff --git a/src/lib/libcrypto/objects/objects.txt b/src/lib/libcrypto/objects/objects.txt index 50e9031e61..3ba11f65cc 100644 --- a/src/lib/libcrypto/objects/objects.txt +++ b/src/lib/libcrypto/objects/objects.txt | |||
@@ -312,7 +312,6 @@ id-pkix 9 : id-pda | |||
312 | id-pkix 10 : id-aca | 312 | id-pkix 10 : id-aca |
313 | id-pkix 11 : id-qcs | 313 | id-pkix 11 : id-qcs |
314 | id-pkix 12 : id-cct | 314 | id-pkix 12 : id-cct |
315 | id-pkix 21 : id-ppl | ||
316 | id-pkix 48 : id-ad | 315 | id-pkix 48 : id-ad |
317 | 316 | ||
318 | # PKIX Modules | 317 | # PKIX Modules |
@@ -347,7 +346,6 @@ id-pe 9 : sbqp-routerIdentifier | |||
347 | id-pe 10 : ac-proxying | 346 | id-pe 10 : ac-proxying |
348 | !Cname sinfo-access | 347 | !Cname sinfo-access |
349 | id-pe 11 : subjectInfoAccess : Subject Information Access | 348 | id-pe 11 : subjectInfoAccess : Subject Information Access |
350 | id-pe 14 : proxyCertInfo : Proxy Certificate Information | ||
351 | 349 | ||
352 | # PKIX policyQualifiers for Internet policy qualifiers | 350 | # PKIX policyQualifiers for Internet policy qualifiers |
353 | id-qt 1 : id-qt-cps : Policy Qualifier CPS | 351 | id-qt 1 : id-qt-cps : Policy Qualifier CPS |
@@ -463,11 +461,6 @@ id-cct 1 : id-cct-crs | |||
463 | id-cct 2 : id-cct-PKIData | 461 | id-cct 2 : id-cct-PKIData |
464 | id-cct 3 : id-cct-PKIResponse | 462 | id-cct 3 : id-cct-PKIResponse |
465 | 463 | ||
466 | # Predefined Proxy Certificate policy languages | ||
467 | id-ppl 0 : id-ppl-anyLanguage : Any language | ||
468 | id-ppl 1 : id-ppl-inheritAll : Inherit all | ||
469 | id-ppl 2 : id-ppl-independent : Independent | ||
470 | |||
471 | # access descriptors for authority info access extension | 464 | # access descriptors for authority info access extension |
472 | !Cname ad-OCSP | 465 | !Cname ad-OCSP |
473 | id-ad 1 : OCSP : OCSP | 466 | id-ad 1 : OCSP : OCSP |
@@ -543,12 +536,10 @@ X509 5 : : serialNumber | |||
543 | X509 6 : C : countryName | 536 | X509 6 : C : countryName |
544 | X509 7 : L : localityName | 537 | X509 7 : L : localityName |
545 | X509 8 : ST : stateOrProvinceName | 538 | X509 8 : ST : stateOrProvinceName |
546 | X509 9 : : streetAddress | ||
547 | X509 10 : O : organizationName | 539 | X509 10 : O : organizationName |
548 | X509 11 : OU : organizationalUnitName | 540 | X509 11 : OU : organizationalUnitName |
549 | X509 12 : : title | 541 | X509 12 : : title |
550 | X509 13 : : description | 542 | X509 13 : : description |
551 | X509 17 : : postalCode | ||
552 | X509 41 : name : name | 543 | X509 41 : name : name |
553 | X509 42 : GN : givenName | 544 | X509 42 : GN : givenName |
554 | X509 43 : : initials | 545 | X509 43 : : initials |
@@ -690,19 +681,6 @@ aes 43 : AES-256-OFB : aes-256-ofb | |||
690 | !Cname aes-256-cfb128 | 681 | !Cname aes-256-cfb128 |
691 | aes 44 : AES-256-CFB : aes-256-cfb | 682 | aes 44 : AES-256-CFB : aes-256-cfb |
692 | 683 | ||
693 | # There are no OIDs for these modes... | ||
694 | |||
695 | : AES-128-CFB1 : aes-128-cfb1 | ||
696 | : AES-192-CFB1 : aes-192-cfb1 | ||
697 | : AES-256-CFB1 : aes-256-cfb1 | ||
698 | : AES-128-CFB8 : aes-128-cfb8 | ||
699 | : AES-192-CFB8 : aes-192-cfb8 | ||
700 | : AES-256-CFB8 : aes-256-cfb8 | ||
701 | : DES-CFB1 : des-cfb1 | ||
702 | : DES-CFB8 : des-cfb8 | ||
703 | : DES-EDE3-CFB1 : des-ede3-cfb1 | ||
704 | : DES-EDE3-CFB8 : des-ede3-cfb8 | ||
705 | |||
706 | # Hold instruction CRL entry extension | 684 | # Hold instruction CRL entry extension |
707 | !Cname hold-instruction-code | 685 | !Cname hold-instruction-code |
708 | id-ce 23 : holdInstructionCode : Hold Instruction Code | 686 | id-ce 23 : holdInstructionCode : Hold Instruction Code |