closing ssl

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

closing ssl

Seongsu Lee

(Sorry for short English.)

I am working with OpenSSL 0.9.7 on Linux. My purpose is to
make a simple TCP server which works in SSL tunnel. (by OpenSSL)

When the transfering data is completed, I did follow function
to close SSL session. (in my server code which is C)

x4.c:287  SSL_shutdown(ssl);
x4.c:288  SSL_free(ssl);

It works but it does not works sometimes. I tried to debug
by gdb and got follow backtrace. The line which

Program received signal SIGSEGV, Segmentation fault.
0x4d2718c0 in main_arena () from /lib/
(gdb) bt
#0  0x4d2718c0 in main_arena () from /lib/
#1  0x4d57a724 in BIO_free () from /lib/
#2  0x4d57b114 in BIO_free_all () from /lib/
#3  0x4d63ff76 in SSL_free () from /lib/
#4  0x08049c6a in user_func4 () at x4.c:288
#5  0x0804a419 in user_func3 () at x3.c:216
#6  0x08049aa4 in user_func2 () at x2.c:234
#7  0x08049499 in user_func1 () at x1.c:61
#8  0x08049289 in main () at x0.c:49

1) What is the valid way to successfully close SSL session?
2) What documents should I read for this problem?
3) Any ideas?

Thank you for your help.

Seongsu Lee -   [Follow is a random fortune]
Where it is a duty to worship the sun it is pretty
sure to be a crime to examine the laws of heat. --
Christopher Morley

OpenSSL Project                       
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]