From owner-svn-ports-head@FreeBSD.ORG Sat Nov 1 19:43:43 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 93583956; Sat, 1 Nov 2014 19:43:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7EBFDD6C; Sat, 1 Nov 2014 19:43:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sA1Jhhkw007312; Sat, 1 Nov 2014 19:43:43 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sA1JhgVE007303; Sat, 1 Nov 2014 19:43:42 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201411011943.sA1JhgVE007303@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sat, 1 Nov 2014 19:43:42 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2014 19:43:43 -0000 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 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