From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 21 22:35:14 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E3271065670 for ; Mon, 21 Nov 2011 22:35:14 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A08558FC19 for ; Mon, 21 Nov 2011 22:35:13 +0000 (UTC) Received: by faap15 with SMTP id p15so7180376faa.13 for ; Mon, 21 Nov 2011 14:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=j27qKiK4cmG8L7CZs5aGXVQ/DqxXmvCuFqPXpngkyjA=; b=jpM3ifGtXFSfnBnWB6mqJt80P9DRA2wyw2aCpnzPyG8HgBlm+PurFA806aiMsSWHM0 IFWy+OqMT3H0EATMgySZ/Oza/IK+BDXtKrPftjd+v9vc9iZ3YV0/zrN+gnQxmDGECZ30 PSQHbSPGJD0q58ytOIkfQYXELkacf7jBd7SdY= MIME-Version: 1.0 Received: by 10.180.24.65 with SMTP id s1mr15901735wif.59.1321914912493; Mon, 21 Nov 2011 14:35:12 -0800 (PST) Received: by 10.180.95.104 with HTTP; Mon, 21 Nov 2011 14:35:12 -0800 (PST) In-Reply-To: References: Date: Mon, 21 Nov 2011 17:35:12 -0500 Message-ID: From: Ryan Stone To: aram baghomian Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: How to compile opencrypto separately X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2011 22:35:14 -0000 2011/11/21 aram baghomian : > > Hi > > I'm sorry, i forgot to register my email =A0address to your mailing list.= now i registered in it and resend > my question. > > I have some problems with opencrypto project =A0and i hope you want to he= lp me for solve them. > > - I want to compile opencrypto code without to force compile it as a subs= ystem of kernel and > with whole code of my kernel. How can i do that? > > - I trying to add my hash algorithm into opencrypto project and compile i= t for use it later with cryptodev > and IPSEC vpn. > > I use rmd160 as a sample and do this steps: > =A01- rename rmd160.c & rmd160.h to myhash.c & myhash.h . > =A02- change the name and the contents of the functions of rmd160 to myha= sh.(used standard form in the title of functions) > =A03- add my function titles and variables in xform.c & xform.h . > =A04- add my fixed value of my algorithm in the cryptodev.h . > =A05- recompile my kernel with IPSEC option and cryptodev device . > > But in the build time i get this error : > > in function 'MYHASHUpdate_int' : > xform.c:759: undefined refrence to 'MYHASHUpdate' > > what isn't enough in my steps? > what should i do? > > i'm sorry for my english. > > thanks. You need to add myhash.c to sys/conf/files (use what is done for rmd160.c as a template) and then rebuild your kernel.