On Thu, Oct 02, 2003 at 02:56:44PM -0700, Dann Daggett wrote: > In openssl-0.9.7c/demos/sign/sign.c the comments state (as does the > man page): > > /* Just load the crypto library error strings, > * SSL_load_error_strings() loads the crypto AND the SSL ones */ > /* SSL_load_error_strings();*/ > ERR_load_crypto_strings(); > > Yet if I try to load the ssl strings as well by changing to: > > SSL_load_error_strings(); > /* ERR_load_crypto_strings();*/ > > (whether or not I add the -lssl compile flag) the compiler/linker > fails with > 92: undefined reference to `SSL_load_error_strings' > > But if I change it to: > > ERR_load_SSL_strings(); > /* ERR_load_crypto_strings(); */ > > and add on the -lssl compiler flag, it compiles (and runs) ok. > > Is there a difference between SSL_load_error_strings() and > ERR_load_SSL_strings()?
For the difference: have a look into ssl/ssl_err2.c. For the comment: signing has nothing to do with the SSL layer and the comment is therefore misleading. By setting LIBS= -L../.. -lssl -lcrypto it should work anyway. (Hmm, why is ssl.h included for the sign example???) Best regards, Lutz -- Lutz Jaenicke [EMAIL PROTECTED] http://www.aet.TU-Cottbus.DE/personen/jaenicke/ BTU Cottbus, Allgemeine Elektrotechnik Universitaetsplatz 3-4, D-03044 Cottbus ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]