(create_checksum): provide a error message that a key checksum needs a key.
From Andew Bartlett. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17504 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1957,6 +1957,9 @@ create_checksum (krb5_context context,
|
||||
}
|
||||
keyed_checksum = (ct->flags & F_KEYED) != 0;
|
||||
if(keyed_checksum && crypto == NULL) {
|
||||
krb5_set_error_string (context, "Checksum type %s is keyed "
|
||||
"not no crypto context (key) was passed in",
|
||||
ct->name);
|
||||
krb5_clear_error_string (context);
|
||||
return KRB5_PROG_SUMTYPE_NOSUPP; /* XXX */
|
||||
}
|
||||
|
Reference in New Issue
Block a user