]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
corrected usage of privkey
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 27 Jan 2014 12:09:32 +0000 (13:09 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 27 Jan 2014 12:09:32 +0000 (13:09 +0100)
lib/nettle/pk.c

index ef01d5fcc44a560d941008bdeb71c323a05f8c1e..ed0960f4c1f87cbebef8480c341b7794a3b1ac39 100644 (file)
@@ -928,7 +928,7 @@ wrap_nettle_pk_generate_keys(gnutls_pk_algorithm_t algo,
                        }
 
                        mpz_set(TOMPZ(params->params[DSA_Y]), pub.y);
-                       mpz_set(TOMPZ(params->params[DSA_X]), pub.x);
+                       mpz_set(TOMPZ(params->params[DSA_X]), priv.x);
                        params->params_nr += 2;
 
                      dsa_fail: