why SSL_CTX_new returns null pointer -how to avoid

2008-01-23 Thread gopinath ethiraja
I tried to establish client server connection . but when i tried to set up the ssl context using SSL_CTX_new(SSLv23_client_method()) method this returns only null.can anyone please help how to avoid this error.I tried using VC++ #include "openssl/ssl.h" #include "openssl/bio.h" #include "openssl

Re: why SSL_CTX_new returns null pointer -how to avoid

2008-01-23 Thread Prabhu S
Hi, Do "SSL_library_init()" . Prabhu. S On 1/23/08, gopinath ethiraja <[EMAIL PROTECTED]> wrote: > > I tried to establish client server connection . but when i tried to > set up the ssl context using SSL_CTX_new(SSLv23_client_method()) > method this returns only null.can anyone please help how

Re: why SSL_CTX_new returns null pointer -how to avoid

2008-01-23 Thread Jimmy B
On 1/23/08, gopinath ethiraja <[EMAIL PROTECTED]> wrote: > I tried to establish client server connection . but when i tried to > set up the ssl context using SSL_CTX_new(SSLv23_client_method()) > method this returns only null.can anyone please help how to avoid this > error.I tried using VC++ > >

Re: distributing ssl/crypto libs with a distributed, multi-platform app

2008-01-23 Thread Jimmy B
On 1/23/08, Bobby Krupczak <[EMAIL PROTECTED]> wrote: > Hi! > Static linking does not seem appropriate as I cant get my app to > statically link against libssl/libcrypto (I get lots of undefined > symbol errors) and statically linking tends to not work well across > platforms that have different ve

Re: distributing ssl/crypto libs with a distributed, multi-platform app

2008-01-23 Thread Bobby Krupczak
Hi! > > Static linking does not seem appropriate as I cant get my app to > > statically link against libssl/libcrypto (I get lots of undefined > > symbol errors) and statically linking tends to not work well across > > platforms that have different versions of underlying libraries. > > > > That s

FIPS Static Link to Dynamic Library

2008-01-23 Thread Jacob Barrett
Yes, I know it sounds crazy. Our product has historically linked everything statically into one giant executable and also one medium size shared library for customer linking. What I need to do is statically link in the FIPS capable libraries into a dynamic library, in this case on a .so (on windows

SHLIB_VERSION_NUMBER != soname ??

2008-01-23 Thread Rex Dieter
See also: https://bugzilla.redhat.com/show_bug.cgi?id=429846 Due to licensing issues, kdelibs dlopens openssl instead of linking.  In order to make this work, kdelibs needs to know the soname of both libcrypto and libssl.  Upstream kdelibs tries to use libssl.so.SHLIB_VERSION_NUMBER (and libcrypto

failing to read private key

2008-01-23 Thread John T. Cox
Through a long convoluted series of events something that was working is no longer working. Another group merged in some stuff to our application. Originally, I thought they had munged the code merge. However, they removed the changes to this area and I cannot find anything else that happened. One

Re: SHLIB_VERSION_NUMBER != soname ??

2008-01-23 Thread Justin Karneges
On Wednesday 23 January 2008 7:52 am, Rex Dieter wrote: > See also: > https://bugzilla.redhat.com/show_bug.cgi?id=429846 > > Due to licensing issues, kdelibs dlopens openssl instead of linking.  In > order to make this work, kdelibs needs to know the soname of both libcrypto > and libssl.  Upstream

Re: SHLIB_VERSION_NUMBER != soname ??

2008-01-23 Thread Rex Dieter
Justin Karneges wrote: I am not a lawyer, but I don't think dlopening openssl within a GPL application is any more legal than dynamically linking to it. Please, let's not digress. I apologize for even mentioning that part. I believe the real reason kdelibs dlopens openssl is to perform some

Re: failing to read private key

2008-01-23 Thread Dr. Stephen Henson
On Wed, Jan 23, 2008, John T. Cox wrote: > I generate a key pair in another area but now when the code tries to load > the private key there is an error. > > 24449:error:0906B072:PEM routines:PEM_get_EVP_CIPHER_INFO:unsupported > encryption:pem_lib.c:481: > http://www.openssl.org/support/faq.ht

RE: RSA_verify problem

2008-01-23 Thread Marek . Marcola
Hello, > I have attempted to ensure that both the modulus and signature are 128 bytes > long but I still cannot get this to work correctly. Below is a sample of xml > showing my KeyInfo. The Modulus is 172 characters long which I believe is > correct: > > > > > > 1RjaCKAG09orRlqo9U4SCt1

Index.txt size limit

2008-01-23 Thread Gregory Malsack
Hello Everyone, I have an index.txt file that has 40 lines in it. When I try to add more items to the data base I get the error: error creating name index:(2,5,38) If I tail the index.txt file down to only a few lines, run the openssl ca command again all works well. I can then add the

RE: RSA_verify problem

2008-01-23 Thread Chris Brown
Thank you for your response. I am Base64 decoding the signatureValue, modulus and exponent but if I check the exponent length it is zero after decoding. The modulus length seems to vary after decoding maybe because there is a null in the buffer. I think that my Base64 decoding code is working ok