diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-12 15:24:19 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-06-12 15:24:19 +0000 |
commit | beacdf36fa029b32495dc9fd67874febe9da7106 (patch) | |
tree | f559f48b5d38564311cf4f0fc3b1253c729556d6 | |
parent | 4756d7660c10019b755dcfe106e9e0203bf3c24b (diff) | |
download | ruby-openssl-history-beacdf36fa029b32495dc9fd67874febe9da7106.tar.gz |
Disabled OSSL_Debug macro (TODO: Find a workaround to make it work under Windows)
-rw-r--r-- | ToDo | 3 | ||||
-rw-r--r-- | ossl.h | 4 | ||||
-rw-r--r-- | ossl_pkcs7.c | 4 |
3 files changed, 11 insertions, 0 deletions
@@ -37,6 +37,9 @@ OpenSSL:: HMAC:: * Move it to Digest module? + PKCS7:: + * Support attributes ((signed_)attributes) + PKey:: * Factory? RSA#initialize -> PKey.new("RSA")? @@ -99,6 +99,9 @@ void ossl_raise(VALUE, const char *, ...); * Debug */ extern VALUE dOSSL; +/* + * TODO, FIXME + * Bring back debug support - Microsoft C++ doesn't support this #define OSSL_Debug(fmt, ...) do { \ if (dOSSL == Qtrue) { \ fprintf(stderr, "OSSL_DEBUG: "); \ @@ -106,6 +109,7 @@ extern VALUE dOSSL; fprintf(stderr, " [in %s (%s:%d)]\n", __func__, __FILE__, __LINE__); \ } \ } while (0) + */ /* * Include all parts diff --git a/ossl_pkcs7.c b/ossl_pkcs7.c index a444156..c3758a0 100644 --- a/ossl_pkcs7.c +++ b/ossl_pkcs7.c @@ -388,7 +388,11 @@ ossl_pkcs7_data_verify(int argc, VALUE *argv, VALUE self) result = PKCS7_dataVerify(store, &ctx, bio, pkcs7, si); if (result <= 0) { +/* + * TODO, FIXME + * Bring back Debug support OSSL_Debug("result < 0! (%s)", OSSL_ErrMsg()); + */ return Qfalse; } |