diff options
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r-- | lang/cpp/src/context.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 2892d8b4..ce38db0b 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -228,6 +228,11 @@ Context *Context::createForProtocol(Protocol proto) return new Context(ctx); } +std::unique_ptr<Context> Context::create(Protocol proto) +{ + return std::unique_ptr <Context> (createForProtocol(proto)); +} + std::unique_ptr<Context> Context::createForEngine(Engine eng, Error *error) { gpgme_ctx_t ctx = 0; |