From owner-freebsd-questions@FreeBSD.ORG Sat Feb 18 12:15:48 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C6D8106566C for ; Sat, 18 Feb 2012 12:15:48 +0000 (UTC) (envelope-from aram_baghomian@hushmail.com) Received: from smtp10.hushmail.com (smtp10.hushmail.com [65.39.178.143]) by mx1.freebsd.org (Postfix) with ESMTP id 56D928FC0C for ; Sat, 18 Feb 2012 12:15:48 +0000 (UTC) Received: from smtp10.hushmail.com (localhost.localdomain [127.0.0.1]) by smtp10.hushmail.com (Postfix) with SMTP id A87A4BF341 for ; Sat, 18 Feb 2012 11:44:16 +0000 (UTC) Received: from smtp.hushmail.com (w8.hushmail.com [65.39.178.52]) by smtp10.hushmail.com (Postfix) with ESMTP for ; Sat, 18 Feb 2012 11:44:15 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 5FE2414DBD8; Sat, 18 Feb 2012 11:44:14 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 18 Feb 2012 15:44:14 +0400 To: freebsd-questions@freebsd.org From: aram_baghomian@hushmail.com Message-Id: <20120218114414.5FE2414DBD8@smtp.hushmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: add new encryption algorithm to racoon X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2012 12:15:48 -0000 Hi, I developed an encryption algorithm for freeBsd crypto module. I want to add this algorithm to racoon ipsec-tools for freebsd that it can recognize it In it's config file and use it for encryption connections. I use the 'des' algorithm as a sample and create C files and headers same as it in all part Of racoon source code. In compile time it make this this error: ------------------------------------------------------------------ … /bin/sh /usr/local/bin/libtool --tag=CC --mode=link cc -D_GNU_SOURCE -DSYSCONFDIR="/usr/local/etc/racoon" -DADMINPORTDIR="/var/db/racoon" -pipe -g -Wall -Werror -Wno-unused -lcrypto -rpath=/usr/lib:/usr/local/lib -o eaytest eaytest.o plog.o logger.o crypto_openssl_test.o vmbuf.o str2val.o misc_noplog.o -lradius -lutil -lcrypto -lreadline -lcrypt -lcrypt -L/lib -R/lib -lradius libtool: link: cc -D_GNU_SOURCE -DSYSCONFDIR="/usr/local/etc/racoon" -DADMINPORTDIR="/var/db/racoon" -pipe -g -Wall -Werror -Wno-unused -rpath=/usr/lib:/usr/local/lib -o eaytest eaytest.o plog.o logger.o crypto_openssl_test.o vmbuf.o str2val.o misc_noplog.o -lutil -lcrypto -lreadline -lcrypt -L/lib -lradius -Wl,-rpath -Wl,/lib crypto_openssl_test.o(.text+0x2620): In function `eay_sa3_weakkey': ./crypto_openssl.c:1314: undefined reference to `SA3_is_weak_key' crypto_openssl_test.o(.text+0x2637): In function `eay_sa3_keylen': ./crypto_openssl.c:1322: undefined reference to `EVP_sa3_cbc' *** Error code 1 Stop in /usr/ports/security/ipsec-tools/work/ipsec-tools-0.7.3/src/racoon. *** Error code 1 … ---------------------------------------------------------------- I edit /usr/include/evp.h and add the name of functions but it not work. Should i edit the /usr/src/crypto/openssl directory's content to add my algorithm? Should i Edit the libcrypto or libssl library to add my algorithm? What should I do? Thanks.