Subject: Re: [libssh2] PEM file reader and another libgcrypt status update

Re: [libssh2] PEM file reader and another libgcrypt status update

From: Simon Josefsson <>
Date: Tue, 23 Jan 2007 12:35:01 +0100

Simon Josefsson <> writes:

> jas_at_mocca:~/src/libssh2/src$ nm -B .libs/|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/|grep -i openssl
jas_at_mocca:~/src/libssh2/src$ ~/src/curl/src/curl scp://jas@localhost/etc/hostname
jas_at_mocca:~/src/libssh2/src$ ldd .libs/ => (0xffffe000) => /usr/local/lib/ (0xb7ef6000) => /usr/local/lib/ (0xb7ef2000) => /usr/lib/ (0xb7ede000) => /lib/tls/i686/cmov/ (0xb7dad000) => /lib/tls/i686/cmov/ (0xb7d97000)
        /lib/ (0x80000000)

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.


Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
libssh2-devel mailing list
Received on 2007-01-23