From 48f54b9d12c1c79fba333bc86d455d8f4cda8cfc Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Thu, 13 Sep 2018 12:13:50 +1000 Subject: adapt -portable to OpenSSL 1.1x API Polyfill missing API with replacement functions extracted from LibreSSL --- sshkey.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sshkey.c') diff --git a/sshkey.c b/sshkey.c index 085f1707..6f2c9d44 100644 --- a/sshkey.c +++ b/sshkey.c @@ -60,6 +60,8 @@ #include "xmss_fast.h" +#include "openbsd-compat/openssl-compat.h" + /* openssh private key file format */ #define MARK_BEGIN "-----BEGIN OPENSSH PRIVATE KEY-----\n" #define MARK_END "-----END OPENSSH PRIVATE KEY-----\n" @@ -1744,7 +1746,6 @@ int sshkey_from_private(const struct sshkey *k, struct sshkey **pkp) { struct sshkey *n = NULL; - int ret = SSH_ERR_INTERNAL_ERROR; int r = SSH_ERR_INTERNAL_ERROR; #ifdef WITH_OPENSSL const BIGNUM *rsa_n, *rsa_e; -- cgit v1.2.3