1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/openssl/ossl_ssl.h: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-03-10 13:28:58 +00:00
parent f1b2fb6706
commit d49f0d9576
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Thu Mar 10 22:28:15 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_ssl.h: parenthesize macro arguments.
Thu Mar 10 21:59:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (parser_encode_length): add exception as UTF8-MAC for

View file

@ -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;