Add more features that may be disabled

A grep of OPENSSL_NO_ in the rest of the source tree revealed a few
more features to check.

NOTE: there are some of those macros that I ignore because a check of
them doesn't seem useful to external apps.  This might change later on.

Reviewed-by: Stephen Henson <steve@openssl.org>
This commit is contained in:
Richard Levitte 2015-09-20 01:31:47 +02:00
parent 66b14bab0a
commit 2df84dd329

View File

@ -744,13 +744,16 @@ static void list_disabled(void)
#ifdef OPENSSL_NO_DES #ifdef OPENSSL_NO_DES
BIO_puts(bio_out, "DES\n"); BIO_puts(bio_out, "DES\n");
#endif #endif
#ifdef OPENSSL_NO_DGRAM
BIO_puts(bio_out, "DGRAM\n");
#endif
#ifdef OPENSSL_NO_DH #ifdef OPENSSL_NO_DH
BIO_puts(bio_out, "DH\n"); BIO_puts(bio_out, "DH\n");
#endif #endif
#ifdef OPENSSL_NO_DSA #ifdef OPENSSL_NO_DSA
BIO_puts(bio_out, "DSA\n"); BIO_puts(bio_out, "DSA\n");
#endif #endif
#ifdef OPENSSL_NO_DTLS1 #if defined(OPENSSL_NO_DTLS1) || defined(OPENSSL_NO_DTLS)
BIO_puts(bio_out, "DTLS1\n"); BIO_puts(bio_out, "DTLS1\n");
#endif #endif
#ifdef OPENSSL_NO_EC #ifdef OPENSSL_NO_EC
@ -762,6 +765,9 @@ static void list_disabled(void)
#ifdef OPENSSL_NO_ENGINE #ifdef OPENSSL_NO_ENGINE
BIO_puts(bio_out, "ENGINE\n"); BIO_puts(bio_out, "ENGINE\n");
#endif #endif
#ifdef OPENSSL_NO_GOST
BIO_puts(bio_out, "GOST\n");
#endif
#ifdef OPENSSL_NO_IDEA #ifdef OPENSSL_NO_IDEA
BIO_puts(bio_out, "IDEA\n"); BIO_puts(bio_out, "IDEA\n");
#endif #endif
@ -783,6 +789,9 @@ static void list_disabled(void)
#ifdef OPENSSL_NO_MD_GHOST94 #ifdef OPENSSL_NO_MD_GHOST94
BIO_puts(bio_out, "MD_GHOST94\n"); BIO_puts(bio_out, "MD_GHOST94\n");
#endif #endif
#ifdef OPENSSL_NO_OCB
BIO_puts(bio_out, "OCB\n");
#endif
#ifdef OPENSSL_NO_OCSP #ifdef OPENSSL_NO_OCSP
BIO_puts(bio_out, "OCSP\n"); BIO_puts(bio_out, "OCSP\n");
#endif #endif
@ -807,9 +816,18 @@ static void list_disabled(void)
#ifdef OPENSSL_NO_SCRYPT #ifdef OPENSSL_NO_SCRYPT
BIO_puts(bio_out, "SCRYPT\n"); BIO_puts(bio_out, "SCRYPT\n");
#endif #endif
#ifdef OPENSSL_NO_SCT
BIO_puts(bio_out, "SCT\n");
#endif
#ifdef OPENSSL_NO_SCTP
BIO_puts(bio_out, "SCTP\n");
#endif
#ifdef OPENSSL_NO_SEED #ifdef OPENSSL_NO_SEED
BIO_puts(bio_out, "SEED\n"); BIO_puts(bio_out, "SEED\n");
#endif #endif
#ifdef OPENSSL_NO_SHA
BIO_puts(bio_out, "SHA\n");
#endif
#ifdef OPENSSL_NO_SOCK #ifdef OPENSSL_NO_SOCK
BIO_puts(bio_out, "SOCK\n"); BIO_puts(bio_out, "SOCK\n");
#endif #endif