Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Nov 2014 19:43:42 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r372033 - in head/security: . nss_compat_ossl nss_compat_ossl/files
Message-ID:  <201411011943.sA1JhgVE007303@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sat Nov  1 19:43:41 2014
New Revision: 372033
URL: https://svnweb.freebsd.org/changeset/ports/372033
QAT: https://qat.redports.org/buildarchive/r372033/

Log:
  Library providing a source-level compatibility layer to aid porting
  programs that use OpenSSL to use the NSS instead.
  
  WWW: http://rcritten.fedorapeople.org/nss_compat_ossl.html

Added:
  head/security/nss_compat_ossl/
  head/security/nss_compat_ossl/Makefile   (contents, props changed)
  head/security/nss_compat_ossl/distinfo   (contents, props changed)
  head/security/nss_compat_ossl/files/
  head/security/nss_compat_ossl/files/patch-src_ssl.c   (contents, props changed)
  head/security/nss_compat_ossl/pkg-descr   (contents, props changed)
  head/security/nss_compat_ossl/pkg-plist   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Sat Nov  1 19:42:57 2014	(r372032)
+++ head/security/Makefile	Sat Nov  1 19:43:41 2014	(r372033)
@@ -347,6 +347,7 @@
     SUBDIR += nmap
     SUBDIR += nmapsi4
     SUBDIR += nss
+    SUBDIR += nss_compat_ossl
     SUBDIR += oath-toolkit
     SUBDIR += obfsclient
     SUBDIR += obfsproxy

Added: head/security/nss_compat_ossl/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nss_compat_ossl/Makefile	Sat Nov  1 19:43:41 2014	(r372033)
@@ -0,0 +1,19 @@
+# $FreeBSD$
+PORTNAME=	nss_compat_ossl
+PORTVERSION=	0.9.6
+MASTER_SITES=	http://rcritten.fedorapeople.org/
+CATEGORIES=	security devel
+
+MAINTAINER=	bapt@FreeBSD.org
+COMMENT=	Source-level compatibility library for OpenSSL to NSS porting
+
+GNU_CONFIGURE=	yes
+USES=		pkgconfig libtool
+INSTALL_TARGET=	install-strip
+USE_LDCONFIG=	yes
+
+BUILD_DEPENDS=	${LOCALBASE}/lib/nss/libssl3.so:${PORTSDIR}/security/nss
+RUN_DEPENDS=	${LOCALBASE}/lib/nss/libssl3.so:${PORTSDIR}/security/nss
+LIB_DEPENDS=	libnspr4.so:${PORTSDIR}/devel/nspr
+
+.include <bsd.port.mk>

Added: head/security/nss_compat_ossl/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nss_compat_ossl/distinfo	Sat Nov  1 19:43:41 2014	(r372033)
@@ -0,0 +1,2 @@
+SHA256 (nss_compat_ossl-0.9.6.tar.gz) = f2528e9f4f9444503d046408f4b9bc4cf7ea3296644016fff6387a79b5e19af9
+SIZE (nss_compat_ossl-0.9.6.tar.gz) = 340628

Added: head/security/nss_compat_ossl/files/patch-src_ssl.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nss_compat_ossl/files/patch-src_ssl.c	Sat Nov  1 19:43:41 2014	(r372033)
@@ -0,0 +1,23 @@
+Index: src/ssl.c
+===================================================================
+--- src/ssl.c	(revision 76)
++++ src/ssl.c	(working copy)
+@@ -1754,12 +1754,13 @@
+     if (SSL_OptionSet(s, SSL_HANDSHAKE_AS_SERVER, server) != SECSuccess)
+         goto error;
+ 
+-    if (SSL_OptionSet(s, SSL_ENABLE_SSL2, ssl2) != SECSuccess)
+-        goto error;
++    /* Don't fail if enabling SSL2 options doesn't succeed as it may
++     * be disabled in NSS. So just ignore the return value from
++     * SSL_OptionSet().
++     */
++    SSL_OptionSet(s, SSL_ENABLE_SSL2, ssl2);
++    SSL_OptionSet(s, SSL_V2_COMPATIBLE_HELLO, ssl2);
+ 
+-    if (SSL_OptionSet(s, SSL_V2_COMPATIBLE_HELLO, ssl2) != SECSuccess)
+-        goto error;
+-
+     if (SSL_OptionSet(s, SSL_ENABLE_SSL3, ssl3)  != SECSuccess)
+         goto error;
+ 

Added: head/security/nss_compat_ossl/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nss_compat_ossl/pkg-descr	Sat Nov  1 19:43:41 2014	(r372033)
@@ -0,0 +1,4 @@
+Library providing a source-level compatibility layer to aid porting
+programs that use OpenSSL to use the NSS instead.
+
+WWW: http://rcritten.fedorapeople.org/nss_compat_ossl.html

Added: head/security/nss_compat_ossl/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nss_compat_ossl/pkg-plist	Sat Nov  1 19:43:41 2014	(r372033)
@@ -0,0 +1,5 @@
+include/nss_compat_ossl/nss_compat_ossl.h
+lib/libnss_compat_ossl.a
+lib/libnss_compat_ossl.so
+lib/libnss_compat_ossl.so.0
+lib/libnss_compat_ossl.so.0.0.0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411011943.sA1JhgVE007303>