Commit graph

578 commits

Author SHA1 Message Date
Felipe Lessa
3f280e2d70 Define MonadState TLSSt's state function.
For some reason that I still don't know, when using state's
default definition with libraries

         base-4.5.0.0-40b99d05fae6a4eea95ea69e6e0c9702
         bytestring-0.9.2.1-18f26186028d7c0e92e78edc9071d376
         cereal-0.3.5.1-c85af6bc266354ac7b256440db39e874
         certificate-1.2.1-c61f160cdafc328081aeb08858403878
         crypto-api-0.10.1-a0c00402b73cec065108abe95d6cfaf2
         cryptocipher-0.3.0-d1785d4907a85f72ffd670491df324f2
         cryptohash-0.7.4-f6e253339d77757de756f81f77755b35
         mtl-2.1-e90c46af21f3870cee46f6218510d29d

I get <<loop>> for anything that uses the 'modify' function
(which in turn is defined in terms of 'state').  In particular, I
get it for 'startHandshakeClient' which is used in the beginning
by all tls clients.  For example,

  $ tls-simpleclient graph.facebook.com 443
  tls-simpleclient: <<loop>>

This commit fixes this bug.

(This is a harmless commit in the sense that even if I don't know
why this bug was happenning, it doesn't hurt to have an explicit
definition of 'state' -- it may actually save a few nanoseconds
here and there.)

Conflicts:

	Network/TLS/State.hs
2012-04-20 21:07:08 +01:00
Vincent Hanquez
9dddf3660a put a high bound for cryptocipher 2012-04-20 21:06:21 +01:00
Vincent Hanquez
bf2f276c0c add some debug info 2012-04-20 21:05:46 +01:00
Vincent Hanquez
0871e47909 bump certificate version to > 1.1 2012-04-20 21:05:28 +01:00
Vincent Hanquez
ca557ad92f depend on pem 2012-04-19 21:38:48 +01:00
Vincent Hanquez
6f4837caa3 remove all examples, now available in tls-debug repo. 2012-04-19 21:35:29 +01:00
Vincent Hanquez
1898a5aa82 bump dependencies 2012-04-19 21:35:04 +01:00
Vincent Hanquez
ed8ee4adad bump version to 0.4.6 2012-04-19 20:49:27 +01:00
Vincent Hanquez
9b19e92709 librarize the readCertificate and readPrivateKey. 2012-04-19 20:49:10 +01:00
Vincent Hanquez
62a85da3e1 bump version to 0.4.5 2012-04-16 22:32:06 +01:00
Vincent Hanquez
a92890a1d6 move to new certificate module. 2012-04-16 22:31:52 +01:00
Vincent Hanquez
b223f460c8 simplify code 2012-04-16 22:30:22 +01:00
Vincent Hanquez
bc6755553b bump version to 0.4.4 2012-04-02 23:13:05 +01:00
Vincent Hanquez
154ee08b69 pre bump tls-extra version. 2012-04-02 22:59:38 +01:00
Vincent Hanquez
d81bb3c78a update for tls 1.0 2012-04-02 22:59:22 +01:00
Vincent Hanquez
dc76fa751e Merge pull request #5 from luite/master
enable certificate checking on OS X
2012-04-02 14:58:04 -07:00
Luite Stegeman
067c6e9c66 allow certificate checking on OS X 2012-04-01 21:41:08 +02:00
Vincent Hanquez
8c5640114e rename connection* accessor to context*. 2012-03-31 23:15:23 +01:00
Vincent Hanquez
15b8a568a9 expand tabs 2012-03-28 08:49:31 +01:00
Vincent Hanquez
16af8ff95f add a backend close operation. 2012-03-28 08:08:33 +01:00
Vincent Hanquez
55763d646b expand tabs in Tests 2012-03-28 08:06:13 +01:00
Vincent Hanquez
9da6b9c8c8 expand tabs. 2012-03-27 08:57:51 +01:00
Vincent Hanquez
3b4baf2f91 move encoding and decoding of NPN packet from Wire to Packet 2012-03-16 08:06:55 +00:00
Vincent Hanquez
e9a97bedb1 Merge branch 'npn' into next
Conflicts:
	Network/TLS/Core.hs
