Pb using memory bio

2001-04-25 Thread Hausermann Laurent
Hi all, I still have some trouble with the memory BIO. I want to write a PEM struct into a memory BIO So I do : BIO * bp; d=malloc(1024); bp=BIO_new_mem_buf(d,1024); ret = PEM_write_bio_X509(bp,x509); And it fails ! But if i do : BIO *out; BIO *out=OpenSSLCore.BIO_new(OpenSSLCore.BIO_s_file()

Computing the PEM write size

2001-04-24 Thread Hausermann Laurent
Hi all, I wanting to use the PEM_write_bio_PrivateKey function into a memory bio... I have to create a new BIO with sufficient memory space, but how can I know the size of the PEM data before calling the writing function ? Thanks in advance. Laurent PS : i wanted to do that for communication

Re: Password only with CallBack Func ?

2001-04-24 Thread Hausermann Laurent
Excuse for my above silly question : you can specify a password in the call PEM_XX_READ ? Hausermann Laurent wrote: > Hi all, > > I am writing an JAVA Wrapper for OpenSSL , and I want to use the > PEM_read_foobar functions..The problem is I can't use callback function. > Is

Password only with CallBack Func ?

2001-04-23 Thread Hausermann Laurent
Hi all, I am writing an JAVA Wrapper for OpenSSL , and I want to use the PEM_read_foobar functions..The problem is I can't use callback function. Is-there anyway in the API to decrypt after reading the PEM through the BIO ? Thanks Laurent ___

Re: JAVA/JNI Wrapper for OpenSSL.

2001-03-29 Thread Hausermann Laurent
Yeah it's really well documented and full fonctionnal but not opensourced ! Thanks -Laurent Mads Toftum wrote: > On Wed, Mar 28, 2001 at 01:08:34PM -0800, Sabyasachi Gupta wrote: > > I checked out JSSE and JKS but none provides the functionality to > > sign certificates as a CA programmatically (

JAVA/JNI Wrapper for OpenSSL.

2001-03-28 Thread Hausermann Laurent
Hi, Is there someone who knows a good up-to-date implementation of a JNI glue so you could access OpenSSL library through JAVA Classes (JCE or JSSE conformance should be great) ? I found through the www.openssl.org but it seems to be a bit old. Is the project maintenair interrested in adding t