summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2015-10-06 17:20:32 +0200
committerEmilia Kasper <emilia@openssl.org>2015-10-09 15:32:35 +0200
commit310115448188415e270bb0bef958c7c130939838 (patch)
tree4acce2a2cb0626327668858b21dc9f7811e803c5 /apps
parent0f0cfbe24c07376a67b12048686baa318db2cd95 (diff)
DTLS: remove unused cookie field
Note that this commit constifies a user callback parameter and therefore will break compilation for applications using this callback. But unless they are abusing write access to the buffer, the fix is trivial. Reviewed-by: Andy Polyakov <appro@openssl.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/s_apps.h2
-rw-r--r--apps/s_cb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/s_apps.h b/apps/s_apps.h
index c8069a0f6e..55dc9f1ffc 100644
--- a/apps/s_apps.h
+++ b/apps/s_apps.h
@@ -195,7 +195,7 @@ void tlsext_cb(SSL *s, int client_server, int type, unsigned char *data,
int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
unsigned int *cookie_len);
-int verify_cookie_callback(SSL *ssl, unsigned char *cookie,
+int verify_cookie_callback(SSL *ssl, const unsigned char *cookie,
unsigned int cookie_len);
typedef struct ssl_excert_st SSL_EXCERT;
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 643d91a160..884b5e1cf3 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -806,7 +806,7 @@ int generate_cookie_callback(SSL *ssl, unsigned char *cookie,
return 1;
}
-int verify_cookie_callback(SSL *ssl, unsigned char *cookie,
+int verify_cookie_callback(SSL *ssl, const unsigned char *cookie,
unsigned int cookie_len)
{
unsigned char *buffer, result[EVP_MAX_MD_SIZE];