template for engine registry; refs #11

This commit is contained in:
Marc Wäckerlin
2011-05-03 11:57:40 +00:00
parent 95efe61822
commit 1db5a9ab69
2 changed files with 13 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ class TestEngine: virtual public openssl::Engine {
int main(int, char**) {
{
openssl::RegisterEngine testEngine(new TestEngine);
openssl::RegisterEngine<> testEngine(new TestEngine);
for (ENGINE* e(ENGINE_get_first()); e; e = ENGINE_get_next(e)) {
std::cout<<"Found Engine: "<<ENGINE_get_id(e)<<std::endl;