still nothing, more log; refs #25
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user