diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2018-05-30 09:28:03 -0500 |
---|---|---|
committer | Benjamin Kaduk <kaduk@mit.edu> | 2018-07-20 07:12:24 -0500 |
commit | 4cc968df403ed9321d0df722aba33323ae575ce0 (patch) | |
tree | c3195aa961a56ab49d19a34f5603e2e85c719367 /include | |
parent | f20aa69e33a7b418e052cf210374e2267cb93a5c (diff) |
const-ify some input SSL * arguments
These tiny functions only read from the input SSL, and we are
about to use them from functions that only have a const SSL* available,
so propagate const a bit further.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6378)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ssl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 2376828e70..155d6515e1 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1058,9 +1058,9 @@ typedef enum { /* Is the SSL_connection established? */ # define SSL_in_connect_init(a) (SSL_in_init(a) && !SSL_is_server(a)) # define SSL_in_accept_init(a) (SSL_in_init(a) && SSL_is_server(a)) -int SSL_in_init(SSL *s); -int SSL_in_before(SSL *s); -int SSL_is_init_finished(SSL *s); +int SSL_in_init(const SSL *s); +int SSL_in_before(const SSL *s); +int SSL_is_init_finished(const SSL *s); /* * The following 3 states are kept in ssl->rlayer.rstate when reads fail, you |