punt if caller passed us a crypto object, we didn't find a keyed checksum type
This commit is contained in:

committed by
Love Hörnquist Åstrand

parent
2991ed7e77
commit
2e8b550e7b
@@ -466,6 +466,12 @@ verify_checksum(krb5_context context,
|
|||||||
ret = get_checksum_key(context, crypto, usage, ct, &dkey);
|
ret = get_checksum_key(context, crypto, usage, ct, &dkey);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
} else if (crypto) {
|
||||||
|
krb5_set_error_message(context, KRB5_PROG_SUMTYPE_NOSUPP,
|
||||||
|
N_("Checksum type %s is unkeyed, "
|
||||||
|
"but caller expected key checksum %s", ""),
|
||||||
|
ct->name, crypto->et->name);
|
||||||
|
return KRB5_PROG_SUMTYPE_NOSUPP; /* XXX */
|
||||||
} else
|
} else
|
||||||
dkey = NULL;
|
dkey = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user