Hi,
I want do upgrade an 16-Bit Application using SSLeay 0.8.1 to OpenSSL
0.9.6. I have tried to build the 16-Bit OpenSSL Version but there are some
compilation errors.
My environment is discribed below:
System: WinNT 4.0 SP5
Compiler: VC++ 1.52
The error occurs during compilation of the file crypto\bio\bss_file.c . The
compiler can�t find any declaration or definition of the function
BIO_s_file_internal().
I looked to the include file inc16\openssl\bio.h and found following code
sequence:
# ifndef NO_FP_API
# if defined(WIN16) && defined(_WINDLL)
BIO_METHOD *BIO_s_file_internal(void);
BIO *BIO_new_file_internal(char *filename, char *mode);
BIO *BIO_new_fp_internal(FILE *stream, int close_flag);
# define BIO_s_file BIO_s_file_internal
# define BIO_new_file BIO_new_file_internal
# define BIO_new_fp BIO_new_fp_internal
# else /* FP_API */
BIO_METHOD *BIO_s_file(void );
BIO *BIO_new_file(const char *filename, const char *mode);
BIO *BIO_new_fp(FILE *stream, int close_flag);
# define BIO_s_file_internal BIO_s_file
# define BIO_new_file_internal BIO_new_file
# define BIO_new_fp_internal BIO_s_file
# endif /* FP_API */
# endif
On building a WIN16-OpenSSL Version the NO_FP_API Constant will be set.
Furthermore the above code will not be used.
The NO_FP_API is set in the File e_os.h:
#ifdef WIN16
# define NO_FP_API
# define MS_CALLBACK _far _loadds
# define MS_FAR _far
#else
# define MS_CALLBACK
# define MS_FAR
#endif
I have search the entire OpenSSL Source, but haven�t found an
implementation of these functions:
BIO_s_file_internal()
BIO_new_file_internal()
BIO_new_fp_internal()
Please can anyone help me to resolve this problem.
Furthermore, does anyone know if the OpenSSL 0.9.6 is tested as
WIN16-Version? Is the Version ready for a WIN16-Release?
(Is WIN16 supported by OpenSSL 0.9.6?)
Thanks a lot for your help
Christian Perfahl
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]