RE: [Haskell-cafe] HTTPS in Haskell

2006-08-19 Thread Pasqualino 'Titto' Assini
Hi Adam,

I believe that this is simply to detect that the WASH CGI script is being
invoked using HTTPS while running into a Web server (say Apache) that
supports it.

   titto


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:haskell-cafe-
 [EMAIL PROTECTED] On Behalf Of Adam Peacock
 Sent: 19 August 2006 02:34
 To: Haskell-Cafe@haskell.org
 Subject: Re: [Haskell-cafe] HTTPS in Haskell
 
 On 8/18/06, Pasqualino 'Titto' Assini [EMAIL PROTECTED] wrote:
 
  Is there any implementation of HTTPS/SSL in Haskell?
 
 
 
  This would seem to be critical to develop commercial web applications.
 
 WASH has a run time function ( runWithOptions ) that has type:
 
 runWithOptions :: CGIOptions - CGI () - IO ()
 
 with...
 
 type CGIOptions = [CGIOption]
 
 data CGIOption =
 
 AutoHttps -- autodetect Https by checking for port number 443 and env var
 HTTPS
 ...
 
 Taken from:
 
 http://www.informatik.uni-freiburg.de/~thiemann/WASH/doc/WASH-CGI-CGI.html
 
 Adam.
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTTPS in Haskell

2006-08-18 Thread Andrew Pimlott
On Fri, Aug 18, 2006 at 11:05:21AM +0100, Pasqualino 'Titto' Assini wrote:
 Is there any implementation of HTTPS/SSL in Haskell?

Have you seen hsgnutls?  It uses the GnuTLS C library.

http://www.cs.helsinki.fi/u/ekarttun/hsgnutls/

(Hmm, perhaps it would be easier to find if the word Haskell appeared
on that page.)

Andrew
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTTPS in Haskell

2006-08-18 Thread Tim Newsham

Have you seen hsgnutls?  It uses the GnuTLS C library.
http://www.cs.helsinki.fi/u/ekarttun/hsgnutls/


If TLS is desired its probably for security.  I would think a TLS 
implementation written in Haskell would offer much better assurances that 
the implementation was correct.  Given the complexity of TLS and history 
of past mistakes, I would feel much better having a Haskell-based TLS than 
one written in C with a thin Haskell wrapper...


(Of course I'll take the thin wrapper over no-TLS :)


Andrew


Tim Newsham
http://www.thenewsh.com/~newsham/
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] HTTPS in Haskell

2006-08-18 Thread Adam Peacock

On 8/18/06, Pasqualino 'Titto' Assini [EMAIL PROTECTED] wrote:


Is there any implementation of HTTPS/SSL in Haskell?



This would seem to be critical to develop commercial web applications.


WASH has a run time function ( runWithOptions ) that has type:

runWithOptions :: CGIOptions - CGI () - IO ()

with...

type CGIOptions = [CGIOption]

data CGIOption =

AutoHttps -- autodetect Https by checking for port number 443 and env var HTTPS
...

Taken from:

http://www.informatik.uni-freiburg.de/~thiemann/WASH/doc/WASH-CGI-CGI.html

Adam.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe