[PATCH] Fix for SSL_shutdown() with non-blocking not returning -1

2006-06-22 Thread Darryl Miles
Please review this patch for inclusion in openssl-0.9.8b, maybe it also works with 0.9.7 too. This patch maybe incomplete. As in I would like someone with more knowledge than me to confirm that: * s-method-ssl_dispatch_alert(s) already sets up the WANT_WRITE situation if it returns -1

Re: [PATCH] Fix for SSL_shutdown() with non-blocking not returning -1

2006-06-22 Thread Darryl Miles
Opps I meant to add that, I need to setup WANT_WRITE condition, marked below: Darryl Miles wrote: diff -u -r -N -x '*~' openssl-0.9.8b/ssl/s3_pkt.c openssl-0.9.8b-me/ssl/s3_pkt.c --- openssl-0.9.8b/ssl/s3_pkt.c 2005-10-01 00:38:20.0 +0100 +++ openssl-0.9.8b-me/ssl/s3_pkt.c

Re: [PATCH] Fix for SSL_shutdown() with non-blocking not returning -1

2006-06-22 Thread Darryl Miles
Thinking through the possibility here is another one (I dont know how to fix), commented below. With other related issues. diff -u -r -N -x '*~' openssl-0.9.8b/ssl/s3_lib.c openssl-0.9.8b-me/ssl/s3_lib.c --- openssl-0.9.8b/ssl/s3_lib.c 2006-01-15 07:14:38.0 + +++

[PATCH] New HMAC_CTX functions

2006-06-22 Thread Darryl Miles
Please review this patch in inclusion in 0.9.8. This patch adds some new HMAC context functions, maybe the exact naming of the functions needs some debate to fall into line with the rest of libcrypto. In a way these patches are necessary to allow application user to do the following

core dump at call openssl API

2006-06-22 Thread Zhang, Long \(Roger\)
Hi, I am using openssl0.9.8a on Solaris 8. I see a core dump issue when I call openssl API. The code is got from O'Reilly openssl book example 5-8. The post_connection_check is called after TLS handshake is finished. The parameter ssl and host values are correct. It core dumps at