refactor libcrypto initialisation
Don't call OpenSSL_add_all_algorithms() unless OpenSSL actually
supports it.
Move all libcrypto initialisation to a single function, and call that
from seed_rng() that is called early in each tool's main().
Prompted by patch from Rosen Penev
diff --git a/ssh_api.c b/ssh_api.c
index e727c0d..53bbc9b 100644
--- a/ssh_api.c
+++ b/ssh_api.c
@@ -81,9 +81,7 @@
int r;
if (!called) {
-#ifdef WITH_OPENSSL
- OpenSSL_add_all_algorithms();
-#endif /* WITH_OPENSSL */
+ seed_rng();
called = 1;
}