Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2015-10-09 06:10:15 +0300
committerAdam Langley <alangley@gmail.com>2015-10-27 19:48:04 +0300
commit274341dd6e61b11c2b3f1dd208a28c83a2315914 (patch)
tree38276bc828fbce60f8373b88e0cf715a2d8bec4c /include/openssl/ec.h
parente93ffa5da79cdc4b6a1f4ea6320464b406126e87 (diff)
Change the type of |EC_GROUP_get_degree| and friends to |unsigned|.
These functions ultimately return the result of |BN_num_bits|, and that function's return type is |unsigned|. Thus, these functions' return type should also be |unsigned|. Change-Id: I2cef63e6f75425857bac71f7c5517ef22ab2296b Reviewed-on: https://boringssl-review.googlesource.com/6170 Reviewed-by: Adam Langley <alangley@gmail.com>
Diffstat (limited to 'include/openssl/ec.h')
-rw-r--r--include/openssl/ec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openssl/ec.h b/include/openssl/ec.h
index b6326461..fe1c89e3 100644
--- a/include/openssl/ec.h
+++ b/include/openssl/ec.h
@@ -144,7 +144,7 @@ OPENSSL_EXPORT int EC_GROUP_get_curve_name(const EC_GROUP *group);
/* EC_GROUP_get_degree returns the number of bits needed to represent an
* element of the field underlying |group|. */
-OPENSSL_EXPORT int EC_GROUP_get_degree(const EC_GROUP *group);
+OPENSSL_EXPORT unsigned EC_GROUP_get_degree(const EC_GROUP *group);
/* EC_GROUP_precompute_mult precomputes multiplies of the generator in order to
* speed up operations that involve calculating generator multiples. It returns