diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.401 2014/02/26 20:18:37 djm Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.402 2014/04/29 18:01:49 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -71,8 +71,10 @@ | |||
71 | #include <netinet/in.h> | 71 | #include <netinet/in.h> |
72 | #include <arpa/inet.h> | 72 | #include <arpa/inet.h> |
73 | 73 | ||
74 | #ifdef WITH_OPENSSL | ||
74 | #include <openssl/evp.h> | 75 | #include <openssl/evp.h> |
75 | #include <openssl/err.h> | 76 | #include <openssl/err.h> |
77 | #endif | ||
76 | #include "openbsd-compat/openssl-compat.h" | 78 | #include "openbsd-compat/openssl-compat.h" |
77 | #include "openbsd-compat/sys-queue.h" | 79 | #include "openbsd-compat/sys-queue.h" |
78 | 80 | ||
@@ -631,7 +633,13 @@ main(int ac, char **av) | |||
631 | break; | 633 | break; |
632 | case 'V': | 634 | case 'V': |
633 | fprintf(stderr, "%s, %s\n", | 635 | fprintf(stderr, "%s, %s\n", |
634 | SSH_RELEASE, SSLeay_version(SSLEAY_VERSION)); | 636 | SSH_RELEASE, |
637 | #ifdef WITH_OPENSSL | ||
638 | SSLeay_version(SSLEAY_VERSION) | ||
639 | #else | ||
640 | "without OpenSSL" | ||
641 | #endif | ||
642 | ); | ||
635 | if (opt == 'V') | 643 | if (opt == 'V') |
636 | exit(0); | 644 | exit(0); |
637 | break; | 645 | break; |
@@ -828,8 +836,10 @@ main(int ac, char **av) | |||
828 | 836 | ||
829 | host_arg = xstrdup(host); | 837 | host_arg = xstrdup(host); |
830 | 838 | ||
839 | #ifdef WITH_OPENSSL | ||
831 | OpenSSL_add_all_algorithms(); | 840 | OpenSSL_add_all_algorithms(); |
832 | ERR_load_crypto_strings(); | 841 | ERR_load_crypto_strings(); |
842 | #endif | ||
833 | 843 | ||
834 | /* Initialize the command to execute on remote host. */ | 844 | /* Initialize the command to execute on remote host. */ |
835 | buffer_init(&command); | 845 | buffer_init(&command); |
@@ -876,7 +886,13 @@ main(int ac, char **av) | |||
876 | SYSLOG_FACILITY_USER, !use_syslog); | 886 | SYSLOG_FACILITY_USER, !use_syslog); |
877 | 887 | ||
878 | if (debug_flag) | 888 | if (debug_flag) |
879 | logit("%s, %s", SSH_RELEASE, SSLeay_version(SSLEAY_VERSION)); | 889 | logit("%s, %s", SSH_RELEASE, |
890 | #ifdef WITH_OPENSSL | ||
891 | SSLeay_version(SSLEAY_VERSION) | ||
892 | #else | ||
893 | "without OpenSSL" | ||
894 | #endif | ||
895 | ); | ||
880 | 896 | ||
881 | /* Parse the configuration files */ | 897 | /* Parse the configuration files */ |
882 | process_config_files(pw); | 898 | process_config_files(pw); |