<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I am attempting to add a new cipher into the crypto library. I have done the following so far…</div>
<div class=""><br class="">
</div>
<div class="">1. Added my code to the openssl/crypto folder</div>
<div class="">2. Created a <a href="http://build.info" class="">build.info</a> for make to compile my code (created this based off of openssl/crypto/dh’s <a href="http://build.info" class="">build.info</a>)</div>
<div class="">3. Added my cipher name to the list of ciphers to compile in Configure</div>
<div class="">4. Compiled and installed all code without errors and object files for my new cipher are created in openssl/crypto/mycipher/</div>
<div class="">5. Created a test.c file that verifies that the library is installed and working properly by generating a MD5 hash of a string</div>
<div class="">Compiled as:</div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;"></span>gcc test.c -I/usr/local/openssl/include/openssl/ -o test -lcrypto -lssl -Wall</div>
<div class="">6. I am able to properly include <openssl/mycipher.h> in my test.c file</div>
<div class=""><br class="">
</div>
<div class="">However, as soon as I make a call to my cipher in test.c I get a linker error and gcc is unable to find any of my functions.</div>
<div class=""><br class="">
</div>
<div class="">It seems that the header file I have in the openssl/include folder isn’t being linked somehow to my code in the openssl/cypto folder.</div>
<div class=""><br class="">
</div>
<div class="">I feel like I’m missing a step here…</div>
<div class=""><br class="">
</div>
<div class="">Any help is much appreciated!</div>
<div class=""><br class="">
</div>
<div class="">Rob</div>
</body>
</html>