From 18e9f31c42def896747f1f44e8a391b15af9061f Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Jun 07 2023 10:12:46 +0000 Subject: Fix DSS verification problem Resolves: rhbz#2212937 --- 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; }