Commit 81c65ee5 authored by Daniel Salzman's avatar Daniel Salzman

libknot/tsig: add missing tsig.name lowercasing

parent fedd6b0b
......@@ -59,6 +59,7 @@ int knot_tsig_key_init(knot_tsig_key_t *key, const char *algorithm_name,
if (!dname) {
return KNOT_ENOMEM;
}
knot_dname_to_lower(dname);
dnssec_binary_t b64secret = { 0 };
b64secret.data = (uint8_t *)secret_b64;
......
......@@ -132,7 +132,7 @@ int main(int argc, char *argv[])
.secret.size = 8,
.secret.data = (uint8_t *)"applekey"
};
test_init_str("sha384", &key, "hmac-sha384:strong.key:YXBwbGVrZXk=");
test_init_str("sha384", &key, "hmac-sha384:strong.KEY:YXBwbGVrZXk=");
}
// initialization from a file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment