diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-11-05 21:22:17 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-11-05 21:28:58 +0100 |
commit | 124dfe0de2321a4c4a3383c8866f6a1dbd45d635 (patch) | |
tree | 4dcc5b51189b0311d77fadcac8785562383e6092 /lib/x509/key_decode.c | |
parent | 5b541a346638429712f8a9db8ced61f1b5ffcec4 (diff) | |
download | gnutls-124dfe0de2321a4c4a3383c8866f6a1dbd45d635.tar.gz |
Verify that received ECDH public key lies on the curve.
Diffstat (limited to 'lib/x509/key_decode.c')
-rw-r--r-- | lib/x509/key_decode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/x509/key_decode.c b/lib/x509/key_decode.c index a13a72529e..7d430e81fe 100644 --- a/lib/x509/key_decode.c +++ b/lib/x509/key_decode.c @@ -102,8 +102,8 @@ _gnutls_x509_read_ecc_pubkey (opaque * der, int dersize, gnutls_pk_params_st * p /* Eventhough RFC5480 defines the public key to be an ECPoint (i.e. OCTET STRING), * it is actually copied in raw there. Why do they use ASN.1 anyway? */ - return _gnutls_ecc_ansi_x963_import (der, dersize, ¶ms->params[5], - ¶ms->params[6]); + return _gnutls_ecc_ansi_x963_import (der, dersize, ¶ms->params[6], + ¶ms->params[7]); } |