num_keys++;
cleanup:
- if (result == DST_R_NOCRYPTO) {
- cfg_obj_log(key, ISC_LOG_ERROR, "no crypto support");
- } else if (result == DST_R_UNSUPPORTEDALG) {
+ if (result == DST_R_UNSUPPORTEDALG) {
cfg_obj_log(key, ISC_LOG_WARNING,
"skipping trusted key '%s': %s", keynamestr,
isc_result_totext(result));
}
cleanup:
- if (result == DST_R_NOCRYPTO) {
- result = ISC_R_SUCCESS;
- }
return result;
}
initializing ? "initial-key" : "static-key",
namestr, isc_result_totext(result));
return ISC_R_SUCCESS;
- case DST_R_NOCRYPTO:
- /*
- * Crypto support is not available.
- */
- cfg_obj_log(key, ISC_LOG_ERROR,
- "ignoring %s for '%s': no crypto support",
- initializing ? "initial-key" : "static-key",
- namestr);
- return result;
default:
/*
* Something unexpected happened; we have no choice but to
if (secroots != NULL) {
dns_keytable_detach(&secroots);
}
- if (result == DST_R_NOCRYPTO) {
- result = ISC_R_SUCCESS;
- }
return result;
}