diff options
author | Adam Langley <agl@google.com> | 2015-02-25 11:16:32 -0800 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-25 13:17:00 -0800 |
commit | ef935713a3ff3d53600ea7e012f892ed4ecf59c6 (patch) | |
tree | 55d03f702a6acade5b8eaf1dd8b937226156d0d5 /src/include/openssl/ec.h | |
parent | 4c6611d7a1dded159380928705db0a5dfbb2a3e3 (diff) | |
download | external_boringssl-ef935713a3ff3d53600ea7e012f892ed4ecf59c6.zip external_boringssl-ef935713a3ff3d53600ea7e012f892ed4ecf59c6.tar.gz external_boringssl-ef935713a3ff3d53600ea7e012f892ed4ecf59c6.tar.bz2 |
EC_GROUP_cmp should return zero if the groups match.
(I got this wrong when reading the OpenSSL code.)
(Cherry-picked form upstream BoringSSL's
7c21925a10d451ed13ab201e0161dea40b974397)
Change-Id: Icedaa45c9d17e7c2b95fa5be1f7c0bf41cac0880
Diffstat (limited to 'src/include/openssl/ec.h')
-rw-r--r-- | src/include/openssl/ec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/openssl/ec.h b/src/include/openssl/ec.h index f915635..eb9a153 100644 --- a/src/include/openssl/ec.h +++ b/src/include/openssl/ec.h @@ -115,7 +115,7 @@ OPENSSL_EXPORT int EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src); * error. */ OPENSSL_EXPORT EC_GROUP *EC_GROUP_dup(const EC_GROUP *a); -/* EC_GROUP_cmp returns one if |a| and |b| are the same group and zero +/* EC_GROUP_cmp returns zero if |a| and |b| are the same group and non-zero * otherwise. */ OPENSSL_EXPORT int EC_GROUP_cmp(const EC_GROUP *a, const EC_GROUP *b, BN_CTX *ignored); |