summaryrefslogtreecommitdiffstats
path: root/ssl/t1_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-02-13 15:27:43 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-02-16 14:01:40 +0000
commit2dc1aeed3b56b29be3a177411c698d06052a1603 (patch)
tree1e9d17371eb2f3a78be18f48d83851508b4bc061 /ssl/t1_lib.c
parentb0c93ee7477ce17d784bcfc71790c4051ae01778 (diff)
Add explanation and warning to TLS id table.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r--ssl/t1_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index 522f0e68b1..7aa4350331 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -224,6 +224,12 @@ typedef struct {
# define TLS_CURVE_CHAR2 0x1
# define TLS_CURVE_PRIME 0x0
+/*
+ * Table of curve information.
+ * NB: do not delete entries or reorder this array. It is used as a lookup
+ * table: the index of each entry is one less than the TLS curve id.
+ */
+
static const tls_curve_info nid_list[] = {
{NID_sect163k1, 80, TLS_CURVE_CHAR2}, /* sect163k1 (1) */
{NID_sect163r1, 80, TLS_CURVE_CHAR2}, /* sect163r1 (2) */