2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 23:55:27 +00:00

set error code if aes selected and not implemented

This commit is contained in:
Mark Andrews
2015-07-08 12:20:46 +10:00
parent 4968e1de7e
commit af63e286dd

View File

@@ -1178,13 +1178,15 @@ check_options(const cfg_obj_t *options, isc_log_t *logctx, isc_mem_t *mctx,
} }
obj = NULL; obj = NULL;
(void) cfg_map_get(options, "cookie-algorithm,", &obj); (void) cfg_map_get(options, "cookie-algorithm", &obj);
if (obj != NULL) if (obj != NULL)
ccalg = cfg_obj_asstring(obj); ccalg = cfg_obj_asstring(obj);
#if !defined(HAVE_OPENSSL_AES) && !defined(HAVE_OPENSSL_EVP_AES) #if !defined(HAVE_OPENSSL_AES) && !defined(HAVE_OPENSSL_EVP_AES)
if (strcasecmp(ccalg, "aes") == 0) if (strcasecmp(ccalg, "aes") == 0) {
cfg_obj_log(obj, logctx, ISC_LOG_ERROR, cfg_obj_log(obj, logctx, ISC_LOG_ERROR,
"cookie-algorithm: '%s' not supported", ccalg); "cookie-algorithm: '%s' not supported", ccalg);
result = ISC_R_NOTIMPLEMENTED;
}
#endif #endif
obj = NULL; obj = NULL;