--- /dev/null
+[func] fdupont
+ Added the "ignore-bad-direction" workaround flag to
+ the GSS-TSIG hook library to accept DNS update responses
+ with the request signature sent by bogus servers.
+ (Gitlab #4326)
#include <config.h>
#include <gss_tsig_api.h>
+#include <gss_tsig_log.h>
+#include <gss_tsig_messages.h>
#include <cstring>
#include <limits>
#include <sstream>
(err_msg.find("wrong direction") != string::npos)
#endif
) {
+ LOG_INFO(gss_tsig_logger, GSS_TSIG_IGNORED_BAD_DIRECTION);
return;
}
setLastError(major);
extern const isc::log::MessageID BAD_CLIENT_CREDENTIALS = "BAD_CLIENT_CREDENTIALS";
extern const isc::log::MessageID GSS_TSIG_COMMAND_PROCESSED_FAILED = "GSS_TSIG_COMMAND_PROCESSED_FAILED";
+extern const isc::log::MessageID GSS_TSIG_IGNORED_BAD_DIRECTION = "GSS_TSIG_IGNORED_BAD_DIRECTION";
extern const isc::log::MessageID GSS_TSIG_LOAD_FAILED = "GSS_TSIG_LOAD_FAILED";
extern const isc::log::MessageID GSS_TSIG_LOAD_OK = "GSS_TSIG_LOAD_OK";
extern const isc::log::MessageID GSS_TSIG_MANAGER_STARTED = "GSS_TSIG_MANAGER_STARTED";
const char* values[] = {
"BAD_CLIENT_CREDENTIALS", "bad client credentials: %1",
"GSS_TSIG_COMMAND_PROCESSED_FAILED", "command_processed callout failed: %1.",
+ "GSS_TSIG_IGNORED_BAD_DIRECTION", "ignored bad direction verify failure.",
"GSS_TSIG_LOAD_FAILED", "GSS-TSIG hooks library failed to load: %1.",
"GSS_TSIG_LOAD_OK", "GSS-TSIG hooks library loaded successfully.",
"GSS_TSIG_MANAGER_STARTED", "hooks library GSS-TSIG key periodic manager started.",
extern const isc::log::MessageID BAD_CLIENT_CREDENTIALS;
extern const isc::log::MessageID GSS_TSIG_COMMAND_PROCESSED_FAILED;
+extern const isc::log::MessageID GSS_TSIG_IGNORED_BAD_DIRECTION;
extern const isc::log::MessageID GSS_TSIG_LOAD_FAILED;
extern const isc::log::MessageID GSS_TSIG_LOAD_OK;
extern const isc::log::MessageID GSS_TSIG_MANAGER_STARTED;
This error message is issued when the callout for the command_processed
callout point failed. The argument contains a reason for the error.
+% GSS_TSIG_IGNORED_BAD_DIRECTION ignored bad direction verify failure.
+This info message indicates that a verify failed because the message
+was in the wrong direction but this failure was ignored.
+
% GSS_TSIG_LOAD_FAILED GSS-TSIG hooks library failed to load: %1.
This error message indicates that an error occurred attempting to
load the GSS-TSIG hooks library. The argument details the error.