RE: human readable certificate verify error messages?

2010-05-31 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Kyle Hamilton
> Sent: Saturday, 29 May, 2010 14:24

> Don't forget to call SSL_load_error_strings() and
> CRYPTO_load_error_strings() just after you initialize the library for
> this to work.

1. There is no CRYPTO_load_error_strings. There is 
ERR_load_crypto_strings and ERR_load_SSL_strings, 
and SSL_load_error_strings does (exactly) both of those, 
which is a good idea for *all* openssl apps. But:

2. This *particular* routine (X509_verify_cert_error_string) 
*doesn't* use the errstring mechanism and doesn't depend 
on loading. It's in x509_txt.c NOT x509_err.c. Maybe it 
should, but that's a different question.

> > On Fri, May 28, 2010 at 3:14 PM, Dave Thompson 
>  wrote:
> >>> From: owner-openssl-us...@openssl.org On Behalf Of Dallas Clement
> >>> Sent: Wednesday, 26 May, 2010 22:03
> >>
> >>> Is there a function that translates certificate verify 
> return codes?
> >>
> >> x509.h, x509/x509_txt.c
> >> const char *X509_verify_cert_error_string(long n)
> >>


__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: human readable certificate verify error messages?

2010-05-29 Thread Dallas Clement
Thanks, do I need to free these string when I shutdown the app?

On Sat, May 29, 2010 at 1:24 PM, Kyle Hamilton  wrote:
> Don't forget to call SSL_load_error_strings() and
> CRYPTO_load_error_strings() just after you initialize the library for
> this to work.
>
> -Kyle H
>
> On Fri, May 28, 2010 at 4:19 PM, Dallas Clement
>  wrote:
>> Perfect.  Thanks very much!
>>
>> On Fri, May 28, 2010 at 3:14 PM, Dave Thompson  wrote:
 From: owner-openssl-us...@openssl.org On Behalf Of Dallas Clement
 Sent: Wednesday, 26 May, 2010 22:03
>>>
 Is there a function that translates certificate verify return codes?
>>>
>>> x509.h, x509/x509_txt.c
>>> const char *X509_verify_cert_error_string(long n)
>>>
>>>
>>>
>>> __
>>> OpenSSL Project                                 http://www.openssl.org
>>> User Support Mailing List                    openssl-us...@openssl.org
>>> Automated List Manager                           majord...@openssl.org
>>>
>> __
>> OpenSSL Project                                 http://www.openssl.org
>> User Support Mailing List                    openssl-us...@openssl.org
>> Automated List Manager                           majord...@openssl.org
>>
> __
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-us...@openssl.org
> Automated List Manager                           majord...@openssl.org
>
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: human readable certificate verify error messages?

2010-05-29 Thread Kyle Hamilton
Don't forget to call SSL_load_error_strings() and
CRYPTO_load_error_strings() just after you initialize the library for
this to work.

-Kyle H

On Fri, May 28, 2010 at 4:19 PM, Dallas Clement
 wrote:
> Perfect.  Thanks very much!
>
> On Fri, May 28, 2010 at 3:14 PM, Dave Thompson  wrote:
>>> From: owner-openssl-us...@openssl.org On Behalf Of Dallas Clement
>>> Sent: Wednesday, 26 May, 2010 22:03
>>
>>> Is there a function that translates certificate verify return codes?
>>
>> x509.h, x509/x509_txt.c
>> const char *X509_verify_cert_error_string(long n)
>>
>>
>>
>> __
>> OpenSSL Project                                 http://www.openssl.org
>> User Support Mailing List                    openssl-us...@openssl.org
>> Automated List Manager                           majord...@openssl.org
>>
> __
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-us...@openssl.org
> Automated List Manager                           majord...@openssl.org
>
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: human readable certificate verify error messages?

2010-05-28 Thread Dallas Clement
Perfect.  Thanks very much!

On Fri, May 28, 2010 at 3:14 PM, Dave Thompson  wrote:
>> From: owner-openssl-us...@openssl.org On Behalf Of Dallas Clement
>> Sent: Wednesday, 26 May, 2010 22:03
>
>> Is there a function that translates certificate verify return codes?
>
> x509.h, x509/x509_txt.c
> const char *X509_verify_cert_error_string(long n)
>
>
>
> __
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-us...@openssl.org
> Automated List Manager                           majord...@openssl.org
>
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


RE: human readable certificate verify error messages?

2010-05-28 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Dallas Clement
> Sent: Wednesday, 26 May, 2010 22:03

> Is there a function that translates certificate verify return codes?

x509.h, x509/x509_txt.c 
const char *X509_verify_cert_error_string(long n)



__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org