aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-06-12 15:24:19 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-06-12 15:24:19 +0000
commitbeacdf36fa029b32495dc9fd67874febe9da7106 (patch)
treef559f48b5d38564311cf4f0fc3b1253c729556d6
parent4756d7660c10019b755dcfe106e9e0203bf3c24b (diff)
downloadruby-openssl-history-beacdf36fa029b32495dc9fd67874febe9da7106.tar.gz
Disabled OSSL_Debug macro (TODO: Find a workaround to make it work under Windows)
-rw-r--r--ToDo3
-rw-r--r--ossl.h4
-rw-r--r--ossl_pkcs7.c4
3 files changed, 11 insertions, 0 deletions
diff --git a/ToDo b/ToDo
index a2300a2..c9d525e 100644
--- a/ToDo
+++ b/ToDo
@@ -37,6 +37,9 @@ OpenSSL::
HMAC::
* Move it to Digest module?
+ PKCS7::
+ * Support attributes ((signed_)attributes)
+
PKey::
* Factory? RSA#initialize -> PKey.new("RSA")?
diff --git a/ossl.h b/ossl.h
index 845d853..c018363 100644
--- a/ossl.h
+++ b/ossl.h
@@ -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;
}