Hello!!

I'm a new member, and i don't understand how ssl certificates very well.

i'm using this function to get the client certificate:

And it returns NULL!!

The s variable (SSL type), isn't NULL so i think it returns NULL when i
copy the peer session..


sorry about my english and ignorance!!

X509 *SSL_get_peer_certificate(SSL *s)
 {
 X509 *r;

 if ((s == NULL) || (s->session == NULL))
  r=NULL;
 else
  r=s->session->peer;

 if (r == NULL) return(r);

 CRYPTO_add(&r->references,1,CRYPTO_LOCK_X509);

 return(r);
 }



begin:vcard 
n:Contente;Filipe
tel;cell:918233422
tel;work:Adetti
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Filipe Contente
end:vcard

Reply via email to