From fd2d640e0ad955979fc381d1f59209c3ec6269f2 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 11 Jan 2014 21:54:20 +0100 Subject: [PATCH] increased sizes for ciphersuite name, and decreased maximum size for the DTLS ciphersuite (as we use openssl's short names) --- src/main.h | 2 +- src/vpn.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 {