while (!empty(my_config.auth.crypto_cmd_list)) {
my_val = (struct attr_val *)
dequeue(my_config.auth.crypto_cmd_list);
- crypto_config(my_val->attr, my_val->value.s);
+ #ifdef OPENSSL
+ crypto_config(my_val->attr, my_val->value.s);
+ #else
+ printf("Warning: Code not built with OpenSSL libraries!\n"
+ "Crypto commands are ignored\n");
+ msyslog(LOG_ERR, "config_auth: Crypto commands are ignored\n");
+ #endif
free(my_val->value.s);
free_node(my_val);
free(curr_var->value.s);
break;
case T_Automax:
- sys_automax = 1 << max(curr_var->value.i, 10);
+ #ifdef OPENSSL
+ sys_automax = 1 << max(curr_var->value.i, 10);
+ #else
+ printf("Warning: Automax command ignored!\n");
+ #endif
break;
}
free_node(curr_var);
struct FILE_INFO *ip_file; /* Pointer to the configuration file stream */
void yyerror (char *msg);
+
+ /* SK: The following is a terrible hack to allow the NTP code to be built
+ * without OPENSSL. The following symbols need to be defined in the
+ * here because bison will balk at the presence of a C like preprocesser
+ * directive in the rules section.
+ *
+ * There should be a better way of doing this...
+ */
+#ifndef OPENSSL
+ #define CRYPTO_CONF_NONE 0
+ #define CRYPTO_CONF_PRIV 1
+ #define CRYPTO_CONF_SIGN 2
+ #define CRYPTO_CONF_LEAP 3
+ #define CRYPTO_CONF_KEYS 4
+ #define CRYPTO_CONF_CERT 5
+ #define CRYPTO_CONF_RAND 6
+ #define CRYPTO_CONF_TRST 7
+ #define CRYPTO_CONF_IFFPAR 8
+ #define CRYPTO_CONF_GQPAR 9
+ #define CRYPTO_CONF_MVPAR 10
+ #define CRYPTO_CONF_PW 11
+ #define CRYPTO_CONF_IDENT 12
+#endif
%}
%union {