]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Move tls_conf_parse_cache_mode outside of #ifdef __APPLE__
authorNick Porter <nick@portercomputing.co.uk>
Thu, 22 Jun 2023 10:42:13 +0000 (11:42 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 22 Jun 2023 10:42:13 +0000 (11:42 +0100)
src/lib/tls/conf.c

index c8a5178fd40b0be5085be9c00b92fb1b81ccd40a..d16da1baa63a406da726fae67634508c087f78b8 100644 (file)
@@ -240,14 +240,6 @@ CONF_PARSER fr_tls_client_config[] = {
        CONF_PARSER_TERMINATOR
 };
 
-#ifdef __APPLE__
-/*
- *     We don't want to put the private key password in eap.conf, so check
- *     for our special string which indicates we should get the password
- *     programmatically.
- */
-static char const *special_string = "Apple:UsecertAdmin";
-
 static int tls_conf_parse_cache_mode(TALLOC_CTX *ctx, void *out, void *parent, CONF_ITEM *ci, CONF_PARSER const *rule)
 {
        fr_tls_conf_t   *conf = talloc_get_type_abort(parent, fr_tls_conf_t);
@@ -351,6 +343,14 @@ static int tls_conf_parse_cache_mode(TALLOC_CTX *ctx, void *out, void *parent, C
        return 0;
 }
 
+#ifdef __APPLE__
+/*
+ *     We don't want to put the private key password in eap.conf, so check
+ *     for our special string which indicates we should get the password
+ *     programmatically.
+ */
+static char const *special_string = "Apple:UsecertAdmin";
+
 /** Use cert_admin to retrieve the password for the private key
  *
  */