X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_ameth.c;h=b8998417446ecda8c9d64514841e3d00b8454cff;hb=refs%2Fheads%2Fossl_patched;hp=c60ce0acb9e6a2a38db2089e8e55fd439bd59f13;hpb=7122f09ce78127173c6a0136a7bf9389ea91072f;p=openssl-gost%2Fengine.git diff --git a/gost_ameth.c b/gost_ameth.c index c60ce0a..b899841 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -531,6 +531,12 @@ static int pkey_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2) case ASN1_PKEY_CTRL_DEFAULT_MD_NID: *(int *)arg2 = md_nid; return 2; + + case ASN1_PKEY_CTRL_SET1_TLS_ENCPT: + return gost_ec_oct2key((EC_KEY *)EVP_PKEY_get0(pkey), arg2, arg1); + + case ASN1_PKEY_CTRL_GET1_TLS_ENCPT: + return gost_ec_key2buf((EC_KEY *)EVP_PKEY_get0(pkey), arg2); } return -2;