Hi
Iīm using openssl 093a and have some problems when I resusing a ctx in
my serverapplication.
My server initiates one ctx when it starts and for every client
connection it creates a new ssl sesson with SSL_new(ctx).
Sometimes I get core dump in SSL_new when ssl_cert_dup is run. It stops
at realfree.
I havenīt specified any tmp_rsa_callback function, must I do that?
After a client connection is finished I run this code
SSL_set_shutdown(ssl, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
while(!SSL_shutdown(ssl));
SSL_free(ssl);
After a client has connected to the server this code is executed:
ssl = SSL_new(ctx); /* here I got problems in some cases*/
SSL_clear(ssl);
SSL_set_verify....
check servercert
SSL_set_cipher_list
SSL_accept_state(ssl);
SSL_set_fd(ssl, soc);
SSL_accept
check client cert
communicate with client
Must I do something with ctx between the client calls?
Must I set any SSL_CTX options?
I donīt use any BIO functions
I use blocking I/O
Thanks in advance
/Henrik
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]