summaryrefslogtreecommitdiffstats
path: root/crypto/srp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-09-11 19:16:23 +0200
committerDr. Stephen Henson <steve@openssl.org>2015-09-11 19:16:23 +0200
commit8cf2782399c449ecf91f2d292f483e7999a40f6d (patch)
tree08d3df13eb0b7bf8813440375e989da23a121cf7 /crypto/srp
parentEnable -Wmissing-variable-declarations and (diff)
downloadopenssl-8cf2782399c449ecf91f2d292f483e7999a40f6d.tar.xz
openssl-8cf2782399c449ecf91f2d292f483e7999a40f6d.zip
Fix "defined but not used" warnings.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/srp')
-rw-r--r--crypto/srp/srp_lib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/srp/srp_lib.c b/crypto/srp/srp_lib.c
index 893047349a..850ec2ce64 100644
--- a/crypto/srp/srp_lib.c
+++ b/crypto/srp/srp_lib.c
@@ -306,6 +306,18 @@ int SRP_Verify_A_mod_N(BIGNUM *A, BIGNUM *N)
return SRP_Verify_B_mod_N(A, N);
}
+static SRP_gN knowngN[] = {
+ {"8192", (BIGNUM *)&bn_generator_19, (BIGNUM *)&bn_group_8192},
+ {"6144", (BIGNUM *)&bn_generator_5, (BIGNUM *)&bn_group_6144},
+ {"4096", (BIGNUM *)&bn_generator_5, (BIGNUM *)&bn_group_4096},
+ {"3072", (BIGNUM *)&bn_generator_5, (BIGNUM *)&bn_group_3072},
+ {"2048", (BIGNUM *)&bn_generator_2, (BIGNUM *)&bn_group_2048},
+ {"1536", (BIGNUM *)&bn_generator_2, (BIGNUM *)&bn_group_1536},
+ {"1024", (BIGNUM *)&bn_generator_2, (BIGNUM *)&bn_group_1024},
+};
+
+# define KNOWN_GN_NUMBER sizeof(knowngN) / sizeof(SRP_gN)
+
/*
* Check if G and N are kwown parameters. The values have been generated
* from the ietf-tls-srp draft version 8