diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2016-03-02 14:39:14 +0100 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2016-05-16 20:43:20 +0200 |
commit | d139723b0e6718410d0f11f645387f9c90c1424d (patch) | |
tree | 658060e6320e2f4f5d834c6ee4c6fc7ce258a857 /ssl/ssl_locl.h | |
parent | 05df5c2036f1244fe3df70de7d8079a5d86b999d (diff) |
session tickets: use more sizeof
Reviewed-by: Matt Caswell <matt@openssl.org>
MR: #2153
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r-- | ssl/ssl_locl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index b39f387483..5cc1dcf391 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -686,6 +686,8 @@ DEFINE_LHASH_OF(SSL_SESSION); /* Needed in ssl_cert.c */ DEFINE_LHASH_OF(X509_NAME); +#define TLSEXT_KEYNAME_LENGTH 16 + struct ssl_ctx_st { const SSL_METHOD *method; STACK_OF(SSL_CIPHER) *cipher_list; @@ -857,7 +859,7 @@ struct ssl_ctx_st { int (*tlsext_servername_callback) (SSL *, int *, void *); void *tlsext_servername_arg; /* RFC 4507 session ticket keys */ - unsigned char tlsext_tick_key_name[16]; + unsigned char tlsext_tick_key_name[TLSEXT_KEYNAME_LENGTH]; unsigned char tlsext_tick_hmac_key[32]; unsigned char tlsext_tick_aes_key[32]; /* Callback to support customisation of ticket key setting */ |