Simon Josefsson <simon_at_josefsson.org> writes:
> jas_at_mocca:~/src/libssh2/src$ nm -B .libs/libssh2.so|grep -i openssl
> U BN_bin2bn@@OPENSSL_0.9.8
> U BN_bn2bin@@OPENSSL_0.9.8
> U BN_clear_free@@OPENSSL_0.9.8
> U BN_CTX_free@@OPENSSL_0.9.8
> U BN_CTX_new@@OPENSSL_0.9.8
> U BN_mod_exp@@OPENSSL_0.9.8
> U BN_new@@OPENSSL_0.9.8
> U BN_num_bits@@OPENSSL_0.9.8
> U BN_rand@@OPENSSL_0.9.8
> U BN_set_word@@OPENSSL_0.9.8
> jas_at_mocca:~/src/libssh2/src$
>
> The symbols are all in lib/kex.c.
Now all OpenSSL symbols have been replaced, and libssh2 in CVS now
works without any dependencies on OpenSSL:
jas_at_mocca:~/src/libssh2/src$ nm -B .libs/libssh2.so|grep -i openssl
jas_at_mocca:~/src/libssh2/src$ ~/src/curl/src/curl scp://jas@localhost/etc/hostname
mocca
jas_at_mocca:~/src/libssh2/src$ ldd .libs/libssh2.so
linux-gate.so.1 => (0xffffe000)
libgcrypt.so.11 => /usr/local/lib/libgcrypt.so.11 (0xb7ef6000)
libgpg-error.so.0 => /usr/local/lib/libgpg-error.so.0 (0xb7ef2000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7ede000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dad000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7d97000)
/lib/ld-linux.so.2 (0x80000000)
jas_at_mocca:~/src/libssh2/src$
The bignum part turned out to be simpler than I thought.
What remains is to fix RSA signing, and to run libssh2+curl under
valgrind to find obvious problems. I reckon I'm now 90 % finished.
At this point, I think it would be useful for others to review the
code and comment on it. I'm sure there are mistakes, but I'm to deep
into the code to see them now.
/Simon
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-01-23