Re: Certificate verification fails on MIPS architecture

2008-05-23 Thread Michael S. Zick
On Fri May 23 2008 16:24, Till Elsner wrote: > Am 23.05.2008 um 05:44 schrieb Michael S. Zick: > > > On Thu May 22 2008 16:59, Till Elsner wrote: > >> Hi, > >> > >> I'm running a program using some OpenSSL features for certificate > >> handling on an MIPS architecture (Linksys WRT router with Open

Re: Certificate verification fails on MIPS architecture

2008-05-23 Thread Till Elsner
Am 23.05.2008 um 05:44 schrieb Michael S. Zick: On Thu May 22 2008 16:59, Till Elsner wrote: Hi, I'm running a program using some OpenSSL features for certificate handling on an MIPS architecture (Linksys WRT router with OpenWRT firmware). On an x86 Linux everything works fine, but on the rout

Re: Issue with X509_REQ_set_subject_name on IA64

2008-05-23 Thread Dr. Stephen Henson
On Fri, May 23, 2008, Brian Smith wrote: > Thank you for your input Dr. Henson, the following seems to work without > error. What is the procedure from here to get the relevant changes into the > baseline? > > http://cvs.openssl.org/chngview?cn=16662 > It is already in CVS so such changes will

Re: Compiling with ECDSA / ECDN / EC Support ?

2008-05-23 Thread Victor Duchovni
On Thu, May 22, 2008 at 05:04:40PM -0700, expresspotato wrote: > > Hello, > > How can I compile OpenSSL with ECDSA,ECDN and EC support? Use OpenSSL 0.9.8 (where is EC is present, but not on the default TLS cipher list) or 0.9.9-dev where it is fully enabled. -- Viktor. ___

Re: Issue with X509_REQ_set_subject_name on IA64

2008-05-23 Thread Brian Smith
Thank you for your input Dr. Henson, the following seems to work without error. What is the procedure from here to get the relevant changes into the baseline? http://cvs.openssl.org/chngview?cn=16662 Thanks, Brian Smith On 5/23/08, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > > On Thu, May 22

Re: Help getting started

2008-05-23 Thread Joshua J Bialkowski
Thanks for the suggestion. I was hoping I could slap together something simple and quick but if that is not the case, well, it's not the case. My library has that book so I'll check it out and get started with that. Thanks again. Mark wrote: Hi, I've been trying to put together a simple s

Re: [EVP_PKEY] How to duplicate it ?

2008-05-23 Thread Richard Levitte
In message <[EMAIL PROTECTED]> on Fri, 23 May 2008 10:38:06 +0200, "delcour.pierre" <[EMAIL PROTECTED]> said: pierre.delcour> I wrote this not working code: pierre.delcour> BIO *bout = BIO_new(BIO_s_mem()); pierre.delcour> PEM_write_bio_PrivateKey(bout, key, NULL, NULL, 0, NULL, NULL); p

Re: [EVP_PKEY] How to duplicate it ?

2008-05-23 Thread Thomas Mangold
Why not just copy the key? EVP_PKEY *cp_key (EVP_PKEY *pkey) { /* error handling omittet */ EVP_PKEY *pnew; int key_type; pnew = EVP_PKEY_new(); switch(pkey->type) { case EVP_PKEY_RSA: DSA *dsa = EVP_PKEY_get1_DSA(pkey); EVP_PKEY_set1_DSA(pnew, dsa);

Re: [Base64 Decoding] Bug when decoding??

2008-05-23 Thread Dr. Stephen Henson
On Fri, May 23, 2008, karim Bendadda wrote: > Hi Stephen, > >I just try it! it works fine! it doesn't appear when lunching openssl > command: $openssl enc ? > How can I implement it using the openssl's EVP API??? > It is mentioned in the documentation and the BIO equivalent is to set t

Re: Issue with X509_REQ_set_subject_name on IA64

2008-05-23 Thread Dr. Stephen Henson
On Thu, May 22, 2008, Brian Smith wrote: > This is a follow-up to my previous post. I have discovered that when using > X509_REQ_set_subject_name on my IA-64 system, that it will cause a segfault > in x509_name_ex_d2i much the very same as the post linked below. When > compiling the OpenSSL libra

[EVP_PKEY] How to duplicate it ?

2008-05-23 Thread delcour.pierre
Hello everyone, I would like to duplicate an EVP_PKEY struct. I wrote this not working code: BIO *bout = BIO_new(BIO_s_mem()); PEM_write_bio_PrivateKey(bout, key, NULL, NULL, 0, NULL, NULL); key = PEM_read_bio_PrivateKey(bout, NULL, NULL, NULL); cout << (key == NULL) << endl; BIO_free(

Re: [Base64 Decoding] Bug when decoding??

2008-05-23 Thread karim Bendadda
Hi Stephen, I just try it! it works fine! it doesn't appear when lunching openssl command: $openssl enc ? How can I implement it using the openssl's EVP API??? Thank you. On Thu, May 22, 2008 at 8:12 PM, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote: > On Thu, May 22, 2008, karim Bendadd

Re: [Base64 Decoding] Bug when decoding??

2008-05-23 Thread karim Bendadda
Thanks for examples Victor. As Dominique suggests I tried to split the base64 encoded string to blocs. The decoding works fine now! but I still have some decrypting problems...I'll post my problem on a new topic; it concerning decrypting now!. Thank you for your help! On Thu, May 22, 2008 at 8

RE: Help getting started

2008-05-23 Thread Mark
Hi, > I've been trying to put together a simple secure pop3 client > (just login > and check number of available messages) to test out the > openSSL library > but I can't seem to find any good tutorials or examples that really > explains what's going on with certificates. AFAIK there aren'

RE: Help getting started

2008-05-23 Thread Ambarish Mitra
Replies inlined. Pls correct me if wrong. Hey all, I've been trying to put together a simple secure pop3 client (just login and check number of available messages) to test out the openSSL library but I can't seem to find any good tutorials or examples that really explains what's going on with ce

Compiling with ECDSA / ECDN / EC Support ?

2008-05-23 Thread expresspotato
Hello, How can I compile OpenSSL with ECDSA,ECDN and EC support? Running the standard ./config compiled without these libraries that are dependencies for other modules. Other scripts complain ec.h can't be found, along with ecdsa.h and ecdn.h. Simply copying them reveals EC is disabled. ECDSA

Help getting started

2008-05-23 Thread Joshua J Bialkowski
Hey all, I've been trying to put together a simple secure pop3 client (just login and check number of available messages) to test out the openSSL library but I can't seem to find any good tutorials or examples that really explains what's going on with certificates. Can someone point me in the

Issue with X509_REQ_set_subject_name on IA64

2008-05-23 Thread Brian Smith
This is a follow-up to my previous post. I have discovered that when using X509_REQ_set_subject_name on my IA-64 system, that it will cause a segfault in x509_name_ex_d2i much the very same as the post linked below. When compiling the OpenSSL library in debug mode, the function operates properly,