Commit e10278ef authored by Geoff Simmons's avatar Geoff Simmons

Emit a better error message when the id in the key header is too long.

parent 3c47fcb5
......@@ -792,8 +792,8 @@ vfp_encrypt_init(struct vfp_ctx *ctx, struct vfp_entry *ent)
DEFAULT_KEY_HDR + 1));
keyid_len = strlen(keyid);
if (keyid_len > MAX_ID_LEN)
return (VERR_ENC(ctx, "key id %s too long (%zd > 255)", keyid,
keyid_len));
return (VERR_ENC(ctx, "key id \"%.80s...\" too long "
"(length %zd > 255)", keyid, keyid_len));
if (common_alloc(ctx, &ece, 1) == VFP_ERROR)
return (VFP_ERROR);
......
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