summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-05-15 14:24:09 +1000
committerDamien Miller <djm@mindrot.org>2014-05-15 14:24:09 +1000
commit1f0311c7c7d10c94ff7f823de9c5b2ed79368b14 (patch)
treeae708c2a25f84a04bcb04f2dbf3e8039e0f692bc /ssh.c
parentc5893785564498cea73cb60d2cf199490483e080 (diff)
- markus@cvs.openbsd.org 2014/04/29 18:01:49
[auth.c authfd.c authfile.c bufaux.c cipher.c cipher.h hostfile.c] [kex.c key.c mac.c monitor.c monitor_wrap.c myproposal.h packet.c] [roaming_client.c ssh-agent.c ssh-keygen.c ssh-keyscan.c ssh-keysign.c] [ssh-pkcs11.h ssh.c sshconnect.c sshconnect2.c sshd.c] make compiling against OpenSSL optional (make OPENSSL=no); reduces algorithms to curve25519, aes-ctr, chacha, ed25519; allows us to explore further options; with and ok djm
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c22
1 files changed, 19 insertions, 3 deletions
diff --git a/ssh.c b/ssh.c
index 76040fd59..d369b68e9 100644
--- a/ssh.c
+++ b/ssh.c
@@ -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);