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

* ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-03-07 15:03:18 +00:00
parent e267617f3e
commit 37e159f547
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Tue Mar 8 00:02:47 2011 Tanaka Akira <akr@fsij.org>
* ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.
Mon Mar 7 22:59:39 2011 Shota Fukumori <sorah@tubusu.net>
* lib/pstore.rb: Delete variable @transaction and fix #4474. Patch by

View file

@ -13,8 +13,8 @@
#include "ossl.h"
#define GetPKeyRSA(obj, pkey) do { \
GetPKey(obj, pkey); \
if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
GetPKey((obj), (pkey)); \
if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A RSA!") ; \
} \
} while (0)