From 9c9749e24ff69ffd07c5efd9450e9c6588b9f63b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 2 Apr 2013 12:54:17 +0000 Subject: [PATCH] still nothing, more log; refs #25 --- src/openssl-engine.hxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/openssl-engine.hxx b/src/openssl-engine.hxx index c96a7ee..5b40e0c 100644 --- a/src/openssl-engine.hxx +++ b/src/openssl-engine.hxx @@ -172,6 +172,7 @@ namespace openssl { } static void remove(Engine *e) { + OPENSSL_LOG("log"); OPENSSL_CHECK(ENGINE_remove(e->_e)); OPENSSL_CHECK(ENGINE_finish(e->_e)); _map.erase(e->_e); @@ -288,24 +289,30 @@ namespace openssl { template class RegisterEngine { public: RegisterEngine(ENGINE* e = 0): _e(e) { + OPENSSL_LOG("log"); if (_e) EngineMapper::add(_e); } ~RegisterEngine() { + OPENSSL_LOG("log"); if (_e) EngineMapper::remove(_e); } RegisterEngine& operator=(ENGINE* e) { + OPENSSL_LOG("log"); if (_e) EngineMapper::remove(_e); _e = e; if (_e) EngineMapper::add(_e); return *this; } operator ENGINE*() { + OPENSSL_LOG("log"); return _e; } ENGINE* operator->() { + OPENSSL_LOG("log"); return _e; } ENGINE& operator*() { + OPENSSL_LOG("log"); return *_e; } private: