]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move tls_status_table outside of ENABLE_OPENSSL_VERSOIN_CHECK Closes #1030
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 5 Jun 2015 15:40:07 +0000 (09:40 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 5 Jun 2015 15:41:11 +0000 (09:41 -0600)
src/main/tls.c

index e6b4f603666111e4dfee92acbddf22db6057fd54..8b05d644ff1e948af0dc44e216b8d6d7e41c012d 100644 (file)
@@ -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
  */