diff options
author | Mattias Andrée <maandree@kth.se> | 2023-06-23 15:28:47 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-06-23 15:34:23 +0200 |
commit | 0acfaa28b34566e6e4e3c6291c57ac8ca1b70b4f (patch) | |
tree | 4bf96357e17585b55adbfbed8f37d6be43f8cc8f /key2root-addkey.c | |
parent | Fix support for NUL bytes in the keyfile (diff) | |
download | key2root-0acfaa28b34566e6e4e3c6291c57ac8ca1b70b4f.tar.gz key2root-0acfaa28b34566e6e4e3c6291c57ac8ca1b70b4f.tar.bz2 key2root-0acfaa28b34566e6e4e3c6291c57ac8ca1b70b4f.tar.xz |
Implement authentication
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | key2root-addkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/key2root-addkey.c b/key2root-addkey.c index 5b3f1ee..78435f3 100644 --- a/key2root-addkey.c +++ b/key2root-addkey.c @@ -231,7 +231,7 @@ main(int argc, char *argv[]) } for (i = 0; i < key_len; i++) if (!key[i]) - key[i] = 255; + key[i] = (char)255; key[key_len] = '\0'; hash = crypt(key, parameters); if (!hash) |