summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-09-24 08:08:54 +0000
committertb <>2023-09-24 08:08:54 +0000
commit3ea71d1778f511b776dc81cb998189a896bda759 (patch)
tree7a3e470cc8f2c3a58a1f8cea9707b4580357e731 /src
parent4111be207f8fb552e058c9b65c82d9721cc1aebf (diff)
downloadopenbsd-3ea71d1778f511b776dc81cb998189a896bda759.tar.gz
openbsd-3ea71d1778f511b776dc81cb998189a896bda759.tar.bz2
openbsd-3ea71d1778f511b776dc81cb998189a896bda759.zip
Break two ridiculously long lines in ec_pub_cmp() and ec_cmp_parameters()
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/ec/ec_ameth.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c
index 258daec127..324865870c 100644
--- a/src/lib/libcrypto/ec/ec_ameth.c
+++ b/src/lib/libcrypto/ec/ec_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_ameth.c,v 1.44 2023/09/24 07:58:31 tb Exp $ */ 1/* $OpenBSD: ec_ameth.c,v 1.45 2023/09/24 08:08:54 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -288,9 +288,10 @@ eckey_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
288static int 288static int
289eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b) 289eckey_pub_cmp(const EVP_PKEY *a, const EVP_PKEY *b)
290{ 290{
291 int r;
292 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); 291 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec);
293 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), *pb = EC_KEY_get0_public_key(b->pkey.ec); 292 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec);
293 const EC_POINT *pb = EC_KEY_get0_public_key(b->pkey.ec);
294 int r;
294 295
295 r = EC_POINT_cmp(group, pa, pb, NULL); 296 r = EC_POINT_cmp(group, pa, pb, NULL);
296 if (r == 0) 297 if (r == 0)
@@ -464,7 +465,9 @@ ec_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from)
464static int 465static int
465ec_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b) 466ec_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b)
466{ 467{
467 const EC_GROUP *group_a = EC_KEY_get0_group(a->pkey.ec), *group_b = EC_KEY_get0_group(b->pkey.ec); 468 const EC_GROUP *group_a = EC_KEY_get0_group(a->pkey.ec);
469 const EC_GROUP *group_b = EC_KEY_get0_group(b->pkey.ec);
470
468 if (EC_GROUP_cmp(group_a, group_b, NULL)) 471 if (EC_GROUP_cmp(group_a, group_b, NULL))
469 return 0; 472 return 0;
470 else 473 else