[openssl] OpenSSL_1_1_1-stable update

Dr. Paul Dale pauli at openssl.org
Tue May 21 00:00:21 UTC 2019

The branch OpenSSL_1_1_1-stable has been updated
       via  2c5afadc8679ef9a392ada7759c5635e897e363d (commit)
      from  fa00e0daf1b19e837cf9587ccb559c8319041bba (commit)

- Log -----------------------------------------------------------------
commit 2c5afadc8679ef9a392ada7759c5635e897e363d
Author: Arne Schwabe <arne at rfc2549.org>
Date:   Fri May 17 12:35:33 2019 +0200

    Change SSL parameter SSL_session_reused const
    This function only returns a status and does not modify the parameter.
    Since similar function are already taking const parameters, also
    change this function to have a const parameter.
    Fixes #8934
    CLA: trivial
    Signed-off-by: Arne Schwabe <arne at rfc2549.org>
    Reviewed-by: Kurt Roeckx <kurt at roeckx.be>
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
    Reviewed-by: Paul Dale <paul.dale at oracle.com>
    (Merged from https://github.com/openssl/openssl/pull/8945)
    (cherry picked from commit c04b66b18d1a90f0c6326858e4b8367be5444582)


Summary of changes:
 doc/man3/SSL_session_reused.pod | 2 +-
 include/openssl/ssl.h           | 2 +-
 ssl/ssl_lib.c                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/man3/SSL_session_reused.pod b/doc/man3/SSL_session_reused.pod
index 1a3d567..defa095 100644
--- a/doc/man3/SSL_session_reused.pod
+++ b/doc/man3/SSL_session_reused.pod
@@ -8,7 +8,7 @@ SSL_session_reused - query whether a reused session was negotiated during handsh
  #include <openssl/ssl.h>
- int SSL_session_reused(SSL *ssl);
+ int SSL_session_reused(const SSL *ssl);
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h
index 48e1152..f93dc68 100644
--- a/include/openssl/ssl.h
+++ b/include/openssl/ssl.h
@@ -2139,7 +2139,7 @@ size_t SSL_CTX_get_num_tickets(const SSL_CTX *ctx);
 #  define SSL_cache_hit(s) SSL_session_reused(s)
 # endif
-__owur int SSL_session_reused(SSL *s);
+__owur int SSL_session_reused(const SSL *s);
 __owur int SSL_is_server(const SSL *s);
 __owur __owur SSL_CONF_CTX *SSL_CONF_CTX_new(void);
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index d7e1f32..f559bc1 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -4478,7 +4478,7 @@ int ssl_handshake_hash(SSL *s, unsigned char *out, size_t outlen,
     return ret;
-int SSL_session_reused(SSL *s)
+int SSL_session_reused(const SSL *s)
     return s->hit;

More information about the openssl-commits mailing list