diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-09-11 18:16:23 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-09-11 18:16:23 +0100 |
commit | 8cf2782399c449ecf91f2d292f483e7999a40f6d (patch) | |
tree | 08d3df13eb0b7bf8813440375e989da23a121cf7 /crypto/srp | |
parent | df2ee0e27d2db02660c1d15fe6a3e38be9df0a60 (diff) | |
download | openssl-8cf2782399c449ecf91f2d292f483e7999a40f6d.tar.gz |
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.c | 12 |
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 |