~singpolyma/network-protocol-xmpp

7209e1cfae64f68911e657335df8ae91f4fb6f5b — John Millikin 14 years ago 22b56df
Use new leak-safe helper functions from GSASL.
1 files changed, 2 insertions(+), 2 deletions(-)

M Network/Protocol/XMPP/SASL.hs
M Network/Protocol/XMPP/SASL.hs => Network/Protocol/XMPP/SASL.hs +2 -2
@@ 41,14 41,14 @@ authenticate stream userJID serverJID username password = do
	let authz = jidFormat userJID
	let hostname = jidFormat serverJID
	
	ctxt <- G.mkContext
	G.withContext $ \ctxt -> do
	
	suggested <- G.clientSuggestMechanism ctxt mechanisms
	mechanism <- case suggested of
		Just m -> return m
		Nothing -> error "No supported SASL mechanisms advertised"
	
	s <- G.clientStart ctxt mechanism
	G.withSession (G.clientStart ctxt mechanism) $ \s -> do
	
	G.propertySet s G.GSASL_AUTHZID authz
	G.propertySet s G.GSASL_AUTHID username