From 98c816c3bef38cc46597f3bc155d9f0dea5f8aa4 Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Sat, 18 Feb 2012 16:23:00 +0000 Subject: [PATCH] Native Haskell TLS and SSL protocol implementation for server and client. This provides a high-level implementation of a sensitive security protocol, eliminating a common set of security issues through the use of the advanced type system, high level constructions and common Haskell features. Currently implement the SSL3.0, TLS1.0, TLS1.1 and TLS1.2 protocol, with only RSA supported for Key Exchange. WWW: http://github.com/vincenthz/hs-tls Obtained from: FreeBSD Haskell --- lang/ghc/bsd.hackage.mk | 1 + security/Makefile | 1 + security/hs-tls/Makefile | 36 ++++++++++++++++++++++++++++++++++++ security/hs-tls/distinfo | 2 ++ security/hs-tls/pkg-descr | 12 ++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 security/hs-tls/Makefile create mode 100644 security/hs-tls/distinfo create mode 100644 security/hs-tls/pkg-descr diff --git a/lang/ghc/bsd.hackage.mk b/lang/ghc/bsd.hackage.mk index a780ed52f762..7ca46d7c9291 100644 --- a/lang/ghc/bsd.hackage.mk +++ b/lang/ghc/bsd.hackage.mk @@ -230,6 +230,7 @@ test-framework-quickcheck2_port= devel/hs-test-framework-quickcheck2 testpack_port= devel/hs-testpack texmath_port= textproc/hs-texmath # executable text_port= devel/hs-text +tls_port= security/hs-tls transformers_port= devel/hs-transformers transformers-base_port= devel/hs-transformers-base TypeCompose_port= devel/hs-TypeCompose diff --git a/security/Makefile b/security/Makefile index 19d392e62502..448a2eb64e25 100644 --- a/security/Makefile +++ b/security/Makefile @@ -199,6 +199,7 @@ SUBDIR += hs-pureMD5 SUBDIR += hs-pwstore-fast SUBDIR += hs-skein + SUBDIR += hs-tls SUBDIR += httprint SUBDIR += hunch SUBDIR += hydra diff --git a/security/hs-tls/Makefile b/security/hs-tls/Makefile new file mode 100644 index 000000000000..ee75beca0820 --- /dev/null +++ b/security/hs-tls/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: hs-tls +# Date created: December 26, 2011 +# Whom: haskell@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= tls +PORTVERSION= 0.8.5 +CATEGORIES= security haskell + +MAINTAINER= haskell@FreeBSD.org +COMMENT= TLS/SSL protocol native implementation (server and client) + +LICENSE= BSD + +CABAL_SETUP= Setup.hs + +USE_CABAL= cereal>=0.3 certificate>=1.0.0 crypto-api>=0.5 \ + cryptocipher>=0.3.0 cryptohash>=0.6 mtl + +OPTIONS= EXECUTABLE "Build the executables" off + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk" +.include + +.if defined(WITH_EXECUTABLE) +CONFIGURE_ARGS+= --flags="executable" +USE_CABAL+= cmdargs cprng-aes>=0.2.3 network +EXECUTABLE+= stunnel checkciphers retrievecertificate simpleclient +.else +CONFIGURE_ARGS+= --flags="-executable" +.endif + +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" +.include diff --git a/security/hs-tls/distinfo b/security/hs-tls/distinfo new file mode 100644 index 000000000000..4ad84fb8bfaf --- /dev/null +++ b/security/hs-tls/distinfo @@ -0,0 +1,2 @@ +SHA256 (cabal/tls-0.8.5.tar.gz) = a9aa8a6410b99bf3a8dd26bfc0bbd65918394bafb3e388a96339a8e46d40bf1f +SIZE (cabal/tls-0.8.5.tar.gz) = 32079 diff --git a/security/hs-tls/pkg-descr b/security/hs-tls/pkg-descr new file mode 100644 index 000000000000..acdf7dfc3426 --- /dev/null +++ b/security/hs-tls/pkg-descr @@ -0,0 +1,12 @@ +Native Haskell TLS and SSL protocol implementation for server and +client. + +This provides a high-level implementation of a sensitive security +protocol, eliminating a common set of security issues through the use of +the advanced type system, high level constructions and common Haskell +features. + +Currently implement the SSL3.0, TLS1.0, TLS1.1 and TLS1.2 protocol, with +only RSA supported for Key Exchange. + +WWW: http://github.com/vincenthz/hs-tls