RE: Fw: Question on enhancing OpenSSL logs

2012-05-21 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of marek.marc...@malkom.pl > Sent: Monday, 21 May, 2012 11:11 (-dev dropped) > This looks like declaration mismatch, you should send more info (used > compilers, environment), maybe simple test code. > owner-openssl-us...@openssl.org wrote on 05/

RE: Question about ECDSA private key

2012-05-21 Thread Dave Thompson
>From: owner-openssl-us...@openssl.org On Behalf Of Khuc, Chuong D. >Sent: Friday, 18 May, 2012 17:22 >I have an ECDSA private key in the form of a 32 byte unsigned char array, >and a data that needs to be signed using that key. So I wrote the following >code to load the key and use it to sign m

Re: Fw: Question on enhancing OpenSSL logs

2012-05-21 Thread Marek . Marcola
Hello, This looks like declaration mismatch, you should send more info (used compilers, environment), maybe simple test code. Best regards, -- Marek Marcola owner-openssl-us...@openssl.org wrote on 05/21/2012 02:52:15 PM: > grajapra...@inautix.co.in > Sent by: owner-openssl-us...@openssl.or

Fw: Question on enhancing OpenSSL logs

2012-05-21 Thread grajaprabhu
Hi Marek, Thanks for the snippet. Its working in dev. But however its failing in one of our test regions with a compilation error as below. Cannot assign extern "C" void(*)(ssl_st*,int,int) to extern "C" void(*)() at a line where we have "SSL_CTX_set_info_callback(ctx, ssl_connection_info_cb);

Re: Cert order in .pem format

2012-05-21 Thread KThirumal
Hi Pete, I tried to load the .p12 certs to the code directly, but it got failed at SSL_CTX_use_PrivateKey_file 1. err = SSL_CTX_use_certificate_chain_file(ctx, KeyFile); 2. SSL_CTX_set_default_passwd_cb(ctx, passwd); 3. err = SSL_CTX_use_PrivateKey_file(ctx, KeyFile, SSL_FILETYPE_PEM); 4. SS

Re: [openssl-users] How does openSSL handle the pathlen constraint?

2012-05-21 Thread Erwann Abalea
Bonjour, Le 21/05/2012 14:10, Serge Emantayev a écrit : Hello openSSL gurus, I faced an issue of pathlen constraint checking by openSSL when verifying the client certificate. I did few studies for how openSSL does that and I appreciate your assistance on clarifying the issue. 1. The certific

How does openSSL handle the pathlen constraint?

2012-05-21 Thread Serge Emantayev
Hello openSSL gurus, I faced an issue of pathlen constraint checking by openSSL when verifying the client certificate. I did few studies for how openSSL does that and I appreciate your assistance on clarifying the issue. 1. The certificate chain with a pathlen constraint defined in a root CA: R