From: Victor Wagner Date: Mon, 5 Oct 2015 19:32:38 +0000 (+0300) Subject: Make possible build with version of OpenSSL which doesn't support EVP_PKEY_CTRL_GET_MD X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=98b01a8e3471ccf9ef476a8e5ca426276438ce28;p=openssl-gost%2Fengine.git Make possible build with version of OpenSSL which doesn't support EVP_PKEY_CTRL_GET_MD --- diff --git a/gost_pmeth.c b/gost_pmeth.c index 166cf85..789eeea 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -118,11 +118,11 @@ static int pkey_gost_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) GOSTerr(GOST_F_PKEY_GOST_CTRL, GOST_R_INVALID_DIGEST_TYPE); return 0; } - +#ifdef EVP_PKEY_CTRL_GET_MD case EVP_PKEY_CTRL_GET_MD: *(const EVP_MD **)p2 = pctx->md; return 1; - +#endif case EVP_PKEY_CTRL_PKCS7_ENCRYPT: case EVP_PKEY_CTRL_PKCS7_DECRYPT: case EVP_PKEY_CTRL_PKCS7_SIGN: @@ -499,11 +499,11 @@ static int pkey_gost_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) data->md = (EVP_MD *)p2; return 1; } - +#ifdef EVP_PKEY_CTRL_GET_MD case EVP_PKEY_CTRL_GET_MD: *(const EVP_MD **)p2 = data->md; return 1; - +#endif case EVP_PKEY_CTRL_PKCS7_ENCRYPT: case EVP_PKEY_CTRL_PKCS7_DECRYPT: case EVP_PKEY_CTRL_PKCS7_SIGN: