Fwd: Query Regarding usage of SSL_Connect()

2011-07-16 Thread Sushil Singh
Hi Amit I believe you are using non-blocking call. This kind of error will come in the situatation when the SSL is still waiting for data to be available to be read. Before that it can't start processing the data. Pls send me the code snippets where it is failing. I can try to help you in this. If

Re: Please help: OpenSSL + OpenVPN Elliptic Curves (SHA512, ECDSA, ECDH, Linux, Debian)

2011-07-16 Thread yyyy
sha256 worked. (both for dgst and for req) If i understand correctly, ECDSA algorithm only needs hash as a defined length bitstring, so adapting ripemd in place of sha1 should have been easier than sha256 (because ripemd has the same length as sha1, sha256 is longer). Citējot *Dr. Stephen

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread brandonshw
Thanks. This is some very useful information and more than I knew. When I get back to work on Monday, or possibly before if I go in for a few minutes, I will send the full g++ command I am using as well as the error messages.. -Original Message- From: Michael S. Zick To: openssl

Re: Please help: OpenSSL + OpenVPN Elliptic Curves (SHA512, ECDSA, ECDH, Linux, Debian)

2011-07-16 Thread Dr. Stephen Henson
On Sat, Jul 16, 2011, y...@inbox.lv wrote: > > openssl dgst -ripemd160 -sign ec5_ca.key shr.o.txt > WARNING: can't open config file: /usr/local/ssl/openssl.cnf > Error setting context > 5664:error:100C508A:elliptic curve routines:PKEY_EC_CTRL:invalid > digest type:.c > ryptoecec_pmeth.c:229

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread Michael S. Zick
On Sat July 16 2011, brandon...@aol.com wrote: > I am already linking in -lldap. Will -lopenldap work better? > It is hard to say without seeing your full command input and the output of where the linker is looking for libraries and in what order. __order matters__ > > link to OpenSSL first, a

Re: Please help: OpenSSL + OpenVPN Elliptic Curves (SHA512, ECDSA, ECDH, Linux, Debian)

2011-07-16 Thread Gaglia
On 07/16/2011 06:50 AM, y...@inbox.lv wrote: > openssl dgst -ripemd160 -sign ec5_ca.key shr.o.txt > WARNING: can't open config file: /usr/local/ssl/openssl.cnf > Error setting context My premise is that we are considering only OpenSSL v 1.0.0. Under this condition, as I wrote in the first post,

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread brandonshw
I am already linking in -lldap. Will -lopenldap work better? -Original Message- From: Jeffrey Walton To: openssl-users Sent: Sat, Jul 16, 2011 3:06 am Subject: Re: Trying to Link Statically to Libcrypto On Sat, Jul 16, 2011 at 2:39 AM, wrote: Hi. I am writing some C++ on Linu

Re: Trying to Link Statically to Libcrypto

2011-07-16 Thread Jeffrey Walton
On Sat, Jul 16, 2011 at 2:39 AM, wrote: > Hi. > > I am writing some C++ on Linux with g++. When I try to link statically to > libcrypto, by using the libcrypto.a library, it complains that > RSA_generate_key and DH_generate_parameters are undefined references. > Actually, I believe it said that o