Hi, I was doing some digging to see how I could pass auth keys by memory when I discovered this old thread from 2012 with a patch:
http://www.libssh2.org/mail/libssh2-devel-archive-2012-01/0015.shtml I'm really interested in seeing this incorporated to libssh2, so I decided to try to address the problems raised in the next message in that thread: http://www.libssh2.org/mail/libssh2-devel-archive-2012-01/0016.shtml I created a new patch that addressed part those points. You can see it at: https://github.com/calavera/libssh2/commit/d083300c69f41eff6132da3525722fc590e350cf.patch I replaced the use of `memcpy_s` to use `memcpy`. I also formatted the code to use less that 80 columns. I ran `./configure --enable-debug` to try to address the warnings in the code, but unfortunately I didn't get any. I'm not sure if I'm doing anything wrong, I posted the output here: https://gist.github.com/calavera/639002dd56753640721d I'd really appreciate if anybody could point me to those warnings if there is anything I'm missing. As I said, I'm really interested in seeing this merged into libssh2. Please, let me know if there is anything else I can help with to make that possible. Cheers, David
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
