On Wed, Nov 12, 2008 at 02:03:59PM -0500, Aubrey Eddleson wrote:

> Greetings!
> 
> I'm working on a proof-of-concept SSH key cracker:  my code reads in password
> guesses from standard input and for each guess, calls PEM_read_PrivateKey.  If
> that returns a valid pointer, that indicates that the password was correct.  
> (I
> think I'm right so far.)  This works just fine IF the first call to
> PEM_read_PrivateKey is with the correct password, but if it isn't, any
> subsequent calls fail, even if the correct password is given.
> 

Rewinding the input file might be a good idea...

-- 
        Viktor.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to