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;