diff options
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r-- | src/lib/libssl/ssl.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 05d0660c49..dda5192c10 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl.h,v 1.128 2017/05/06 20:37:25 jsing Exp $ */ | 1 | /* $OpenBSD: ssl.h,v 1.129 2017/05/07 04:22:24 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -932,12 +932,12 @@ extern "C" { | |||
932 | #define SSL_CB_HANDSHAKE_DONE 0x20 | 932 | #define SSL_CB_HANDSHAKE_DONE 0x20 |
933 | 933 | ||
934 | /* Is the SSL_connection established? */ | 934 | /* Is the SSL_connection established? */ |
935 | #define SSL_get_state(a) SSL_state(a) | 935 | #define SSL_get_state(a) (SSL_state((a))) |
936 | #define SSL_is_init_finished(a) (SSL_state(a) == SSL_ST_OK) | 936 | #define SSL_is_init_finished(a) (SSL_state((a)) == SSL_ST_OK) |
937 | #define SSL_in_init(a) (SSL_state(a)&SSL_ST_INIT) | 937 | #define SSL_in_init(a) (SSL_state((a))&SSL_ST_INIT) |
938 | #define SSL_in_before(a) (SSL_state(a)&SSL_ST_BEFORE) | 938 | #define SSL_in_before(a) (SSL_state((a))&SSL_ST_BEFORE) |
939 | #define SSL_in_connect_init(a) (SSL_state(a)&SSL_ST_CONNECT) | 939 | #define SSL_in_connect_init(a) (SSL_state((a))&SSL_ST_CONNECT) |
940 | #define SSL_in_accept_init(a) (SSL_state(a)&SSL_ST_ACCEPT) | 940 | #define SSL_in_accept_init(a) (SSL_state((a))&SSL_ST_ACCEPT) |
941 | 941 | ||
942 | /* The following 2 states are kept in ssl->rstate when reads fail, | 942 | /* The following 2 states are kept in ssl->rstate when reads fail, |
943 | * you should not need these */ | 943 | * you should not need these */ |