still nothing, more log; refs #25

master
Marc Wäckerlin 12 years ago
parent 3cb5e03609
commit 9c9749e24f
  1. 7
      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 ENGINE=Engine> 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:

Loading…
Cancel
Save