s->handshake_func

2005-11-12 Thread M G
Hi list, I'm in the middle of my SSL_accept call. When I trace into it, the s->handshake_func is NULL (within OpenSSL's ssl_lib.c file). There is a comment there that reads, "not properly initialized yet". What type of initialization will give me my handshake function? Thank you very much!

Re: General question on SSL

2005-10-27 Thread M G
efore reading > or writing data to the newly formed SSL connection. > > -Justin > > On Thursday 27 October 2005 15:21, M G wrote: > > Thank you Justin! > > > > Just to nail down my understanding of your last > > paragraph - you said "just compare the f

Re: General question on SSL

2005-10-27 Thread M G
in! --- Justin Karneges <[EMAIL PROTECTED]> wrote: > On Thursday 27 October 2005 07:25, M G wrote: > > Hi list, > > > > My goal is to create mutual authentication for > small business (each client > > app is also a server that can share data > securely), i

General question on SSL

2005-10-27 Thread M G
Hi list,   My goal is to create mutual authentication for small business (each client app is also a server that can share data securely), is there a way to use SSL the "normal" way i.e., to create an X509 store, set verify function, use certificates, etc, ... but not require usrs to sign with a CA

Re: X509 digest different after write and read to-from PEM

2005-10-25 Thread M G
Dr. Henson, Looks like the check on the >0 and not just != -1 did the trick! Thank you for helping me! Cheers! --- "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 25, 2005, M G wrote: > > > Hi Dr. Henson, > > > > You were wondering

Re: X509 digest different after write and read to-from PEM

2005-10-25 Thread M G
!= -1) { strTemp = pData; strTemp = strTemp.Mid(0, nLengthRead); S += strTemp; } return S; } --- "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote: > On Sun, Oct 23, 2005, M G wrote: > > > Hi Dr. Henson, > > > > Thanks in advance for taking a

How can I get a fingerprint on a certificate that does not change for any instance?

2005-10-24 Thread M G
Hi list,   How can I get a fingerprint on an X509 certificate that is constant before and after I write it out to PEM format?  For some reason, my fingerprint changes when I take my X509, write it to PEM with PEM_write_bio_X509 and read it back with PEM_read_bio_X509... Is this proper behavior?   M

Re: X509 digest different after write and read to-from PEM

2005-10-24 Thread M G
];  int nLengthRead;  while((nLengthRead = BIO_read(pMem,pData,4096)) != -1)   {    strTemp = pData;    strTemp = strTemp.Mid(0, nLengthRead);    S += strTemp;  }    return S;} "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote: On Sun, Oct 23, 2005, M G wrote:> Hi Dr. Henson,> > Than

Re: X509 digest different after write and read to-from PEM

2005-10-23 Thread M G
try_by_txt(pName,"CN",MBSTRING_ASC,szCN,-1,-1,0);   // self signed: X509_set_issuer_name(m_pX509, pName);   X509_sign(m_pX509, pEVP, EVP_sha1());   That is all I do... Am I missing something important?   Thank you very much! "Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote: On Sat, O

X509 digest different after write and read to-from PEM

2005-10-22 Thread M G
Hi list,   I noticed that the DER string representation was very very similar (longer by one byte) and only different by very few bytes... i.e., they are almost exactly the same thing  I am trying to get to the cause of why the digest differs between them   Any ideas? Find your next car at Y

Re: X509

2005-10-22 Thread M G
Could this software bug be something I forgot to add to my certificate when creating it?  i.e., I newly create the X509 and use PEM_write_bio_X509 and PEM_read_bio_x509...  Checking the digest on these 2 X509s is *supposed* to have the same fingerprint?  I am really not doing much here - just writi

X509

2005-10-22 Thread M G
Hi List,   Does anyone know why an X509 digest would be different after the X509 is written out and read back into another X509 from PEM?   Thanks! Find your next car at Yahoo! Canada Autos

certificate digest different results before writing to PEM?

2005-10-21 Thread M G
Hi list, I'm trying to calculate a certificate digest using X509_digest.  I created an X509 certificate (self-signed) programmatically with X509_new (and I set the version and the organization and country etc with X509_NAME_add_entry_by_txt)..  I then call X509_set_issuer_name and use X509_sign to