]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fix DEBUG_SIGN
authorVitaly Chikunov <vt@altlinux.org>
Mon, 21 Jan 2019 08:52:10 +0000 (11:52 +0300)
committerVitaly Chikunov <vt@altlinux.org>
Mon, 21 Jan 2019 08:55:17 +0000 (11:55 +0300)
gost_pmeth.c

index 2f3d7119b7b6e19c12a194021822ceed5039b691..b2e0a4956a545a79a3f0df031017c7c68d3cb724 100644 (file)
@@ -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)