Philipp Balzarek
786b8cd487
unsplit picklers
14 years ago
Jon Kristensen
581f088aee
correction of last patch: actually closed the stream following the stream errors
...
provided a single threaded counterpart for closeConnection
14 years ago
Jon Kristensen
cd9f42e58f
extended stream pickling and validation
...
pickleStream now (liberal) pickleInStream and (strict) pickleOutStream
xmppStream validates most of the stream element received and throws errors
connect catches the errors thrown by xmppStream, generates stream errors
made it possible to have the prefered language for the stream in the state
communicate the prefered stream language if it's set
extract stream language from incoming stream
exported langTag function in Types
14 years ago
Philipp Balzarek
7f4929c289
document StremErrorCondition
...
some minor documentation improvements
14 years ago
Philipp Balzarek
4e24d6f16a
do proper disconnects
14 years ago
Philipp Balzarek
2c797c8bca
remove sessionEndHandler
14 years ago
Jon Kristensen
5bca5a16b9
minor EchoClient modifications; exported simpleAuth
...
started to use simpleAuth in EchoClient
stripped password from EchoClient
14 years ago
Philipp Balzarek
684646e3db
split auth in auth (takes mechanism list) and simpleAuth (defaults to Scram and DigestMd5)
...
swap authzic and authcid parameters in DigestMd5
14 years ago
Philipp Balzarek
3091a43914
move mechanisms to Sasl/Mechanisms
...
factor out prepCredentials
14 years ago
Jon Kristensen
b37c126282
miscellaneous sasl changes
...
stopped wrapping passwd in a SaslM computation for the time-being
SaslHandler now takes password and does not take hostname
minor formatting and documentation changes
runSasl where-local
SaslElement moved to Sasl/Types.hs
14 years ago
Philipp Balzarek
697b1398be
make bind save the received JID
14 years ago
Philipp Balzarek
1d54682baa
rename JID to Jid
...
remove sUsername, aAuthzid, sResource from XmppConnection
add sJid to XmppConnection
14 years ago
Philipp Balzarek
ff4358c3a4
add stringprep to scram
...
rename DigestMD5 to DigestMd5
Don't thread credentials through xmppSasl
14 years ago
Jon Kristensen
ce14ae0fc3
some general documentation
14 years ago
Philipp Balzarek
cfb3597feb
add scram
...
add sAuthzid to XmppConnection
add sAuthzid to XmppConnection more work on sasl infrastructure
move more stuff from DigestMd5 to Common
more work on sasl infrastructure
14 years ago
Philipp Balzarek
97b08fa277
rename more occurences of DIGEST_MD5 and PLAIN to DigestMD5 and Plain respectively
14 years ago
Philipp Balzarek
d23ae0f149
replace XMPP with Xmpp everywhere to unify style
...
replace SASL with Sasl
replace DIGEST_MD5 with DigestMD5
replace PLAIN with Plain
14 years ago
Jon Kristensen
188cc252d3
Eq instance for JID, PLAIN now base64-encoded, EchoClient compiles,
...
isBare/Full functions exposed
14 years ago
Jon Kristensen
55d8d52623
prepared to extend sasl functionality, put digest-md5 code in its own
...
module
14 years ago
Jon Kristensen
ce927ddcbf
moved 'src' to 'source'
14 years ago
Philipp Balzarek
0f43a5f63c
add stanza channel
14 years ago
Philipp Balzarek
d2f793c9b6
add IQRequestTicket
14 years ago
Philipp Balzarek
5855d61e31
change Message picklers to work on Elements rather than nodes
...
update xml-types-pickle submodule
14 years ago
Jon Kristensen
aa42a263a7
minor formatting and documentation additions
14 years ago
Philipp Balzarek
632c546f10
Revert "Change message and presence payload from [Element] to [Node] for easier pickling"
...
This reverts commit afcd75475e .
14 years ago
Philipp Balzarek
afcd75475e
Change message and presence payload from [Element] to [Node] for easier pickling
14 years ago
Philipp Balzarek
ca3ad13ac3
move Network.XMPP.Message to Network.XMPP.IM.Message
...
move Network.XMPP.IM to Network.XMPP.IM.Presence
add Network.XMPP.IM
14 years ago
Philipp Balzarek
d5cdc74f23
Add connectionClosedHandler
14 years ago
Jon Kristensen
28600e915b
exported IM
14 years ago
Jon Kristensen
747c192fa8
updated Marshal.hs: fixed formatting, xpStanza where-local; im-specific
...
fields of Message and Presence removed; simpleMessage moved to Tests.hs
as to not to break it
14 years ago
Philipp Balzarek
fc63b62bab
unlifted connection handling
...
exported withConnection
14 years ago
Philipp Balzarek
b4b2610880
Renamed SaslError to AuthError
...
Renamed SASLError to SaslError
added BufferedSource
Changed sources to be buffered
reader now only reads the connection state in the beginning, doesn't need to put anything back
Updated test client
14 years ago
Philipp Balzarek
f3d1a37146
protected withConnection from asynchronous exceptions (may beed more work)
...
renamed picklers to adhere to the xpPicklername schema
added xmpp stream error data type and pickler
changed fatal errors throw exceptions rather than ErrorT errors
renamed pulls to pullSink
renamed pullE pullElement
renamed pull to pullStanza
renamed sendS to sendStanza
14 years ago
Philipp Balzarek
6c50dfb3b7
added forkSession
...
renamed forkXMPP to fork
14 years ago
Philipp Balzarek
70d9b5b47d
renamed XMPPThread to XMPP
...
renamed Thread to Session
split runThreaded in newSession and WithNewSession
14 years ago
Philipp Balzarek
f2ab31fe71
preliminary shaping of API structure, documentation
14 years ago
Philipp Balzarek
c17c62985b
lifted xmppConnect (connect), xmppStartTLS(startTLS) and xmppSASL(auth)
14 years ago
Philipp Balzarek
cca3a6d4d0
added error handling to Stream, TLS
...
switched to Strict State
switched to mtl
improved build script
14 years ago
Philipp Balzarek
e0b97dacf8
removed sConPush, session now starts without connection, added inline connection method
...
xml-types-pickle updated
14 years ago
Philipp Balzarek
dd1aeb4be1
prepare merge
14 years ago
Jon Kristensen
f4a0c41eaa
new dummy xmppt (statet-based) api, enumerator code commented and many features disabled, but pontarius with example now compiles, updated readme file, new credits file
14 years ago
Jon Kristensen
e7b661976e
name, nejla and license change updates
14 years ago
Jon Kristensen
1adf789309
moved around source code and reconfigured the eclipsefp project a bit
14 years ago
jonkri
02e4a7819e
configured the project for eclipsefp and committed it "as is"
14 years ago
Jon Kristensen
542520e4d5
initial work on the new Session module; defines a XMPPT monad that derives from Monad and MonadReader, shows what events there are, how hooks are set, and provides a convenience function for connecting
14 years ago
Jon Kristensen
1cf6a09413
implemented xml-enumerator-based elementToString functions, re-arranged the stanza types, rewrote parts of the Stream module
15 years ago
Jon Kristensen
6c98ccebf7
modified the headers to reflect the new license
15 years ago
Jon Kristensen
32394d6557
sent scram auth and implemented the hi() function of rfc 5802 ("scram")
15 years ago
Jon Kristensen
dc86a433b6
renamed openStream to openStreams and secureWithTLS to tlsSecureStreams
15 years ago
Jon Kristensen
8bf9e679a3
added two short documentation paragraps
15 years ago