Create ecp_group_copy() and use it
diff --git a/programs/pkey/ecdsa.c b/programs/pkey/ecdsa.c
index 06f1123..94e00df 100644
--- a/programs/pkey/ecdsa.c
+++ b/programs/pkey/ecdsa.c
@@ -152,9 +152,9 @@
printf( " . Preparing verification context..." );
fflush( stdout );
- if( ( ret = ecp_use_known_dp( &ctx_verify.grp, ctx_sign.grp.id ) ) != 0 )
+ if( ( ret = ecp_group_copy( &ctx_verify.grp, &ctx_sign.grp ) ) != 0 )
{
- printf( " failed\n ! ecp_use_known_dp returned %d\n", ret );
+ printf( " failed\n ! ecp_group_copy returned %d\n", ret );
goto exit;
}