mirror of
https://github.com/clearml/dropbear
synced 2025-02-07 13:21:15 +00:00
Turn Algo_Type's name attribute into const char *
This commit is contained in:
parent
bd6c37adb6
commit
6b90885d4f
2
algo.h
2
algo.h
@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
struct Algo_Type {
|
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 */
|
char val; /* a value for this cipher, or -1 for invalid */
|
||||||
const void *data; /* algorithm specific data */
|
const void *data; /* algorithm specific data */
|
||||||
char usable; /* whether we can use this algorithm */
|
char usable; /* whether we can use this algorithm */
|
||||||
|
@ -322,7 +322,7 @@ void buf_put_algolist(buffer * buf, algo_type localalgos[]) {
|
|||||||
buf_putbyte(algolist, ',');
|
buf_putbyte(algolist, ',');
|
||||||
donefirst = 1;
|
donefirst = 1;
|
||||||
len = strlen(localalgos[i].name);
|
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);
|
buf_putstring(buf, algolist->data, algolist->len);
|
||||||
|
Loading…
Reference in New Issue
Block a user