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 what code I used to produce the
> > digest:  I used my X509 certificate to get the
> > fingerprint with GetSHAFingerprint() - then I
> wrote
> > the X509 to PEM, then I read it back and called
> > GetSHAFingerprint() again and received a different
> > fingerprint.  Is this supposed to happen?  This is
> the
> > code that I used:
> > 
> 
> As I said before this isn't supposed to happen. I
> can't reproduce this in pure
> C code so I assume there's a problem somewhere with
> your code.
> 
> BIO_seek() doesn't work on memory BIOs but that's
> not a problem. Also you
> should check that BIO_read() returns >0 not just
> !=-1.
> 
> If that doesn't help I'd suggest you compare the PEM
> data in your string and
> that produced by writing it to a file with the pem
> routines directly.
> 
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys:
> see homepage
> OpenSSL project core developer and freelance
> consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
>
______________________________________________________________________
> OpenSSL Project                                
> http://www.openssl.org
> User Support Mailing List                   
> openssl-users@openssl.org
> Automated List Manager                          
> [EMAIL PROTECTED]
> 



        

        
                
__________________________________________________________ 
Find your next car at http://autos.yahoo.ca
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to