[PATCH] ssh: Add missing openssl-compat.h where needed

Rosen Penev rosenp at gmail.com
Mon Oct 22 14:39:18 AEDT 2018


OpenSSL_add_all_algorithms has been deprecated with 1.1. Compatibility
is needed.

Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
 ssh-keysign.c | 1 +
 ssh_api.c     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/ssh-keysign.c b/ssh-keysign.c
index 744ecb4f..bcd1508c 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -40,6 +40,7 @@
 #include <openssl/evp.h>
 #include <openssl/rand.h>
 #include <openssl/rsa.h>
+#include "openbsd-compat/openssl-compat.h"
 #endif
 
 #include "xmalloc.h"
diff --git a/ssh_api.c b/ssh_api.c
index c84b4e71..e727c0d6 100644
--- a/ssh_api.c
+++ b/ssh_api.c
@@ -29,6 +29,8 @@
 #include "ssherr.h"
 #include "sshbuf.h"
 
+#include "openbsd-compat/openssl-compat.h"
+
 #include <string.h>
 
 int	_ssh_exchange_banner(struct ssh *);
-- 
2.19.1



More information about the openssh-unix-dev mailing list