From: Arran Cudbard-Bell Date: Fri, 5 Jun 2015 15:40:07 +0000 (-0600) Subject: Move tls_status_table outside of ENABLE_OPENSSL_VERSOIN_CHECK Closes #1030 X-Git-Tag: release_3_0_9~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80b742b737cfa2b803d97badbfe3bdeebb36d0db;p=thirdparty%2Ffreeradius-server.git Move tls_status_table outside of ENABLE_OPENSSL_VERSOIN_CHECK Closes #1030 --- diff --git a/src/main/tls.c b/src/main/tls.c index e6b4f603666..8b05d644ff1 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -68,6 +68,19 @@ typedef struct libssl_defect { char const *comment; } libssl_defect_t; +/* Record critical defects in libssl here (newest first)*/ +static libssl_defect_t libssl_defects[] = +{ + { + .low = 0x010001000, /* 1.0.1 */ + .high = 0x01000106f, /* 1.0.1f */ + .id = "CVE-2014-0160", + .name = "Heartbleed", + .comment = "For more information see http://heartbleed.com" + } +}; +#endif /* ENABLE_OPENSSL_VERSION_CHECK */ + FR_NAME_NUMBER const fr_tls_status_table[] = { { "invalid", FR_TLS_INVALID }, { "request", FR_TLS_REQUEST }, @@ -87,19 +100,6 @@ FR_NAME_NUMBER const fr_tls_status_table[] = { { NULL , -1}, }; -/* Record critical defects in libssl here (newest first)*/ -static libssl_defect_t libssl_defects[] = -{ - { - .low = 0x010001000, /* 1.0.1 */ - .high = 0x01000106f, /* 1.0.1f */ - .id = "CVE-2014-0160", - .name = "Heartbleed", - .comment = "For more information see http://heartbleed.com" - } -}; -#endif - /* index we use to store cached session VPs * needs to be dynamic so we can supply a "free" function */