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 /include/openssl/seed.h | |
parent | 8230f6c764f854190358cf40f0e7e7ca5647d8cd (diff) | |
download | openssl-3c27208fab1dc29f47f088490404df5abfcdfb05.zip openssl-3c27208fab1dc29f47f088490404df5abfcdfb05.tar.gz openssl-3c27208fab1dc29f47f088490404df5abfcdfb05.tar.bz2 |
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 'include/openssl/seed.h')
-rw-r--r-- | include/openssl/seed.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/include/openssl/seed.h b/include/openssl/seed.h index 918f70c..e643e76 100644 --- a/include/openssl/seed.h +++ b/include/openssl/seed.h @@ -81,12 +81,14 @@ # define HEADER_SEED_H # include <openssl/opensslconf.h> + +# ifndef OPENSSL_NO_SEED # include <openssl/e_os2.h> # include <openssl/crypto.h> -# ifdef OPENSSL_NO_SEED -# error SEED is disabled. -# endif +#ifdef __cplusplus +extern "C" { +#endif /* look whether we need 'long' to get 32 bits */ # ifdef AES_LONG @@ -102,11 +104,6 @@ # define SEED_BLOCK_SIZE 16 # define SEED_KEY_LENGTH 16 - -#ifdef __cplusplus -extern "C" { -#endif - typedef struct seed_key_st { # ifdef SEED_LONG unsigned long data[32]; @@ -138,8 +135,9 @@ void SEED_ofb128_encrypt(const unsigned char *in, unsigned char *out, size_t len, const SEED_KEY_SCHEDULE *ks, unsigned char ivec[SEED_BLOCK_SIZE], int *num); -#ifdef __cplusplus +# ifdef __cplusplus } -#endif +# endif +# endif -#endif /* HEADER_SEED_H */ +#endif |