Applied Joe Turpin's userath from memory based key patch.

Patch taken from the libssh2 mailing list archives:
http://www.libssh2.org/mail/libssh2-devel-archive-2012-03/0135.shtml