diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-05 10:21:11 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-10-30 08:39:46 +0000 |
commit | 7c8b53571698f32219a912e05bc71df4017094c1 (patch) | |
tree | ee8552d78958a42b6013bb054229354d41d4cffb | |
parent | 35bf6e05371de3aebd83dc630125a108ec4a5e70 (diff) |
Don't depend on SSL structure internals
The macros SSL_in_connect_init() and SSL_in_accept_init() inadvertently
depended on SSL structure internals. This fixes it to use public API calls
instead.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r-- | include/openssl/ssl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index 8570f33653..a810da7759 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -1007,8 +1007,8 @@ typedef enum { /* Is the SSL_connection established? */ # define SSL_get_state(a) SSL_state(a) -# define SSL_in_connect_init(a) (SSL_in_init(a) && !a->server) -# define SSL_in_accept_init(a) (SSL_in_init(a) && a->server) +# 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); |