aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}