From: Dmitry Belyavskiy Date: Sun, 3 May 2020 11:11:17 +0000 (+0300) Subject: Restoring gost89 CMS support in gost engine for OpenSSL 3.0 X-Git-Tag: v3.0.0~178 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=7040fcae6a2451ee0b098503499973ba246cca24;p=openssl-gost%2Fengine.git Restoring gost89 CMS support in gost engine for OpenSSL 3.0 --- diff --git a/gost_ameth.c b/gost_ameth.c index 92319e7..de1cdca 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -445,10 +445,12 @@ static int pkey_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2) *(int *)arg2 = CMS_RECIPINFO_TRANS; return 1; case ASN1_PKEY_CTRL_CMS_IS_RI_TYPE_SUPPORTED: - if (arg1 == CMS_RECIPINFO_AGREE || arg1 == CMS_RECIPINFO_TRANS) - return 1; + if (arg1 == CMS_RECIPINFO_AGREE || arg1 == CMS_RECIPINFO_TRANS) { + *(int *)arg2 = 1; + return 1; + } else - return 0; + return 0; break; #endif #endif