Add a SSL_get_key_update_type() function
authorMatt Caswell <matt@openssl.org>
Thu, 9 Feb 2017 15:05:46 +0000 (15:05 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 17 Feb 2017 10:28:00 +0000 (10:28 +0000)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2609)

include/openssl/ssl.h
ssl/ssl_lib.c
util/libssl.num

index ba98a9f237a7a7220fdc540f6cd8efce5d10f66a..4456de19c8ca395f62a961719fbbfa76600d5a58 100644 (file)
@@ -1663,6 +1663,7 @@ __owur STACK_OF(SSL_CIPHER) *SSL_get1_supported_ciphers(SSL *s);
 
 __owur int SSL_do_handshake(SSL *s);
 int SSL_key_update(SSL *s, SSL_KEY_UPDATE updatetype);
 
 __owur int SSL_do_handshake(SSL *s);
 int SSL_key_update(SSL *s, SSL_KEY_UPDATE updatetype);
+SSL_KEY_UPDATE SSL_get_key_update_type(SSL *s);
 int SSL_renegotiate(SSL *s);
 int SSL_renegotiate_abbreviated(SSL *s);
 __owur int SSL_renegotiate_pending(SSL *s);
 int SSL_renegotiate(SSL *s);
 int SSL_renegotiate_abbreviated(SSL *s);
 __owur int SSL_renegotiate_pending(SSL *s);
index 0ca04bd96efe8e81ea778b4ee91169fa3ee6c0cb..927d70a6a6011c6928f27e883b907b0963d03aca 100644 (file)
@@ -1743,6 +1743,11 @@ int SSL_key_update(SSL *s, SSL_KEY_UPDATE updatetype)
     return 1;
 }
 
     return 1;
 }
 
+SSL_KEY_UPDATE SSL_get_key_update_type(SSL *s)
+{
+    return s->key_update;
+}
+
 int SSL_renegotiate(SSL *s)
 {
     if (SSL_IS_TLS13(s)) {
 int SSL_renegotiate(SSL *s)
 {
     if (SSL_IS_TLS13(s)) {
index d137c93e3d3e7a6705a10018c01386deb004f7c3..32b5f7654960fb7579390d96555133e3a1eb8cec 100644 (file)
@@ -414,3 +414,4 @@ SSL_CTX_set_keylog_callback             414 1_1_1   EXIST::FUNCTION:
 SSL_CTX_get_keylog_callback             415    1_1_1   EXIST::FUNCTION:
 SSL_get_peer_signature_type_nid         416    1_1_1   EXIST::FUNCTION:
 SSL_key_update                          417    1_1_1   EXIST::FUNCTION:
 SSL_CTX_get_keylog_callback             415    1_1_1   EXIST::FUNCTION:
 SSL_get_peer_signature_type_nid         416    1_1_1   EXIST::FUNCTION:
 SSL_key_update                          417    1_1_1   EXIST::FUNCTION:
+SSL_get_key_update_type                 418    1_1_1   EXIST::FUNCTION: