gctx->cipher_nid = NID_magma_ctr;
break;
+ case NID_id_GostR3410_2001:
+ case NID_id_GostR3410_2001DH:
case NID_id_GostR3410_2012_256:
case NID_id_GostR3410_2012_512:
gctx->cipher_nid = NID_id_Gost28147_89;
*(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