diff --git a/ext/openssl/ossl_dtls.c b/ext/openssl/ossl_dtls.c index f5724a52e..9ed9cdc40 100644 --- a/ext/openssl/ossl_dtls.c +++ b/ext/openssl/ossl_dtls.c @@ -46,6 +46,23 @@ static void cookie_secret_setup(void) } } +#define DTLS_COOKIE_DEBUG 1 + +#ifdef DTLS_COOKIE_DEBUG +static void print_cookie(const char *label, const unsigned char cookie[], const unsigned int cookie_len) +{ + unsigned int i; + printf("%s cookie: ", label); + for(i=0; i