diff options
author | Ga?l PORTAY <gael.portay@gmail.com> | 2015-05-02 22:37:08 +0200 |
---|---|---|
committer | Ga?l PORTAY <gael.portay@gmail.com> | 2015-05-02 22:37:08 +0200 |
commit | 42e76d1a8b6740e90b3efa763fab32e87324a6a0 (patch) | |
tree | 8e85d0dd51ef8b981fd2ded8bcbc2ba292959e98 | |
parent | 4a3a535eee8eeb99cf3100b7e3f0d04c9c5a6acf (diff) | |
download | dropbear-42e76d1a8b6740e90b3efa763fab32e87324a6a0.tar.gz |
Turn Algo_Type's name attribute into const char *
-rw-r--r-- | algo.h | 2 | ||||
-rw-r--r-- | common-algo.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -35,7 +35,7 @@ struct Algo_Type { - const unsigned char *name; /* identifying name */ + const char *name; /* identifying name */ char val; /* a value for this cipher, or -1 for invalid */ const void *data; /* algorithm specific data */ char usable; /* whether we can use this algorithm */ diff --git a/common-algo.c b/common-algo.c index 0886a2b..76d3977 100644 --- a/common-algo.c +++ b/common-algo.c @@ -322,7 +322,7 @@ void buf_put_algolist(buffer * buf, algo_type localalgos[]) { buf_putbyte(algolist, ','); donefirst = 1; len = strlen(localalgos[i].name); - buf_putbytes(algolist, localalgos[i].name, len); + buf_putbytes(algolist, (const unsigned char *) localalgos[i].name, len); } } buf_putstring(buf, algolist->data, algolist->len); |