summaryrefslogtreecommitdiff
path: root/lib/x509
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2015-01-17 09:01:37 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2015-01-17 09:01:37 +0100
commit8c95f64d37305cede00de782d8136a0b106048b2 (patch)
tree4792a0357d38624a2d522c3da68441a2a4264752 /lib/x509
parenta83ad32e33edd127df7c13149388c836482eb3dd (diff)
downloadgnutls-8c95f64d37305cede00de782d8136a0b106048b2.tar.gz
doc update
Diffstat (limited to 'lib/x509')
-rw-r--r--lib/x509/key_decode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/x509/key_decode.c b/lib/x509/key_decode.c
index 89ca157ed2..a5bae51c0e 100644
--- a/lib/x509/key_decode.c
+++ b/lib/x509/key_decode.c
@@ -101,9 +101,9 @@ int
_gnutls_x509_read_ecc_pubkey(uint8_t * der, int dersize,
gnutls_pk_params_st * params)
{
-/* 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?
- */
+ /* RFC5480 defines the public key to be an ECPoint (i.e. OCTET STRING),
+ * Then it says that the OCTET STRING _value_ is converted to BIT STRING.
+ * That means that the value we place there is the raw X9.62 one. */
return _gnutls_ecc_ansi_x963_import(der, dersize,
&params->params[ECC_X],
&params->params[ECC_Y]);