зеркало из https://github.com/github/ruby.git
* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
fd641fbf95
Коммит
675b3f337f
|
@ -1,3 +1,7 @@
|
|||
Mon Mar 14 19:54:37 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
|
||||
|
||||
Sun Mar 13 18:11:28 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
|
||||
|
|
|
@ -11,20 +11,20 @@
|
|||
#include "ossl.h"
|
||||
|
||||
#define WrapX509(klass, obj, x509) do { \
|
||||
if (!x509) { \
|
||||
if (!(x509)) { \
|
||||
ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
|
||||
} \
|
||||
obj = Data_Wrap_Struct(klass, 0, X509_free, x509); \
|
||||
(obj) = Data_Wrap_Struct((klass), 0, X509_free, (x509)); \
|
||||
} while (0)
|
||||
#define GetX509(obj, x509) do { \
|
||||
Data_Get_Struct(obj, X509, x509); \
|
||||
if (!x509) { \
|
||||
Data_Get_Struct((obj), X509, (x509)); \
|
||||
if (!(x509)) { \
|
||||
ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
|
||||
} \
|
||||
} while (0)
|
||||
#define SafeGetX509(obj, x509) do { \
|
||||
OSSL_Check_Kind(obj, cX509Cert); \
|
||||
GetX509(obj, x509); \
|
||||
OSSL_Check_Kind((obj), cX509Cert); \
|
||||
GetX509((obj), (x509)); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче