Subject: [ libssh2-Bugs-2731272 ] libssh2_userauth_publickey_fromfile crashed in windows XP

[ libssh2-Bugs-2731272 ] libssh2_userauth_publickey_fromfile crashed in windows XP

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 04 Jun 2009 16:17:31 +0000

Bugs item #2731272, was opened at 2009-04-04 16:43
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2731272&group_id=125852

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: libssh2_userauth_publickey_fromfile crashed in windows XP

Initial Comment:
libssh2_userauth_publickey_fromfile crashed in windows XP. When I further debugged the problem , I found it was crashing in PEM_read_RSAPrivateKey (openssl.c). When I replaced this API with PEM_read_bio_RSAPrivateKey, things started working. May I know why this behavior -

Harish Jadhav

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-06-04 18:17

Message:
Are you using the OpenSSL as a DLL? It so feels like a problem with passing
a FILE * between DLL boundaries which simply isn't allowed in windows.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2009-04-06 07:38

Message:
I know PEM_read_RSAPrivateKey uses File * and when I pass file pointer to
this function, this was leading to crash. Some one else also had a problem.
Pls refer
http://www.mail-archive.com/libssh2-devel@lists.sourceforge.net/msg00758.html

should make sense.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2009-04-04 23:12

Message:
It makes no sense, the function reads data from a FILE * not a BIO *!

https://www.openssl.org/docs/crypto/pem.html seems to document these
specific functions.

Can you make any sense from it?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=2731272&group_id=125852

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-06-04