summaryrefslogtreecommitdiff
path: root/lib/x509/key_decode.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-11-05 21:22:17 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-11-05 21:28:58 +0100
commit124dfe0de2321a4c4a3383c8866f6a1dbd45d635 (patch)
tree4dcc5b51189b0311d77fadcac8785562383e6092 /lib/x509/key_decode.c
parent5b541a346638429712f8a9db8ced61f1b5ffcec4 (diff)
downloadgnutls-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.c4
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, &params->params[5],
- &params->params[6]);
+ return _gnutls_ecc_ansi_x963_import (der, dersize, &params->params[6],
+ &params->params[7]);
}