Re: A little help please!!!

2004-09-09 Thread Smith Baylor
You may need to include -I /cygdrive/c/openssl/include or something like that for including the necessary header files. On Thu, 9 Sep 2004 20:59:23 +0200, Dunceor hmm <[EMAIL PROTECTED]> wrote: > compile with: > gcc -o test test.c -lcrypto > > - Original Message - > From: Marcos Paraiso

Re: problems storing a P12 in base64 format

2004-09-09 Thread Smith Baylor
was seeing only 9 bytes out of expected 13. I could not see a resolution to the above problem and I am leading to believe that my problem could be very similar to his. Thanks On Thu, 9 Sep 2004 20:56:20 +0200, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > > On Thu, Sep 09, 200

Re: problems storing a P12 in base64 format

2004-09-09 Thread Smith Baylor
-0700, Smith Baylor <[EMAIL PROTECTED]> wrote: > BIO *mbio, *b64bio, *bio; > > mbio = BIO_new(BIO_s_mem()); > b64bio = BIO_new(BIO_f_base64()); > bio = BIO_push(b64bio, mbio); > int bytes_stored = i2d_PKCS12_bio(bio, p12); &

problems storing a P12 in base64 format

2004-09-09 Thread Smith Baylor
BIO *mbio, *b64bio, *bio; mbio = BIO_new(BIO_s_mem()); b64bio = BIO_new(BIO_f_base64()); bio = BIO_push(b64bio, mbio); int bytes_stored = i2d_PKCS12_bio(bio, p12); BIO_flush(mbio2); BIO_get_mem_data(mbio, (unsigned char *)&p12_data_tmp);

Re: creating a STACK_OF(X509) from a X509 Cert

2004-09-09 Thread Smith Baylor
Thanks that helped and worked. --Smith On Thu, 9 Sep 2004 15:04:10 +0200, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > > On Thu, Sep 09, 2004, Smith Baylor wrote: > > > Hi, > > > > How can you create a STACK_OF(X509) object from a given X509 CA Cert

creating a STACK_OF(X509) from a X509 Cert

2004-09-09 Thread Smith Baylor
Hi, How can you create a STACK_OF(X509) object from a given X509 CA Cert? X509 *x509ca; STACK_OF(X509) *ca; x509ca = ReadX509Cert("file_name"); Now how to populate the ca object with this x509ca object? Thanks __ OpenSSL Proje

Re: storing PEM encoded certs in database

2004-09-09 Thread Smith Baylor
count (via wc) of the returned data to the PEM returned, > to see if they were equal. Have you verified that the count in > bio_store_bytes is equal to the amount of data to the end of -END > CERTIFICATE-? Does the count include garbage characters which you > are seeing?

Re: storing PEM encoded certs in database

2004-09-07 Thread Smith Baylor
se64 > encoded data, which is explicitly 7 bit safe, so would not include an > accented character. It looks like your null byte is in the wrong place. > It probably should have come after the "=" sign. > > Eric > > On Sep 7, 2004, at 1:12 PM, Smith Baylor wrote: >

Re: storing PEM encoded certs in database

2004-09-07 Thread Smith Baylor
I was also pointed to this document by an other member privately http://www.openssl.org/docs/crypto/d2i_X509.html and it did not help much --Smith On Tue, 7 Sep 2004 13:12:16 -0700, Smith Baylor <[EMAIL PROTECTED]> wrote: > Hi, > > I am using C as the programming language and

Re: storing PEM encoded certs in database

2004-09-07 Thread Smith Baylor
('V',to_date('%s','-MM-DD HH24:MI:SS'),'%i','%s')",fecha_cad, num_serie, cert)" Holpe this helps. Zainos Smith Baylor <[EMAIL PROTECTED]> wrote: _