Skip to content
Snippets Groups Projects
Commit f724ece3 authored by Matt Johnston's avatar Matt Johnston
Browse files

Increase algorithm list buffer length

--HG--
extra : convert_revision : c821fb2723909e932bb390b2eb46a9e0c6f28c30
parent aba29532
No related merge requests found
...@@ -210,7 +210,7 @@ int have_algo(char* algo, size_t algolen, algo_type algos[]) { ...@@ -210,7 +210,7 @@ int have_algo(char* algo, size_t algolen, algo_type algos[]) {
void buf_put_algolist(buffer * buf, algo_type localalgos[]) { void buf_put_algolist(buffer * buf, algo_type localalgos[]) {
unsigned int pos = 0, i, len; unsigned int pos = 0, i, len;
char str[50]; /* enough for local algo storage */ char str[MAX_ALGO_LIST_LEN];
for (i = 0; localalgos[i].name != NULL; i++) { for (i = 0; localalgos[i].name != NULL; i++) {
if (localalgos[i].usable) { if (localalgos[i].usable) {
......
...@@ -289,6 +289,9 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */ ...@@ -289,6 +289,9 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */
#define MAX_PROPOSED_ALGO 20 #define MAX_PROPOSED_ALGO 20
#define MAX_ALGO_LIST_LEN 100 /* max length of our sent algorithm list
(cipher is longest) */
/* size/count limits */ /* size/count limits */
#define MAX_LISTEN_ADDR 10 #define MAX_LISTEN_ADDR 10
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment