summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl_ssl.h')
-rw-r--r--ext/openssl/ossl_ssl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/ossl_ssl.h b/ext/openssl/ossl_ssl.h
index 92df5f5599..034762fc46 100644
--- a/ext/openssl/ossl_ssl.h
+++ b/ext/openssl/ossl_ssl.h
@@ -12,15 +12,15 @@
#define _OSSL_SSL_H_
#define GetSSLSession(obj, sess) do { \
- Data_Get_Struct(obj, SSL_SESSION, sess); \
- if (!sess) { \
+ Data_Get_Struct((obj), SSL_SESSION, (sess)); \
+ if (!(sess)) { \
ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
} \
} while (0)
#define SafeGetSSLSession(obj, sess) do { \
- OSSL_Check_Kind(obj, cSSLSession); \
- GetSSLSession(obj, sess); \
+ OSSL_Check_Kind((obj), cSSLSession); \
+ GetSSLSession((obj), (sess)); \
} while (0)
extern VALUE mSSL;