Thank you for answer, Andry. Seems to be I don’t need in applink.c.
From: Andy Polyakov Sent: Saturday, May 19, 2012 4:07 PM To: [email protected] Subject: Re: applink.c, OPENSSL_Applink, small C snippet > As I understand from FAQ, this small snippet is needed only if I mixing > compilers for OpenSSL compilation and compilation of my application. But > if > I use the same compiler and the same compiler options for OpenSSL > compilation and compilation of my application I don't need this one. Am I > right? Applink is engaged automatically under certain circumstances and if these circumstances are never met, then you can as well let be including it into application. What are the circumstances? Generally speaking if you pass down FILE * (by calling a function what ends with _fp or BIO_new_fp) or return value from _open (by calling BIO_new_fd). However, if OpenSSL .DLL and application are compiled with same compiler and same flags, then FILE * calls are "shortcuted" and if you don't call BIO_new_fd, then applink remains unused and *can* be omitted. Keep in mind that applink is an aid for legacy applications, it's recommended that new application code is written in such manner that won't require applink. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
