summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-07-02 18:14:44 +0200
committerSimon Josefsson <simon@josefsson.org>2008-07-02 18:14:44 +0200
commitb32735e1e275c4a2dbf544c04cdf344181fea555 (patch)
treed8a4cabb8d3c112b563a2a0226e0d9b7064784a8
parentbe732b5c57fb8477b0795f4f32d566108ad98af1 (diff)
downloadgnutls-b32735e1e275c4a2dbf544c04cdf344181fea555.tar.gz
Fix typo that swapped prime/generator in gnutls_dh_params_generate2.
-rw-r--r--lib/gnutls_dh_primes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_dh_primes.c b/lib/gnutls_dh_primes.c
index 524e48245d..e7a0b9aea2 100644
--- a/lib/gnutls_dh_primes.c
+++ b/lib/gnutls_dh_primes.c
@@ -191,8 +191,8 @@ gnutls_dh_params_generate2 (gnutls_dh_params_t params, unsigned int bits)
return ret;
}
- params->params[0] = group.g;
- params->params[1] = group.p;
+ params->params[0] = group.p;
+ params->params[1] = group.g;
return 0;
}