From 18e9f31c42def896747f1f44e8a391b15af9061f Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Wed, 7 Jun 2023 12:12:46 +0200 Subject: [PATCH] Fix DSS verification problem Resolves: rhbz#2212937 --- openssh-8.0p1-openssl-evp.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openssh-8.0p1-openssl-evp.patch b/openssh-8.0p1-openssl-evp.patch index 6647134..a17dbbc 100644 --- a/openssh-8.0p1-openssl-evp.patch +++ b/openssh-8.0p1-openssl-evp.patch @@ -150,7 +150,7 @@ index a23c383dc..ea45e7275 100644 - /* sha1 the data */ - if ((ret = ssh_digest_memory(SSH_DIGEST_SHA1, data, dlen, - digest, sizeof(digest))) != 0) -+ if ((slen = i2d_DSA_SIG(sig, NULL)) == 0) { ++ if ((slen = i2d_DSA_SIG(dsig, NULL)) == 0) { + ret = SSH_ERR_LIBCRYPTO_ERROR; goto out; - @@ -167,7 +167,7 @@ index a23c383dc..ea45e7275 100644 - default: + } + psig = sigb; -+ if ((slen = i2d_DSA_SIG(sig, &psig)) == 0) { ++ if ((slen = i2d_DSA_SIG(dsig, &psig)) == 0) { ret = SSH_ERR_LIBCRYPTO_ERROR; goto out; }