aboutsummaryrefslogtreecommitdiffstats
path: root/key2root.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--key2root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/key2root.c b/key2root.c
index 49febd2..ceb78c9 100644
--- a/key2root.c
+++ b/key2root.c
@@ -240,7 +240,7 @@ hashequal(const char *a, const char *b)
static int
checkauth(char *data, size_t whead, size_t *rheadp, size_t *rhead2p, size_t *linenop, const char *path,
- const char *keyname, size_t keyname_len, const char *key, size_t key_len, int *key_foundp)
+ const char *keyname, size_t keyname_len, char *key, size_t key_len, int *key_foundp)
{
int failed = 0, match;
char *hash, *sp;
@@ -287,7 +287,7 @@ checkauth(char *data, size_t whead, size_t *rheadp, size_t *rhead2p, size_t *lin
static int
-authenticate(const char *path, const char *keyname, const char *key, size_t key_len, int *key_foundp)
+authenticate(const char *path, const char *keyname, char *key, size_t key_len, int *key_foundp)
{
int fd;
char *data = NULL;