On Sat, Feb 18, 2012 at 4:50 AM, <[email protected]> wrote: > 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 >
You may have added the new function calls but did you tell the compiler that you have new .c and .h files to include? > > > 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? > > Shoould i Edit the libcrypto or libssl library to add my algorithm? > > What should I do? > > > > Thanks. -- Jas ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
