summaryrefslogtreecommitdiffstats
path: root/ssl/t1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-09-24 01:46:36 +0100
committerDr. Stephen Henson <steve@openssl.org>2017-09-26 13:00:26 +0100
commit1483b8582ce2c77717dea5c369efe56c93cef998 (patch)
tree026480aa924ab51b66d616c5ea850d22ef7fcae8 /ssl/t1_lib.c
parent4881d849da23528e19b7312f963d28916d9804b1 (diff)
Return correct Suite B curve, fix comment.
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/=4412)
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r--ssl/t1_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 67b06f261a..994ae85247 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -218,7 +218,7 @@ uint16_t tls1_ec_nid2curve_id(int nid)
* Get curves list, if "sess" is set return client curves otherwise
* preferred list.
* Sets |num_curves| to the number of curves in the list, i.e.,
- * the length of |pcurves| is 2 * num_curves.
+ * the length of |pcurves| is num_curves.
* Returns 1 on success and 0 if the client curves list has invalid format.
* The latter indicates an internal error: we should not be accepting such
* lists in the first place.
@@ -245,7 +245,7 @@ int tls1_get_curvelist(SSL *s, int sess, const uint16_t **pcurves,
break;
case SSL_CERT_FLAG_SUITEB_192_LOS:
- *pcurves = suiteb_curves + 2;
+ *pcurves = suiteb_curves + 1;
pcurveslen = 1;
break;
default: