I am trying to statically link into libeay32.lib so that I can
distribute my application as a single executable instead of packaging
DLLs along with it.  I am not new to programming, but I am new to
using libraries in C/C++.  I am also completely new to using OpenSSL
in any application.

I did some extensive research online (and in this group) to get to
where I could actually compile OpenSSL on Win32 and link using Visual
C++ Express 9.0, but when I run the application that compiles I get an
error that libeay32.dll cannot be found.  Thanks for any help or
advice.

#include <iostream>
#include <string>
#include <openssl/blowfish.h>
using namespace std;


int main(int argc, char *argv[]) {
    string skey = "secret_key";
    char *sdata = "This is a message that I would like to keep secret.
 Please do not allow this message to be read without authorization.";

    BF_KEY symKey;
    BF_set_key( &symKey, strlen(sdata), (const unsigned char *)sdata );

    cout << symKey.S;

    return 0;
}

--
Jed Mitten
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to