Assert that if we are not dealing with keyfile we are dealing with passfile.
This commit is contained in:
parent
d4e5fe17e6
commit
2d4b50b61e
@ -380,6 +380,8 @@ eli_genkey_files(struct gctl_req *req, bool new, const char *type,
|
||||
while ((done = read(fd, buf, sizeof(buf))) > 0)
|
||||
g_eli_crypto_hmac_update(ctxp, buf, done);
|
||||
} else /* if (strcmp(type, "passfile") == 0) */ {
|
||||
assert(strcmp(type, "passfile") == 0);
|
||||
|
||||
while ((done = read(fd, buf, sizeof(buf) - 1)) > 0) {
|
||||
buf[done] = '\0';
|
||||
p = strchr(buf, '\n');
|
||||
|
Loading…
Reference in New Issue
Block a user