summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGES11
-rw-r--r--Makefile.org6
-rw-r--r--apps/Makefile.ssl2
-rw-r--r--crypto/Makefile.ssl15
-rw-r--r--crypto/asn1/Makefile.ssl5
-rw-r--r--crypto/asn1/asn1.err242
-rw-r--r--crypto/asn1/asn1.h6
-rw-r--r--crypto/asn1/asn1_err.c354
-rw-r--r--crypto/bf/Makefile.ssl2
-rw-r--r--crypto/bio/Makefile.ssl6
-rw-r--r--crypto/bio/bio.err48
-rw-r--r--crypto/bio/bio.h6
-rw-r--r--crypto/bio/bio_err.c110
-rw-r--r--crypto/bn/Makefile.ssl6
-rw-r--r--crypto/bn/bn.err32
-rw-r--r--crypto/bn/bn.h6
-rw-r--r--crypto/bn/bn_err.c110
-rw-r--r--crypto/buffer/Makefile.ssl6
-rw-r--r--crypto/buffer/buf_err.c112
-rw-r--r--crypto/buffer/buffer.err8
-rw-r--r--crypto/buffer/buffer.h6
-rw-r--r--crypto/cast/Makefile.ssl2
-rw-r--r--crypto/comp/Makefile.ssl12
-rw-r--r--crypto/comp/comp.err0
-rw-r--r--crypto/comp/comp.h11
-rw-r--r--crypto/comp/comp_err.c2
-rw-r--r--crypto/conf/Makefile.ssl6
-rw-r--r--crypto/conf/conf.err12
-rw-r--r--crypto/conf/conf.h6
-rw-r--r--crypto/conf/conf_err.c108
-rw-r--r--crypto/cpt_err.c112
-rw-r--r--crypto/crypto.err8
-rw-r--r--crypto/crypto.h6
-rw-r--r--crypto/des/Makefile.ssl2
-rw-r--r--crypto/dh/Makefile.ssl6
-rw-r--r--crypto/dh/dh.err12
-rw-r--r--crypto/dh/dh.h6
-rw-r--r--crypto/dh/dh_err.c108
-rw-r--r--crypto/dsa/Makefile.ssl6
-rw-r--r--crypto/dsa/dsa.err20
-rw-r--r--crypto/dsa/dsa.h14
-rw-r--r--crypto/dsa/dsa_err.c116
-rw-r--r--crypto/err/Makefile.ssl2
-rw-r--r--crypto/err/error.err13
-rw-r--r--crypto/err/openssl.ec (renamed from crypto/err/ssleay.ec)49
-rw-r--r--crypto/evp/Makefile.ssl6
-rw-r--r--crypto/evp/evp.err44
-rw-r--r--crypto/evp/evp.h6
-rw-r--r--crypto/evp/evp_err.c112
-rw-r--r--crypto/hmac/Makefile.ssl2
-rw-r--r--crypto/idea/Makefile.ssl2
-rw-r--r--crypto/lhash/Makefile.ssl2
-rw-r--r--crypto/md2/Makefile.ssl2
-rw-r--r--crypto/md5/Makefile.ssl2
-rw-r--r--crypto/mdc2/Makefile.ssl2
-rw-r--r--crypto/objects/Makefile.ssl6
-rw-r--r--crypto/objects/obj_dat.h2
-rw-r--r--crypto/objects/obj_err.c108
-rw-r--r--crypto/objects/objects.err12
-rw-r--r--crypto/objects/objects.h6
-rw-r--r--crypto/pem/Makefile.ssl6
-rw-r--r--crypto/pem/pem.err38
-rw-r--r--crypto/pem/pem.h6
-rw-r--r--crypto/pem/pem_err.c108
-rw-r--r--crypto/pkcs12/Makefile.ssl6
-rw-r--r--crypto/pkcs12/pk12err.c110
-rw-r--r--crypto/pkcs12/pkcs12.err52
-rw-r--r--crypto/pkcs12/pkcs12.h6
-rw-r--r--crypto/pkcs7/Makefile.ssl6
-rw-r--r--crypto/pkcs7/pkcs7.err32
-rw-r--r--crypto/pkcs7/pkcs7.h6
-rw-r--r--crypto/pkcs7/pkcs7err.c108
-rw-r--r--crypto/rand/Makefile.ssl2
-rw-r--r--crypto/rc2/Makefile.ssl2
-rw-r--r--crypto/rc4/Makefile.ssl2
-rw-r--r--crypto/rc5/Makefile.ssl2
-rw-r--r--crypto/ripemd/Makefile.ssl2
-rw-r--r--crypto/rsa/Makefile.ssl6
-rw-r--r--crypto/rsa/rsa.err50
-rw-r--r--crypto/rsa/rsa.h6
-rw-r--r--crypto/rsa/rsa_err.c108
-rw-r--r--crypto/sha/Makefile.ssl2
-rw-r--r--crypto/stack/Makefile.ssl2
-rw-r--r--crypto/txt_db/Makefile.ssl2
-rw-r--r--crypto/x509/Makefile.ssl6
-rw-r--r--crypto/x509/x509.err48
-rw-r--r--crypto/x509/x509.h6
-rw-r--r--crypto/x509/x509_err.c116
-rw-r--r--crypto/x509v3/Makefile.ssl6
-rw-r--r--crypto/x509v3/v3err.c108
-rw-r--r--crypto/x509v3/x509v3.err83
-rw-r--r--crypto/x509v3/x509v3.h6
-rw-r--r--rsaref/Makefile.ssl6
-rw-r--r--rsaref/rsar_err.c130
-rw-r--r--rsaref/rsaref.err32
-rw-r--r--rsaref/rsaref.h6
-rw-r--r--ssl/Makefile.ssl6
-rw-r--r--ssl/ssl.err320
-rw-r--r--ssl/ssl.h6
-rw-r--r--ssl/ssl_err.c108
-rw-r--r--util/mkerr.pl466
101 files changed, 1749 insertions, 2432 deletions
diff --git a/CHANGES b/CHANGES
index 1efd90564e..bc74b8bfd2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,17 @@
Changes between 0.9.2b and 0.9.3
+ *) Complete rewrite of the error code script(s). It is all now handled
+ by one script at the top level which handles error code gathering,
+ header rewriting and C source file generation. It should be much better
+ than the old method: it now uses a modified version of Ulf's parser to
+ read the ANSI prototypes in all header files (thus the old K&R definitions
+ aren't needed for error creation any more) and do a better job of
+ translating function codes into names. The old 'ASN1 error code imbedded
+ in a comment' is no longer necessary and it doesn't use .err files which
+ have now been deleted.
+ [Steve Henson]
+
*) Change #include filenames from <foo.h> to <openssl/foo.h>.
[Bodo Moeller]
diff --git a/Makefile.org b/Makefile.org
index 23be9bc14b..4397ef3343 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -263,11 +263,7 @@ tags:
done;
errors:
- @for i in $(DIRS) ;\
- do \
- (cd $$i && echo "making errors in $$i..." && \
- $(MAKE) SDIRS='${SDIRS}' PERL='${PERL}' errors ) || exit 1; \
- done;
+ perl util/mkerr.pl -static -recurse
tar:
@gtar --no-recursion -cvf - \
diff --git a/apps/Makefile.ssl b/apps/Makefile.ssl
index 47ed4062d7..dbc6db0fde 100644
--- a/apps/Makefile.ssl
+++ b/apps/Makefile.ssl
@@ -114,8 +114,6 @@ dclean:
$(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
mv -f Makefile.new $(MAKEFILE)
-errors:
-
clean:
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff $(EXE)
rm -f req
diff --git a/crypto/Makefile.ssl b/crypto/Makefile.ssl
index 46674409f5..dbb195027f 100644
--- a/crypto/Makefile.ssl
+++ b/crypto/Makefile.ssl
@@ -141,21 +141,6 @@ dclean:
$(MAKE) CC='$(CC)' CFLAG='${CFLAG}' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' dclean ); \
done;
-errors: errgen $(ERRC).c
-
-$(ERRC).c: $(ERR).err
- $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
- $(PERL) err/err_genc.pl -s $(ERR).h $(ERRC).c
-
-errgen:
- $(PERL) ./err/err_code.pl -conf err/ssleay.ec *.c */*.c ../ssl/*.c ../rsaref/*.c
- @for i in $(SDIRS) ;\
- do \
- (cd $$i; echo "making errors in crypto/$$i..."; \
- $(MAKE) errors ); \
- done;
-
-
# DO NOT DELETE THIS LINE -- make depend depends on it.
cpt_err.o: ../include/openssl/crypto.h ../include/openssl/err.h
diff --git a/crypto/asn1/Makefile.ssl b/crypto/asn1/Makefile.ssl
index 59c9d5dcb0..7c9c5d789b 100644
--- a/crypto/asn1/Makefile.ssl
+++ b/crypto/asn1/Makefile.ssl
@@ -112,11 +112,6 @@ dclean:
clean:
rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
-errors: $(ERRC).c
-
-$(ERRC).c: $(ERR).err
- $(PERL) $(TOP)/util/err-ins.pl $(ERR).err $(ERR).h
- $(PERL) ../err/err_genc.pl -s $(ERR).h $(ERRC).c
# DO NOT DELETE THIS LINE -- make depend depends on it.
diff --git a/crypto/asn1/asn1.err b/crypto/asn1/asn1.err
deleted file mode 100644
index 22b7fb351b..0000000000
--- a/crypto/asn1/asn1.err
+++ /dev/null
@@ -1,242 +0,0 @@
-/* Error codes for the ASN1 functions. */
-
-/* Function codes. */
-#define ASN1_F_A2D_ASN1_OBJECT 100
-#define ASN1_F_A2I_ASN1_ENUMERATED 236
-#define ASN1_F_A2I_ASN1_INTEGER 101
-#define ASN1_F_A2I_ASN1_STRING 102
-#define ASN1_F_ASN1_COLLATE_PRIMATIVE 103
-#define ASN1_F_ASN1_D2I_BIO 104
-#define ASN1_F_ASN1_D2I_FP 105
-#define ASN1_F_ASN1_DUP 106
-#define ASN1_F_ASN1_ENUMERATED_SET 232
-#define ASN1_F_ASN1_ENUMERATED_TO_BN 233
-#define ASN1_F_ASN1_GENERALIZEDTIME_NEW 222
-#define ASN1_F_ASN1_GET_OBJECT 107
-#define ASN1_F_ASN1_HEADER_NEW 108
-#define ASN1_F_ASN1_I2D_BIO 109
-#define ASN1_F_ASN1_I2D_FP 110
-#define ASN1_F_ASN1_INTEGER_SET 111
-#define ASN1_F_ASN1_INTEGER_TO_BN 112
-#define ASN1_F_ASN1_OBJECT_NEW 113
-#define ASN1_F_ASN1_PACK_STRING 245
-#define ASN1_F_ASN1_PBE_SET 253
-#define ASN1_F_ASN1_SEQ_PACK 246
-#define ASN1_F_ASN1_SEQ_UNPACK 247
-#define ASN1_F_ASN1_SIGN 114
-#define ASN1_F_ASN1_STRING_NEW 115
-#define ASN1_F_ASN1_STRING_TYPE_NEW 116
-#define ASN1_F_ASN1_TYPE_GET_INT_OCTETSTRING 117
-#define ASN1_F_ASN1_TYPE_GET_OCTETSTRING 118
-#define ASN1_F_ASN1_TYPE_NEW 119
-#define ASN1_F_ASN1_UNPACK_STRING 248
-#define ASN1_F_ASN1_UTCTIME_NEW 120
-#define ASN1_F_ASN1_VERIFY 121
-#define ASN1_F_AUTHORITY_KEYID_NEW 237
-#define ASN1_F_BASIC_CONSTRAINTS_NEW 226
-#define ASN1_F_BN_TO_ASN1_ENUMERATED 234
-#define ASN1_F_BN_TO_ASN1_INTEGER 122
-#define ASN1_F_D2I_ASN1_BIT_STRING 123
-#define ASN1_F_D2I_ASN1_BMPSTRING 124
-#define ASN1_F_D2I_ASN1_BOOLEAN 125
-#define ASN1_F_D2I_ASN1_BYTES 126
-#define ASN1_F_D2I_ASN1_ENUMERATED 235
-#define ASN1_F_D2I_ASN1_GENERALIZEDTIME 223
-#define ASN1_F_D2I_ASN1_HEADER 127
-#define ASN1_F_D2I_ASN1_INTEGER 128
-#define ASN1_F_D2I_ASN1_OBJECT 129
-#define ASN1_F_D2I_ASN1_OCTET_STRING 130
-#define ASN1_F_D2I_ASN1_PRINT_TYPE 131
-#define ASN1_F_D2I_ASN1_SET 132
-#define ASN1_F_D2I_ASN1_TIME 224
-#define ASN1_F_D2I_ASN1_TYPE 133
-#define ASN1_F_D2I_ASN1_TYPE_BYTES 134
-#define ASN1_F_D2I_ASN1_UTCTIME 135
-#define ASN1_F_D2I_ASN1_UTF8STRING 266
-#define ASN1_F_D2I_ASN1_VISIBLESTRING 267
-#define ASN1_F_D2I_AUTHORITY_KEYID 238
-#define ASN1_F_D2I_BASIC_CONSTRAINTS 227
-#define ASN1_F_D2I_DHPARAMS 136
-#define ASN1_F_D2I_DIST_POINT 276
-#define ASN1_F_D2I_DIST_POINT_NAME 277
-#define ASN1_F_D2I_DSAPARAMS 137
-#define ASN1_F_D2I_DSAPRIVATEKEY 138
-#define ASN1_F_D2I_DSAPUBLICKEY 139
-#define ASN1_F_D2I_GENERAL_NAME 230
-#define ASN1_F_D2I_NETSCAPE_CERT_SEQUENCE 228
-#define ASN1_F_D2I_NETSCAPE_PKEY 140
-#define ASN1_F_D2I_NETSCAPE_RSA 141
-#define ASN1_F_D2I_NETSCAPE_RSA_2 142
-#define ASN1_F_D2I_NETSCAPE_SPKAC 143
-#define ASN1_F_D2I_NETSCAPE_SPKI 144