I try to connect to a server from an application using openssl. My steps so
far:
SSL_load_error_strings();
SSL_library_init();
// init random number generator *** could be done better
// just creating 1k of random chasracters and re-read them
// for now we just need to make it working
cwritten = RAND_write_file(Fns);
// normally we cannot re-read the same file of random bytes like that
// have to make it better
cread = RAND_load_file(Fns,long(cwritten));
rndstat = RAND_status();
// here it seems still to be happy
// use this method (v23) because it seems to accept the widest range ?
AAA_SSL_CTX = SSL_CTX_new(SSLv23_method());
// create ssl object
AAA_SSL = SSL_new(AAA_SSL_CTX);
// get current mode
SSL_init_mode = SSL_get_mode(PAYE_SSL);
// set auto retry
SSL_set_mode(PAYE_SSL, SSL_MODE_AUTO_RETRY);
// assign handle of handle (C++ Builder...->Handle)
connerr = SSL_set_fd(PAYE_SSL, NMHTTP->Handle);
// returns -1
retval = SSL_accept(PAYE_SSL);
if (retval <0)
{
retcode = SSL_get_error(PAYE_SSL, retval);
switch (retcode)
{
...
case SSL_ERROR_SYSCALL :
**** here we end then
break;
Any hints where to find more information how to approach this or even a
speficic hint ?
Thanks for any time and help.
Regards
Max
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]