X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_ameth.c;fp=gost_ameth.c;h=de1cdcabff1edc6c9d0f26cf0e5900e12c7b94fe;hb=7040fcae6a2451ee0b098503499973ba246cca24;hp=92319e74c55ae3a85edde2484e30e0647d472e0e;hpb=ba42a84e46de8367030b0770b33b9db3f1e1b610;p=openssl-gost%2Fengine.git 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