diff options
author | Rich Salz <rsalz@openssl.org> | 2016-03-18 14:30:20 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-20 19:48:36 -0400 |
commit | 3c27208fab1dc29f47f088490404df5abfcdfb05 (patch) | |
tree | 3654ea8c099e19203a48ce2688aeee02f46fd12b /crypto/include | |
parent | 8230f6c764f854190358cf40f0e7e7ca5647d8cd (diff) | |
download | openssl-3c27208fab1dc29f47f088490404df5abfcdfb05.tar.gz |
Remove #error from include files.
Don't have #error statements in header files, but instead wrap
the contents of that file in #ifndef OPENSSL_NO_xxx
This means it is now always safe to include the header file.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/chacha.h | 4 | ||||
-rw-r--r-- | crypto/include/internal/poly1305.h | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/crypto/include/internal/chacha.h b/crypto/include/internal/chacha.h index 98787d35b8..dacbdf59dc 100644 --- a/crypto/include/internal/chacha.h +++ b/crypto/include/internal/chacha.h @@ -57,10 +57,6 @@ extern "C" { #endif -# ifdef OPENSSL_NO_CHACHA -# error CHACHA is disabled. -# endif - /* * ChaCha20_ctr32 encrypts |len| bytes from |inp| with the given key and * nonce and writes the result to |out|, which may be equal to |inp|. diff --git a/crypto/include/internal/poly1305.h b/crypto/include/internal/poly1305.h index b6db3253f2..8e2cac5215 100644 --- a/crypto/include/internal/poly1305.h +++ b/crypto/include/internal/poly1305.h @@ -49,10 +49,6 @@ */ #include <stddef.h> -#ifdef OPENSSL_NO_POLY1305 -# error POLY1305 is disabled. -#endif - #define POLY1305_BLOCK_SIZE 16 typedef struct poly1305_context POLY1305; |