Fixes to make 'no-ec' work (it should not turn 'objects' into 'objts' for example)
[openssl.git] / crypto / err / err_all.c
index 2ca5bef136b4f074b6d1aa5a5a0c6871fe0e04ad..b088de65f5f30d94f473bc6ed999653b421bc249 100644 (file)
@@ -59,7 +59,9 @@
 #include <stdio.h>
 #include <openssl/asn1.h>
 #include <openssl/bn.h>
 #include <stdio.h>
 #include <openssl/asn1.h>
 #include <openssl/bn.h>
+#ifndef OPENSSL_NO_EC
 #include <openssl/ec.h>
 #include <openssl/ec.h>
+#endif
 #include <openssl/buffer.h>
 #include <openssl/bio.h>
 #ifndef OPENSSL_NO_RSA
 #include <openssl/buffer.h>
 #include <openssl/bio.h>
 #ifndef OPENSSL_NO_RSA
@@ -110,7 +112,9 @@ void ERR_load_crypto_strings(void)
        ERR_load_ASN1_strings();
        ERR_load_CONF_strings();
        ERR_load_CRYPTO_strings();
        ERR_load_ASN1_strings();
        ERR_load_CONF_strings();
        ERR_load_CRYPTO_strings();
+#ifndef OPENSSL_NO_EC
        ERR_load_EC_strings();
        ERR_load_EC_strings();
+#endif
        /* skip ERR_load_SSL_strings() because it is not in this library */
        ERR_load_BIO_strings();
        ERR_load_PKCS7_strings();       
        /* skip ERR_load_SSL_strings() because it is not in this library */
        ERR_load_BIO_strings();
        ERR_load_PKCS7_strings();