From: Vitaly Chikunov Date: Mon, 21 Jan 2019 08:52:10 +0000 (+0300) Subject: Fix DEBUG_SIGN X-Git-Tag: v3.0.0~314^2~5 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=c4bf9b2c07700d305524cf3c5d412ba58e609158;p=openssl-gost%2Fengine.git Fix DEBUG_SIGN --- diff --git a/gost_pmeth.c b/gost_pmeth.c index 2f3d711..b2e0a49 100644 --- a/gost_pmeth.c +++ b/gost_pmeth.c @@ -448,9 +448,9 @@ static int pkey_gost_ec_cp_verify(EVP_PKEY_CTX *ctx, const unsigned char *sig, return 0; #ifdef DEBUG_SIGN fprintf(stderr, "R="); - BN_print_fp(stderr, s->r); + BN_print_fp(stderr, ECDSA_SIG_get0_r(s)); fprintf(stderr, "\nS="); - BN_print_fp(stderr, s->s); + BN_print_fp(stderr, ECDSA_SIG_get0_s(s)); fprintf(stderr, "\n"); #endif if (pub_key)