diff options
author | Todd Short <tshort@akamai.com> | 2019-07-15 09:55:13 -0400 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-07-16 13:57:38 +0100 |
commit | fe9edc9d39c96c965efc4fde12ddf7fa8a852025 (patch) | |
tree | dbd66341f560bb6acdadd4bcd3c9874d92a2458d /ssl | |
parent | c17d60ea293746d7cd06a910ced446edbb6c1eba (diff) |
Fix SSL_CTX_set_session_id_context() docs
Also, use define rather than sizeof
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9377)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/ssl_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 211a828981..c88368ed61 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -877,7 +877,7 @@ int SSL_up_ref(SSL *s) int SSL_CTX_set_session_id_context(SSL_CTX *ctx, const unsigned char *sid_ctx, unsigned int sid_ctx_len) { - if (sid_ctx_len > sizeof(ctx->sid_ctx)) { + if (sid_ctx_len > SSL_MAX_SID_CTX_LENGTH) { SSLerr(SSL_F_SSL_CTX_SET_SESSION_ID_CONTEXT, SSL_R_SSL_SESSION_ID_CONTEXT_TOO_LONG); return 0; |