Need some help about SSL_shutdown()
Hi All, I am using openssl-1.0.1c in our project.when SSL_shutdown(ssl) get executed it returns 0.If I get return value zero then calling the same SSL_shutdown(ssl) again.In 2nd time it return -1/SSL_ERROR_WANT_READ. Now I am doing SSL_read(), but it returns -1.Again I am calling SSL_shutdown(ssl) and it returns -1/SSL_ERROR_WANT_READ.How can I execute SSL_shutdown(ssl), so that it will return 1. Code snippet given below while(1) { status = SSL_shutdown(ssl); if(status == 1) { printf(ssl_shutdown() successfull); } else if(status == 0) { printf(ssl_shutdown() client successfull); } else { err = SSL_get_error(ssl, status); switch (err) { case SSL_ERROR_WANT_READ: length = SSL_read(ssl,buf,size);//returns -1 printf(ERROR: ssl SSL_ERROR_WANT_READ : %d,length); break; } if(status == 1) break; } O/p: ssl_shutdown() client successfull ERROR: ssl SSL_ERROR_WANT_READ : -1 ERROR: ssl SSL_ERROR_WANT_READ : -1 ERROR: ssl SSL_ERROR_WANT_READ : -1 . . . Please suggest me how to do ssl_shutdown(). Thanks Priyarajan
Crashing at BIO_free_all() in openssl
Hi All, I am using openssl-1.0.1c in our project as DTLS . I am trying to delete all memory of SSL, SSL_CTX and BIO. But it is crashing at BIO_free_all() in openssl's lib. 1. Is there any procedure to followup to free these memories ? 2. If I free SSL and SSL_CTX, will it free the BIO implicitly or I need to free BIO explicitly ? Thanks Priyaranjan
how to do SSL_shutdown()
Hi All, I am using openssl-1.0.1c in our project.when SSL_shutdown(ssl) get executed it returns 0.If I get return value zero then calling the same SSL_shutdown(ssl) again.In 2nd time it return -1. Can any one tell me how to shutdown ssl context ? How can I execute SSL_shutdown(ssl) , so that it will return 0 . Thanks Priyaranjan
Re: Compiling open ssl source code in Visual studio 2008
Hi Tom, After running ms\do_ms.bat,the output comes like C:\tmp_open_sslms\do_ms.bat; C:\tmp_open_sslperl util\mkfiles.pl 1MINFO C:\tmp_open_sslperl util\mk1mf.pl no-asm VC-WIN32 1ms\nt.mak C:\tmp_open_sslperl util\mk1mf.pl dll no-asm VC-WIN32 1ms\ntdll.mak C:\tmp_open_sslif x == x goto skipce C:\tmp_open_sslperl util\mkdef.pl 32 libeay 1ms\libeay32.def C:\tmp_open_sslperl util\mkdef.pl 32 ssleay 1ms\ssleay32.def When I am trying to run nmake -f ms\nt.mak ,the below error is coming C:\tmp_open_sslnmake -f ms\nt.mak; Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1052: file 'ms\nt.mak;' not found Stop. Thanks Priyaranjan On Mon, Oct 22, 2012 at 9:30 PM, Floodeenjr, Thomas thomas_floodee...@mentor.com wrote: Priyaranjan, ** ** Did you run ms\do_ms.bat in between the configure and the nmake command?** ** ** ** -Tom ** ** ** ** Thomas Floodeen, Jr. Mentor Graphics BSD 720.494.1133 ** ** *From:* owner-openssl-us...@openssl.org [mailto: owner-openssl-us...@openssl.org] *On Behalf Of *PRIYARANJAN NAYAK *Sent:* Monday, October 22, 2012 3:33 AM *To:* openssl-users@openssl.org *Subject:* Compiling open ssl source code in Visual studio 2008 ** ** Hi ALL, I am trying to compile open ssl source code in visual studio 2008.Before compiling I have installed Active Perl. I have followed below steps. 1.C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat 2.Perl Configure VC-WIN32 --prefix=C:/tmp_open_ssl These two steps working fine . But it is not executing nmake -f ms\nt.mak command , Can any one help me . Thanks Priyaranjan