Hello,

Agree, or even:

   SSL_load_error_strings(); 

Best regards,
--
Marek Marcola <marek.marc...@malkom.pl>


owner-openssl-us...@openssl.org wrote on 02/25/2011 03:10:45 PM:

> lzyzizi <lzyz...@126.com> 
> Sent by: owner-openssl-us...@openssl.org
> 
> 02/25/2011 03:13 PM
> 
> Please respond to
> openssl-users@openssl.org
> 
> To
> 
> openssl-users@openssl.org
> 
> cc
> 
> Subject
> 
> Re:Re: How to retrieve error about private key loading.
> 
> 
> I think ERR_load_RSA_strings(void) should be called first.
> 
> At 2011-02-25 19:25:51,marek.marc...@malkom.pl wrote:
> 
> >Hello,
> >
> >Maybe you may try something like this:
> >
> >int log_err(void) 
> >{ 
> > char buf[256]; 
> > u_long err; 
> > 
> > while ((err = ERR_get_error()) != 0) { 
> >   ERR_error_string_n(err, buf, sizeof(buf)); 
> >   printf("*** %s\n", buf); 
> > } 
> >
> >Best regards,
> >--
> >Marek Marcola <marek.marc...@malkom.pl>
> >
> >
> >owner-openssl-us...@openssl.org wrote on 02/25/2011 12:06:47 PM:
> >
> >> Aro RANAIVONDRAMBOLA <razuk...@gmail.com> 
> >> Sent by: owner-openssl-us...@openssl.org
> >> 
> >> 02/25/2011 12:08 PM
> >> 
> >> Please respond to
> >> openssl-users@openssl.org
> >> 
> >> To
> >> 
> >> openssl-users@openssl.org
> >> 
> >> cc
> >> 
> >> Subject
> >> 
> >> How to retrieve error about private key loading.
> >> 
> >> Hello, 
> >> I realize that when my program calls SSL_CTX_use_certificate_file, it 

> >returns an error 
> >> because the certificate does not match the private key. I would to 
> >process this kind of 
> >> error. SSL_get_error( ) does not treat this case. I would like to 
know 
> >what is THE 
> >> function wich enable me to extract the errors type ( in my case I 
want 
> >to retrieve error
> >> like SSL_ERROR_PVKEY_DOES_NOT_MATCH_WITH_CERT )
> >> Thanks for your help.
> >> 
> >
> >______________________________________________________________________
> >OpenSSL Project                                 http://www.openssl.org
> >User Support Mailing List                    openssl-users@openssl.org
> >Automated List Manager                           majord...@openssl.org

> 

Reply via email to