From 980c9d0e09f5d9f5d8e30dbb205091d748d9b39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 26 Apr 2011 12:43:18 +0000 Subject: [PATCH] more debug log; refs #11 --- src/openssl.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openssl.hxx b/src/openssl.hxx index 9728786..7a6b111 100644 --- a/src/openssl.hxx +++ b/src/openssl.hxx @@ -525,20 +525,26 @@ namespace openssl { public: BigNum(): _bn(BN_new()) { + OPENSSL_LOG("log"); } BigNum(const std::string& num): _bn(BN_bin2bn((const unsigned char*)num.data(), num.size(), 0)) { + OPENSSL_LOG("log"); } ~BigNum() { + OPENSSL_LOG("log"); BN_free(_bn); } int size() const { + OPENSSL_LOG("log"); return size(_bn); } static int size(BIGNUM* n) { + OPENSSL_LOG("log"); return BN_num_bytes(n); } std::string string() const { + OPENSSL_LOG("log"); return string(_bn); } static std::string string(BIGNUM* a) {