I have not tested with OpenSSL 0.9.8i but because of some of the crashes I have seen from revision to revision, I would go back to 0.9.8g which is what I am using. Here is a piece of my code that does the connect and login:
LIBSSH2_SESSION *session = NULL; SOCKET sock; sock = createsocket( ip_addr ); if ( sock == INVALID_SOCKET ) { LOG( " createsocket failed" ); return NULL; } session = libssh2_session_init(); if ( session == NULL ) { LOG( " libssh2_session_init failed" ); return NULL; } if ( libssh2_session_startup( session, ( int ) sock ) != 0 ) { LOG( "Failed to create session" ); print_libssh2_error( session ); libssh2_session_disconnect( session, "Failed to create session" ); libssh2_session_free( session ); return NULL; } if ( libssh2_userauth_password_ex( session, "username", ( int ) strlen( "username" ), "password", ( int ) strlen( "password" ), NULL ) != 0 ) { LOG( "Failed to Login" ); print_libssh2_error( session ); libssh2_session_disconnect( session, "Login Failure" ); libssh2_session_free( session ); return NULL; } return session; -----Original Message----- From: Kshitij Deshpande [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 1:04 PM To: libssh2-devel@lists.sourceforge.net Subject: Re: [libssh2] Crash under Windows XP - VS 2008 I am using the latest version which is 0.9.8i . This version was updated on Sep 2008. Do you have any examples that sompile and run under windows XP with libssh2? ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel