Re: SSL_get_certificate

2019-09-13 Thread Jeremy Harris
On 09/09/2019 16:21, Viktor Dukhovni wrote: > One of the "CHANGES" entries for 1.0.1d reads: > > *) Call OCSP Stapling callback after ciphersuite has been chosen, so > the right response is stapled. Also change SSL_get_certificate() > so it returns the

Re: SSL_get_certificate

2019-09-09 Thread Viktor Dukhovni
> On Sep 8, 2019, at 1:09 PM, Jeremy Harris wrote: > >> I have a note from 2017 in my code to the effect that >> SSL_get_certificate() is broken in that it returns the last >> cert loaded rather than the one passed out to the client >> (on the server). > >

Re: SSL_get_certificate

2019-09-08 Thread Jeremy Harris
On 29/08/2019 23:31, Jeremy Harris wrote: > I have a note from 2017 in my code to the effect that > SSL_get_certificate() is broken in that it returns the last > cert loaded rather than the one passed out to the client > (on the server). Note that one might have both an EC and an RSA

SSL_get_certificate

2019-08-29 Thread Jeremy Harris
I have a note from 2017 in my code to the effect that SSL_get_certificate() is broken in that it returns the last cert loaded rather than the one passed out to the client (on the server). Is this still the case? I can't track down any obvious fix in the OpenSSL git. I'd like to use

Re: [openssl-users] Fwd: SSL_get_certificate()

2017-11-04 Thread Viktor Dukhovni
> On Nov 4, 2017, at 8:12 PM, Jeremy Harris wrote: > >>> After SSL_accept(), call SSL_get_certificate() to see what >>> cert was presented. >> >> The negotiated certificate is only populated in the server SSL >> handle when you

Re: [openssl-users] Fwd: SSL_get_certificate()

2017-11-04 Thread Viktor Dukhovni
(). > > After SSL_accept(), call SSL_get_certificate() to see what > cert was presented. The negotiated certificate is only populated in the server SSL handle when you've registered a TLS status callback. See SSL_CTX_set_tlsext_status_cb(3) > What should I be doing differe

[openssl-users] Fwd: SSL_get_certificate()

2017-11-04 Thread Jeremy Harris
1.0.2k fips. Server, having loaded two certs (one rsa, one ecdsa) using SSL_CTX_use_certificate_chain_file(). After SSL_accept(), call SSL_get_certificate() to see what cert was presented. The actual on-the-wire does what I'm expecting - the presented server cert varies according to the s

Re: NULL ptr deref when calling SSL_get_certificate with 1.0.0k

2013-05-24 Thread serge
My product got hit by this bug too. ( it uses 0.9.8y branch). I understand the fix is in main branch, but I am curious - will 0.9.8 be patched eventually? -- View this message in context: http://openssl.6102.n7.nabble.com/NULL-ptr-deref-when-calling-SSL-get-certificate-with-1-0-0k-tp43636p45271

Re: NULL ptr deref when calling SSL_get_certificate with 1.0.0k

2013-03-05 Thread Dr. Stephen Henson
On Tue, Mar 05, 2013, Vimol Kshetrimayum wrote: > Hi Steve, > > I am also facing the same issue. > If I want to to fix this bug, should the code for SSL_get_certificate() be > restored to previous state? Is there any other place to be fixed? > Effectively yes. The

Re: NULL ptr deref when calling SSL_get_certificate with 1.0.0k

2013-03-05 Thread Vimol Kshetrimayum
Hi Steve, I am also facing the same issue. If I want to to fix this bug, should the code for SSL_get_certificate() be restored to previous state? Is there any other place to be fixed? Thanks, -Vimol On Mon, Feb 11, 2013 at 10:21 PM, Dr. Stephen Henson wrote: > On Mon, Feb 11, 2013, Bog

Re: NULL ptr deref when calling SSL_get_certificate with 1.0.0k

2013-02-11 Thread Dr. Stephen Henson
On Mon, Feb 11, 2013, Bogdan Harjoc wrote: > I updated to openssl 1.0.1k from 1.0.0d and I get a NULL pointer > dereference when I call SSL_get_certificate on a valid SSL object. > > Backtrace: > > ssl_set_cert_masks:1845 > ssl_get_server_send_pkey:2117 > ssl_g

NULL ptr deref when calling SSL_get_certificate with 1.0.0k

2013-02-11 Thread Bogdan Harjoc
I updated to openssl 1.0.1k from 1.0.0d and I get a NULL pointer dereference when I call SSL_get_certificate on a valid SSL object. Backtrace: ssl_set_cert_masks:1845 ssl_get_server_send_pkey:2117 ssl_get_server_send_cert:2175 SSL_get_certificate:2605 ssl_get_server_send_pkey calls