aboutsummaryrefslogtreecommitdiffstats
path: root/src/vmime/security/sasl/SASLContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmime/security/sasl/SASLContext.cpp')
-rw-r--r--src/vmime/security/sasl/SASLContext.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vmime/security/sasl/SASLContext.cpp b/src/vmime/security/sasl/SASLContext.cpp
index 3474cbeb..fc474129 100644
--- a/src/vmime/security/sasl/SASLContext.cpp
+++ b/src/vmime/security/sasl/SASLContext.cpp
@@ -62,11 +62,18 @@ SASLContext::~SASLContext()
}
+// static
+shared_ptr <SASLContext> SASLContext::create()
+{
+ return shared_ptr <SASLContext>(new SASLContext());
+}
+
+
shared_ptr <SASLSession> SASLContext::createSession
(const string& serviceName,
shared_ptr <authenticator> auth, shared_ptr <SASLMechanism> mech)
{
- return make_shared <SASLSession>
+ return SASLSession::create
(serviceName, dynamicCast <SASLContext>(shared_from_this()), auth, mech);
}