зеркало из https://github.com/github/ruby.git
* ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
ec40f71690
Коммит
f085a0b034
|
@ -1,3 +1,7 @@
|
|||
Sat Mar 12 04:12:41 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
|
||||
|
||||
Sat Mar 12 02:27:07 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
#include "ossl.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)
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче