diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-04-07 16:34:43 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-04-07 16:34:43 +0000 |
commit | bc603852659675cd0c7420dd4d126780f7ba6ee2 (patch) | |
tree | b3d68ace93981e8f961f8b2a3451df3d53eac993 /ossl_pkey_dh.c | |
parent | fcb0234e46e8fc656748f364148754a1cc80ea4b (diff) | |
download | ruby-openssl-history-bc603852659675cd0c7420dd4d126780f7ba6ee2.tar.gz |
* Macros fixupsossl1-ossl2-branch-point
* X509ExtFactory cleanup
* fixed strptime warning on Linux
* X509::Certificate#version has been changed!
!!! WARNING !!!
x509.version = 2 -> defines X509v3, (0 for v1, 1 for v2, ...)
p x509.version -> 2, means that it is X509v3
!!! WARNING !!!
Diffstat (limited to 'ossl_pkey_dh.c')
-rw-r--r-- | ossl_pkey_dh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ossl_pkey_dh.c b/ossl_pkey_dh.c index 9c19ec5..82d2920 100644 --- a/ossl_pkey_dh.c +++ b/ossl_pkey_dh.c @@ -13,15 +13,15 @@ #include "ossl.h" #include "ossl_pkey.h" -#define MakeDH(obj, dhp) {\ +#define MakeDH(obj, dhp) do {\ obj = Data_Make_Struct(cDH, ossl_dh, 0, ossl_dh_free, dhp);\ dhp->pkey.get_EVP_PKEY = ossl_dh_get_EVP_PKEY;\ -} +} while (0) -#define GetDH(obj, dhp) {\ +#define GetDH(obj, dhp) do {\ Data_Get_Struct(obj, ossl_dh, dhp);\ if (!dhp->dh) rb_raise(eDHError, "not initialized!");\ -} +} while (0) #define DH_PRIVATE(dh) ((dh)->priv_key) |