Vincent Hanquez
8f99c325fb
separate tx/rx compression and pending compression.
...
Fix issue with compression being turn on for tx and rx at the same time,
and also at too early at the hello message instead of change cipher.
2013-07-18 07:18:38 +01:00
Vincent Hanquez
78535ff8c3
set MacState as a newtype
2013-07-13 09:11:03 +01:00
Vincent Hanquez
4f66742d8b
more too much flexibility
2013-07-13 08:37:37 +01:00
Vincent Hanquez
4e86ffee28
split record state from state.
2013-07-13 08:03:25 +01:00
Vincent Hanquez
62a1b29fbe
remove old commented code
2013-07-12 07:45:16 +01:00
Vincent Hanquez
fb8629a807
re-indent
2013-07-12 07:27:28 +01:00
Vincent Hanquez
67f01872dd
re-indent
2013-07-12 06:54:47 +01:00
Vincent Hanquez
5d69715a50
correct mismerge
2013-07-11 10:27:24 +01:00
Vincent Hanquez
df524de618
add some locks. unused for now
2013-07-11 09:06:10 +01:00
Vincent Hanquez
c132b4cb8b
first stab at separating record state from other state.
2013-07-11 09:03:33 +01:00
Vincent Hanquez
b025e616e4
re-indent record layer
2013-07-10 08:48:49 +00:00
Vincent Hanquez
6d4b167864
re-indent
2013-07-10 08:04:47 +01:00
Vincent Hanquez
290d98d95b
re-indent
2013-07-10 07:37:52 +01:00
Vincent Hanquez
02c445a102
re-indent
2013-07-10 07:20:58 +01:00
Vincent Hanquez
7269382b48
re-indent
2013-07-10 07:14:22 +01:00
Vincent Hanquez
e6d2a1d7f1
re-indent
2013-07-10 07:13:10 +01:00
Vincent Hanquez
37eb3dab6e
export the function to set the hook.
2013-07-10 07:10:01 +01:00
Vincent Hanquez
b21d4af85c
add hook for received handshake message
2013-07-09 09:13:17 +01:00
Vincent Hanquez
1d6946e12e
re-indent
2013-07-09 07:30:29 +01:00
Vincent Hanquez
3c61512c0c
re-indent
2013-07-09 07:19:16 +01:00
Vincent Hanquez
939b9c5a95
re-indent.
2013-07-09 07:15:54 +01:00
Vincent Hanquez
ec93924cab
re-indent where properly
2013-06-27 08:06:01 +01:00
Vincent Hanquez
0b170e624d
proper separation of NPN callback in server and client params.
...
need further cleanup for client/server role separation instead of
the getClientParams and getServerParams.
fix #34 .
2013-06-03 08:37:56 +01:00
Vincent Hanquez
3288ed97b4
add a better description for onCipherChoosing.
2013-06-03 08:36:54 +01:00
Vincent Hanquez
86df11a16a
Merge https://github.com/knrafto/hs-tls into x509
...
Conflicts:
core/Network/TLS/Context.hs
2013-06-03 08:12:10 +01:00
Kyle Raftogianis
347ebdaaf1
Rename nullSessionManager to noSessionManager
2013-06-01 23:52:38 -07:00
Vincent Hanquez
8468556fe8
use x509 public key and private key instead of defining our own in tls.
2013-05-30 07:21:25 +01:00
Vincent Hanquez
b1478dd618
some exporting deprecated aliases.
2013-05-26 08:02:20 +01:00
Vincent Hanquez
02b2f01515
move certificate stuff in x509 module.
2013-05-26 08:02:06 +01:00
Vincent Hanquez
59d61067b0
add X509 file.
2013-05-26 07:19:59 +01:00
Vincent Hanquez
fc9c6a407d
update for x509
2013-05-19 08:05:46 +01:00
Kyle Raftogianis
2c9fa01197
Replace existential session manager with concrete data type
2013-05-14 22:42:09 -07:00
Vincent Hanquez
83c1e247e6
add extra check for minimum size and being a blocksize multiple for block ciphers.
2013-02-09 16:57:22 +00:00
Vincent Hanquez
66cf59c054
remove BulkNoneF which only duplicate case for no reason.
2013-02-09 16:56:47 +00:00
Vincent Hanquez
339d2ca33a
reorganize the disengage decryptData function for further change.
2013-02-09 08:10:13 +00:00
Vincent Hanquez
5afd866070
add SNI extension if it has been specified in the ClientUseServerName
2013-01-27 16:09:08 +00:00
Vincent Hanquez
510dcdd752
fix encoding of ServerName extension.
2013-01-27 16:08:39 +00:00
Vincent Hanquez
8c9bff15e3
remove old definition
2013-01-04 09:01:12 +00:00
Vincent Hanquez
5a4b194848
bump version to crypto-random-api 0.2
2013-01-04 08:38:11 +00:00
Vincent Hanquez
0f0471a0d5
in a nice closing alert, we try to reply as well before closing connections
2012-12-31 15:55:22 +00:00
Vincent Hanquez
a2355f33ee
handle early termination and bad remote side more effectively.
...
mark the session has invalid and also try to
reply to the other side that we're closing the connection.
Finally a new terminated exception is raised to userspace to notify
the failure.
2012-12-31 15:49:34 +00:00
Vincent Hanquez
fd922e90d3
define a new Terminated exception
2012-12-31 15:48:04 +00:00
Vincent Hanquez
6f5804bb2d
typo
2012-12-31 14:43:15 +00:00
Vincent Hanquez
17c5de82b3
spring cleanup errors that are not used anymore
2012-12-31 14:42:41 +00:00
Vincent Hanquez
02a50fc142
reorganize the recvData function to be nicer.
2012-12-31 14:08:51 +00:00
Vincent Hanquez
7c6815b738
only send packet if we are in the client context.
2012-12-31 13:37:33 +00:00
Vincent Hanquez
ea06a793b7
add SHA1 and remove unneeded import
2012-12-31 13:37:19 +00:00
Vincent Hanquez
f80f2e5dec
re-indent
2012-12-31 13:37:03 +00:00
Vincent Hanquez
a14b37d528
use new crypto-pubkey
2012-12-30 15:31:13 +00:00
Vincent Hanquez
141e6fc491
use the {decrypt,sign}Safer alternative.
2012-12-05 08:22:47 +00:00