2012-03-15 08:59:04 +00:00
Vincent Hanquez
750cbdce75 remove client, server, clientWith, serverWith in favor of just
contextNew and contextNewOnHandle
2012-03-15 08:16:48 +00:00
Vincent Hanquez
00c386de3c add a role params in the params structure.
distinguish between server and client related business.
2012-03-15 08:04:16 +00:00
Vincent Hanquez
1d30a9479d rename newCtx into contextNewOnHandle
newCtxWith is now contextNew
2012-03-15 07:55:38 +00:00
Vincent Hanquez
f889defc57 more rename 2012-03-15 07:53:03 +00:00
Vincent Hanquez
da3a3e7e4b Remove TLS prefix in a few types.
Add compatibility types aliases definitions to the new names.
2012-03-14 08:56:28 +00:00
Vincent Hanquez
28c44a86dd Merge branch 'master' of git://github.com/vincenthz/hs-tls-extra 2012-03-13 08:26:12 +00:00
Vincent Hanquez
91670ea11c tweak default output to be simpler. 2012-03-13 08:12:21 +00:00
Vincent Hanquez
4b28c5735f Create a backend abstraction that facilitate moving arguments around. 2012-03-12 08:48:03 +00:00
Vincent Hanquez
f5d1553428 remove last two warnings 2012-03-12 08:47:43 +00:00
Vincent Hanquez
d7f05b77eb remove uneeded imports and 2 useless symbols 2012-03-12 08:33:26 +00:00
Vincent Hanquez
44eb0db409 remove unused imports 2012-03-12 08:29:04 +00:00
Vincent Hanquez
7e8f0d0cf9 use record pattern match syntax. 2012-03-12 07:11:21 +00:00
Vincent Hanquez
c206fa481b use pattern match record match syntax. very handy 2012-03-12 07:10:32 +00:00
Vincent Hanquez
05821fa71b pre bump version to 1.0.0 for development branch 2012-03-11 13:07:55 +00:00
Vincent Hanquez
e6d88c362a bump version to 0.9.1 2012-03-11 12:13:30 +00:00
Joey Adams
3d0071d952 Fix spelling of negotiate/negotiation in documentation 2012-03-10 16:04:44 -05:00
Joey Adams
cbfe10e9f6 Add links to the 'BufferMode' type in 'client' and 'server' 2012-03-10 15:51:46 -05:00
Joey Adams
c1ce196278 Use modifyMVar in usingState for exception safety
Also, force the state value, to avoid potential space leaks.
2012-03-10 14:55:04 -05:00
Joey Adams
23e91ae6f4 Fix space leak caused by updateMeasure
modifyIORef does not force the value, so if the Measurement object is updated a
bunch of times but never examined, the program will leak memory.
2012-03-10 11:41:01 -05:00
Vincent Hanquez
b3416be594 Merge pull request #4 from DougBurke/master
Report unsupported platform message to stderr rather than stdout
2012-02-26 12:59:33 -08:00
Doug Burke
42fd1dc562 Added cabal-dev to .gitignore 2012-02-22 16:20:45 -05:00
Doug Burke
a9126610a7 Minor doc and code clean up 2012-02-22 16:18:04 -05:00
Doug Burke
e7ba558d30 certificateVerifyChain now writes error message to stderr for unsupported systems 2012-02-22 16:09:13 -05:00
Vincent Hanquez
dbd294c522 Merge branch 'npn', remote-tracking branch 'kolmodin/npn' into npn 2012-02-20 04:54:36 +08:00
Lennart Kolmodin
5db6dac5c8 Add roundtrip test for Next Protocol Negotiation.
Adds a test where both client/server knows we're going to use NPN, and make
sure that they agree on a protocol.
2012-02-16 12:13:13 +04:00
Lennart Kolmodin
2ed8c777b6 Add client side of Next Protocol Negotiation. 2012-02-16 12:13:13 +04:00