diff --git a/src/main.h b/src/main.h index 2fc83e50..6b0b0387 100644 --- a/src/main.h +++ b/src/main.h @@ -101,7 +101,7 @@ struct proc_st { uint8_t cookie[COOKIE_SIZE]; /* the cookie associated with the session */ char tls_ciphersuite[MAX_CIPHERSUITE_NAME]; - char dtls_ciphersuite[MAX_CIPHERSUITE_NAME]; + char dtls_ciphersuite[MAX_DTLS_CIPHERSUITE_NAME]; /* if the session is initiated by a cookie the following two are set * and are considered when generating an IP address. diff --git a/src/vpn.h b/src/vpn.h index 43534800..bf27d4c4 100644 --- a/src/vpn.h +++ b/src/vpn.h @@ -76,7 +76,8 @@ extern int syslog_open; #define LOG_HTTP_DEBUG 2048 -#define MAX_CIPHERSUITE_NAME 48 +#define MAX_CIPHERSUITE_NAME 64 +#define MAX_DTLS_CIPHERSUITE_NAME 16 #define MAX_MSG_SIZE 256 typedef enum {