Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2011 17:35:12 -0500
From:      Ryan Stone <rysto32@gmail.com>
To:        aram baghomian <aram_baghomian@hotmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: How to compile opencrypto separately
Message-ID:  <CAFMmRNxu0MkfHS0P7ehJu3H-MQ_WbA%2B4GsAD9tES43B9VxCFnQ@mail.gmail.com>
In-Reply-To: <SNT140-W3835BCCFEA79A3081AE666E7CB0@phx.gbl>
References:  <SNT140-W4768C32C6CCB5302301581E7C50@phx.gbl> <SNT140-W2051782FEB5EEF917A5CBFE7CA0@phx.gbl> <SNT140-W33ACA8C83D5A4D597AA3C8E7CA0@phx.gbl> <SNT140-W2836316026E772DF0B4B34E7CA0@phx.gbl> <SNT140-W3835BCCFEA79A3081AE666E7CB0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/11/21 aram baghomian <aram_baghomian@hotmail.com>:
>
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFMmRNxu0MkfHS0P7ehJu3H-MQ_WbA%2B4GsAD9tES43B9VxCFnQ>