diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -70,11 +70,13 @@ extern char *__progname; | |||
70 | 70 | ||
71 | /* Default files to add */ | 71 | /* Default files to add */ |
72 | static char *default_files[] = { | 72 | static char *default_files[] = { |
73 | #ifdef WITH_OPENSSL | ||
73 | _PATH_SSH_CLIENT_ID_RSA, | 74 | _PATH_SSH_CLIENT_ID_RSA, |
74 | _PATH_SSH_CLIENT_ID_DSA, | 75 | _PATH_SSH_CLIENT_ID_DSA, |
75 | #ifdef OPENSSL_HAS_ECC | 76 | #ifdef OPENSSL_HAS_ECC |
76 | _PATH_SSH_CLIENT_ID_ECDSA, | 77 | _PATH_SSH_CLIENT_ID_ECDSA, |
77 | #endif | 78 | #endif |
79 | #endif /* WITH_OPENSSL */ | ||
78 | _PATH_SSH_CLIENT_ID_ED25519, | 80 | _PATH_SSH_CLIENT_ID_ED25519, |
79 | _PATH_SSH_CLIENT_IDENTITY, | 81 | _PATH_SSH_CLIENT_IDENTITY, |
80 | NULL | 82 | NULL |
@@ -440,7 +442,9 @@ main(int argc, char **argv) | |||
440 | __progname = ssh_get_progname(argv[0]); | 442 | __progname = ssh_get_progname(argv[0]); |
441 | seed_rng(); | 443 | seed_rng(); |
442 | 444 | ||
445 | #ifdef WITH_OPENSSL | ||
443 | OpenSSL_add_all_algorithms(); | 446 | OpenSSL_add_all_algorithms(); |
447 | #endif | ||
444 | 448 | ||
445 | setvbuf(stdout, NULL, _IOLBF, 0); | 449 | setvbuf(stdout, NULL, _IOLBF, 0); |
446 | 450 | ||