Vincent Hanquez
|
5207a41a57
|
reflect the fact in types that the record layer record returns list of same header type.
|
2011-06-10 21:24:46 +01:00 |
|
Vincent Hanquez
|
8329187394
|
fill the server hello in the server and check the return value in the client.
|
2011-06-07 08:28:02 +01:00 |
|
Vincent Hanquez
|
96e6979ed4
|
misc change and start to trickle through the support for secure renegotiation
|
2011-06-07 08:13:43 +01:00 |
|
Vincent Hanquez
|
d3de5de4cd
|
add way to store verified data and to activate/deactivate the feature
|
2011-06-07 07:41:31 +01:00 |
|
Vincent Hanquez
|
093cd2c9fb
|
use bytes directly instead of pointlessly unpacking it for extensions and finishedData
|
2011-06-06 08:16:24 +01:00 |
|
Vincent Hanquez
|
9cd0ed0515
|
handle exception in handshake and report to the user if the handshake has been successful or not.
|
2011-05-13 08:39:15 +01:00 |
|
Vincent Hanquez
|
432639688f
|
properly handle the mvar to put the st back if an exception happens.
|
2011-05-13 07:12:54 +01:00 |
|
Vincent Hanquez
|
8434cb24e2
|
use proper protocol error in the server during clienthello
|
2011-05-13 07:08:27 +01:00 |
|
Vincent Hanquez
|
f7ed7f541a
|
throw a proper protocol error in case the version is not supported
|
2011-05-13 07:03:16 +01:00 |
|
Vincent Hanquez
|
f140e1c579
|
change onRecvCertificate callback to be able to track the reason of rejection, and returns the proper alert to the other side.
|
2011-05-13 07:02:44 +01:00 |
|
Vincent Hanquez
|
f1222ece5d
|
add placeholder code to handle alerts during recvData.
|
2011-05-12 09:13:53 +01:00 |
|
Vincent Hanquez
|
fa384d87c7
|
raise a proper HandshakeFailure if no cipher works
|
2011-05-12 09:13:53 +01:00 |
|
Vincent Hanquez
|
3b76a3ed7c
|
raise a ProtocolVersion error if version negociated is SSL2
|
2011-05-12 09:13:53 +01:00 |
|
Vincent Hanquez
|
eac638bc27
|
if we received a packet too big, raise a RecordOverflow error
|
2011-05-12 09:13:53 +01:00 |
|
Vincent Hanquez
|
f569440782
|
add throw IO ability to core
|
2011-05-12 09:13:53 +01:00 |
|
Vincent Hanquez
|
7f6f511839
|
Add a way to show packet sent and received at the protocol level. very useful for debugging.
|
2011-05-04 08:41:16 +01:00 |
|
Vincent Hanquez
|
69d3604a64
|
do not call new variable state. it's already defined by the state module.
|
2011-04-24 13:43:57 +01:00 |
|
Vincent Hanquez
|
a7aaa3eee7
|
Remove the hardcoded srandomgen in favor of any cryptorandomgen instance.
srandomgen is available separately in the cprng-aes package as Crypto.Random.AESCtr
|
2011-04-11 19:56:43 +01:00 |
|
Vincent Hanquez
|
55b7490102
|
a packet can contain multiple appdata, process it as such.
|
2011-03-23 21:48:58 +00:00 |
|
Vincent Hanquez
|
74633cd68f
|
add internal module as backdoor for hidden function/definition.
also export core sendPacket/recvPacket
|
2011-03-19 21:45:43 +00:00 |
|
Vincent Hanquez
|
da6e72ba7e
|
correct comment
|
2011-03-19 08:37:47 +00:00 |
|
Vincent Hanquez
|
5ab032b3c9
|
add more haddock related stuff
|
2011-03-02 08:43:05 +00:00 |
|
Vincent Hanquez
|
14f635cf3e
|
Fix documentation and cleanup remaining bits
|
2011-03-02 07:56:37 +00:00 |
|
Vincent Hanquez
|
a8d1e05179
|
fold remaining bit of client/server in core. cleanup
|
2011-03-02 07:41:59 +00:00 |
|
Vincent Hanquez
|
7237bec83e
|
fold handshake stuff from server to core.
|
2011-03-02 07:35:25 +00:00 |
|
Vincent Hanquez
|
73979e9db4
|
move initiate into handshake in core.
|
2011-03-01 23:09:17 +00:00 |
|
Vincent Hanquez
|
c1a20efe74
|
move sendData to core
|
2011-03-01 20:01:40 +00:00 |
|
Vincent Hanquez
|
353783abdf
|
put server/client in core
|
2011-03-01 20:01:40 +00:00 |
|
Vincent Hanquez
|
f4cc8999db
|
move 'close' api to core and rename to 'bye' to avoid a meaning conflict with unix close.
|
2011-03-01 20:01:40 +00:00 |
|
Vincent Hanquez
|
f260c5b9cf
|
modify client API to be like the server API.
|
2011-03-01 20:01:40 +00:00 |
|
Vincent Hanquez
|
5e8d2fa776
|
move server to the new split API and have the server function in a monadIO monad.
the state mvar is for now mostly useless, although completly harmeless; it will
be useful to be able to use the ctx in a threaded context.
|
2011-03-01 20:01:40 +00:00 |
|
Vincent Hanquez
|
9586b05395
|
unify clientparams and serverparams
|
2011-03-01 20:01:40 +00:00 |
|