summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r--usr.bin/ssh/sshd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 326aab63d49..ca3bc508e13 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -18,7 +18,7 @@ agent connections.
*/
#include "includes.h"
-RCSID("$Id: sshd.c,v 1.2 1999/09/28 04:45:37 provos Exp $");
+RCSID("$Id: sshd.c,v 1.3 1999/09/29 06:15:00 deraadt Exp $");
#include "xmalloc.h"
#include "rsa.h"
@@ -268,6 +268,12 @@ main(int ac, char **av)
else
av0 = av[0];
+ /* check if RSA support exists */
+ if (rsa_alive() == 0) {
+ log("no RSA support in libssl and libcrypto -- exiting. See ssl(8)");
+ exit(1);
+ }
+
/* Initialize configuration options to their default values. */
initialize_server_options(&options);