diff options
Diffstat (limited to 'usr.bin/ssh/ssh-add.c')
-rw-r--r-- | usr.bin/ssh/ssh-add.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-add.c b/usr.bin/ssh/ssh-add.c index d2c6547badc..f5cd92ba159 100644 --- a/usr.bin/ssh/ssh-add.c +++ b/usr.bin/ssh/ssh-add.c @@ -14,7 +14,7 @@ Adds an identity to the authentication server, or removes an identity. */ #include "includes.h" -RCSID("$Id: ssh-add.c,v 1.2 1999/09/28 04:45:37 provos Exp $"); +RCSID("$Id: ssh-add.c,v 1.3 1999/09/29 06:15:00 deraadt Exp $"); #include "rsa.h" #include "ssh.h" @@ -216,6 +216,16 @@ main(int ac, char **av) int i; int deleting = 0; + /* check if RSA support exists */ + if (rsa_alive() == 0) { + extern char *__progname; + + fprintf(stderr, + "%s: no RSA support in libssl and libcrypto. See ssl(8).\n", + __progname); + exit(1); + } + for (i = 1; i < ac; i++) { if (strcmp(av[i], "-l") == 0) |