hdb: Fix error messages
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:

committed by
Jeffrey Altman

parent
551f0c32fa
commit
7cb320b46a
@@ -52,7 +52,7 @@ hdb_entry_check_mandatory(krb5_context context, const hdb_entry *ent)
|
|||||||
continue;
|
continue;
|
||||||
if (ent->extensions->val[i].mandatory) {
|
if (ent->extensions->val[i].mandatory) {
|
||||||
krb5_set_error_message(context, HDB_ERR_MANDATORY_OPTION,
|
krb5_set_error_message(context, HDB_ERR_MANDATORY_OPTION,
|
||||||
"Principal have unknown "
|
"Principal has unknown "
|
||||||
"mandatory extension");
|
"mandatory extension");
|
||||||
return HDB_ERR_MANDATORY_OPTION;
|
return HDB_ERR_MANDATORY_OPTION;
|
||||||
}
|
}
|
||||||
@@ -592,7 +592,7 @@ hdb_validate_key_rotation(krb5_context context,
|
|||||||
if (new_kr->base_kvno <= last_kvno) {
|
if (new_kr->base_kvno <= last_kvno) {
|
||||||
krb5_set_error_message(context, EINVAL,
|
krb5_set_error_message(context, EINVAL,
|
||||||
"New key rotation base kvno must be larger "
|
"New key rotation base kvno must be larger "
|
||||||
"the last kvno for the current key "
|
"than the last kvno for the current key "
|
||||||
"rotation (%u)", last_kvno);
|
"rotation (%u)", last_kvno);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
@@ -751,7 +751,7 @@ hdb_entry_add_key_rotation(krb5_context context,
|
|||||||
((kr->epoch - prev_kr->epoch) / prev_kr->period))) {
|
((kr->epoch - prev_kr->epoch) / prev_kr->period))) {
|
||||||
krb5_set_error_message(context, EINVAL,
|
krb5_set_error_message(context, EINVAL,
|
||||||
"New key rotation base kvno must be larger "
|
"New key rotation base kvno must be larger "
|
||||||
"the last kvno for the current key "
|
"than the last kvno for the current key "
|
||||||
"rotation (%u)", last_kvno);
|
"rotation (%u)", last_kvno);
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user