Commit e958b0d9 authored by Karel Slaný's avatar Karel Slaný Committed by Jan Včelák

libdnssec, fixed dnssec_sign_verify()

parent c38867e6
......@@ -445,7 +445,7 @@ int dnssec_sign_verify(dnssec_sign_ctx_t *ctx, const dnssec_binary_t *signature)
return DNSSEC_EINVAL;
}
if (!dnssec_key_can_sign(ctx->key)) {
if (!dnssec_key_can_verify(ctx->key)) {
return DNSSEC_NO_PUBLIC_KEY;
}
......
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