summaryrefslogtreecommitdiff
path: root/lib/x509/key_decode.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-11-10 22:13:12 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-11-10 22:13:41 +0100
commit8b5b5f8c07a735e160efd2fa619f2d5b2ee7ea6b (patch)
tree6796eb8a50ab9f8e877c6e8e185f1fec7dd22ca1 /lib/x509/key_decode.c
parent2c4c2351f7c39ee61b3e4eebdb848db9445a6e38 (diff)
downloadgnutls-8b5b5f8c07a735e160efd2fa619f2d5b2ee7ea6b.tar.gz
Corrected ECC key generation.
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 7d430e81fe..8383a941c3 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[6],
- &params->params[7]);
+ return _gnutls_ecc_ansi_x963_import (der, dersize, &params->params[ECC_X],
+ &params->params[ECC_Y]);
}