From owner-svn-ports-head@freebsd.org Sun Sep 11 22:14:54 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1EFC0BD67CC; Sun, 11 Sep 2016 22:14:54 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 EEB2CBF5; Sun, 11 Sep 2016 22:14:53 +0000 (UTC) (envelope-from marino@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8BMErZo000371; Sun, 11 Sep 2016 22:14:53 GMT (envelope-from marino@FreeBSD.org) Received: (from marino@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8BMErN4000369; Sun, 11 Sep 2016 22:14:53 GMT (envelope-from marino@FreeBSD.org) Message-Id: <201609112214.u8BMErN4000369@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: marino set sender to marino@FreeBSD.org using -f From: John Marino Date: Sun, 11 Sep 2016 22:14:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421880 - in head/finance/openhbci: . 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.23 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: Sun, 11 Sep 2016 22:14:54 -0000 Author: marino Date: Sun Sep 11 22:14:52 2016 New Revision: 421880 URL: https://svnweb.freebsd.org/changeset/ports/421880 Log: finance/openhbci: Document SSL requirement and fix build with LibreSSL Added: head/finance/openhbci/files/patch-src_openhbci_core_deskey.cpp (contents, props changed) Modified: head/finance/openhbci/Makefile Modified: head/finance/openhbci/Makefile ============================================================================== --- head/finance/openhbci/Makefile Sun Sep 11 21:55:29 2016 (r421879) +++ head/finance/openhbci/Makefile Sun Sep 11 22:14:52 2016 (r421880) @@ -11,10 +11,12 @@ DISTNAME= openhbci-0.9.17-2 MAINTAINER= ports@FreeBSD.org COMMENT= HBCI is a bank-independent homebanking standard -USES= libtool +USES= libtool ssl GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes +CONFIGURE_ARGS+=--with-openssl-includes=${OPENSSLINC} \ + --with-openssl-libs=${OPENSSLLIB} WRKSRC= ${WRKDIR}/${PORTNAME}-0.9.17 Added: head/finance/openhbci/files/patch-src_openhbci_core_deskey.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/finance/openhbci/files/patch-src_openhbci_core_deskey.cpp Sun Sep 11 22:14:52 2016 (r421880) @@ -0,0 +1,80 @@ +--- src/openhbci/core/deskey.cpp.orig 2002-12-10 15:54:07 UTC ++++ src/openhbci/core/deskey.cpp +@@ -42,11 +42,11 @@ + namespace HBCI { + + DESKey::DESKey(string password) { +- des_cblock left, right; ++ DES_cblock left, right; + keyData = ""; + + // transform password to 2 keys +- des_string_to_2keys(password.c_str(), &left, &right); ++ DES_string_to_2keys(password.c_str(), &left, &right); + + // set the keydata + for (int i=0; i<8; i++) +@@ -64,8 +64,8 @@ DESKey::~DESKey(){ + + DESKey DESKey::createKey() { + int result = 1; +- des_cblock nativeDESKey; +- des_key_schedule key; ++ DES_cblock nativeDESKey; ++ DES_key_schedule key; + + DESKey *newKey = new DESKey(); + newKey->keyData = ""; +@@ -73,16 +73,16 @@ DESKey DESKey::createKey() { + RAND_seed(getRndData(1024), 1024); + + while (result != 0) { +- des_random_key(&nativeDESKey); +- result = des_set_key_checked(&nativeDESKey, key); ++ DES_random_key(&nativeDESKey); ++ result = DES_set_key_checked(&nativeDESKey, &key); + } + for (int i=0; i<8; i++) + newKey->keyData += nativeDESKey[i]; + + result = 1; + while (result != 0) { +- des_random_key(&nativeDESKey); +- result = des_set_key_checked(&nativeDESKey, key); ++ DES_random_key(&nativeDESKey); ++ result = DES_set_key_checked(&nativeDESKey, &key); + } + for (int i=0; i<8; i++) + newKey->keyData += nativeDESKey[i]; +@@ -116,24 +116,24 @@ bool DESKey::crypt(int enDeCrypt) { + //2-key-tripple-des + //dataToCrypt.length() % 8 has to be 0, padding/ depadding in calling method + +- des_cblock left, right; ++ DES_cblock left, right; + keyData.copy((char*) &left,8); + keyData.copy((char*) &right,8,8); + +- des_cblock initVector; +- des_key_schedule key1, key2; ++ DES_cblock initVector; ++ DES_key_schedule key1, key2; + unsigned char source[intData.length()]; + unsigned char dest[intData.length()]; + for (unsigned int i=0; i