diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-09-19 09:09:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-09-19 09:09:43 +0200 |
commit | 29e80af525774c861383a03010956151b2ba8d1c (patch) | |
tree | c083edd2e68a71b49831197624fb9e75540a5a94 | |
parent | 048f53e009bbfbf49a876881f203e5e3b4cf011d (diff) | |
download | gnutls-29e80af525774c861383a03010956151b2ba8d1c.tar.gz |
Corrected bug in wrap_nettle_pk_fixup that was importing DSA keys are RSA ones.
-rw-r--r-- | lib/nettle/pk.c | 2 |
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 |