diff options
-rw-r--r-- | lib/x509/privkey.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c index dc558b6383..c2f25630fb 100644 --- a/lib/x509/privkey.c +++ b/lib/x509/privkey.c @@ -524,7 +524,12 @@ gnutls_x509_privkey_import (gnutls_x509_privkey_t key, key->pk_algorithm = GNUTLS_PK_DSA; key->key = decode_dsa_key (&_data, key); if (key->key == NULL) - gnutls_assert (); + { + key->pk_algorithm = GNUTLS_PK_EC; + key->key = _gnutls_privkey_decode_ecc_key (&_data, key); + if (key->key == NULL) + gnutls_assert (); + } } } |