summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-19 09:09:43 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-19 09:09:43 +0200
commit29e80af525774c861383a03010956151b2ba8d1c (patch)
treec083edd2e68a71b49831197624fb9e75540a5a94
parent048f53e009bbfbf49a876881f203e5e3b4cf011d (diff)
downloadgnutls-29e80af525774c861383a03010956151b2ba8d1c.tar.gz
Corrected bug in wrap_nettle_pk_fixup that was importing DSA keys are RSA ones.
-rw-r--r--lib/nettle/pk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c
index 1596d088e6..56b88677d3 100644
--- a/lib/nettle/pk.c
+++ b/lib/nettle/pk.c
@@ -584,7 +584,7 @@ wrap_nettle_pk_fixup(gnutls_pk_algorithm_t algo,
{
int result;
- if (direction == GNUTLS_IMPORT) {
+ if (direction == GNUTLS_IMPORT && algo == GNUTLS_PK_RSA) {
/* do not trust the generated values. Some old private keys
* generated by us have mess on the values. Those were very
* old but it seemed some of the shipped example private