aboutsummaryrefslogtreecommitdiffstats
path: root/agent/protect-tool.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/protect-tool.c')
-rw-r--r--agent/protect-tool.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/protect-tool.c b/agent/protect-tool.c
index 3bba5c6ba..00c0748e1 100644
--- a/agent/protect-tool.c
+++ b/agent/protect-tool.c
@@ -316,6 +316,11 @@ read_key (const char *fname)
buf = read_file (fname, &buflen);
if (!buf)
return NULL;
+ if (buflen >= 4 && !memcmp (buf, "Key:", 4))
+ {
+ log_error ("Extended key format is not supported by this tool\n");
+ return NULL;
+ }
key = make_canonical (fname, buf, buflen);
xfree (buf);
return key;