diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/dh/dh_check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_check.c b/src/lib/libcrypto/dh/dh_check.c index f3d89f620a..be79c2a04b 100644 --- a/src/lib/libcrypto/dh/dh_check.c +++ b/src/lib/libcrypto/dh/dh_check.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_check.c,v 1.27 2023/07/08 15:29:03 beck Exp $ */ | 1 | /* $OpenBSD: dh_check.c,v 1.28 2023/07/24 16:25:02 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -289,7 +289,7 @@ DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *flags) | |||
289 | if (!BN_mod_exp_ct(residue, pub_key, dh->q, dh->p, ctx)) | 289 | if (!BN_mod_exp_ct(residue, pub_key, dh->q, dh->p, ctx)) |
290 | goto err; | 290 | goto err; |
291 | if (!BN_is_one(residue)) | 291 | if (!BN_is_one(residue)) |
292 | *flags = DH_CHECK_PUBKEY_INVALID; | 292 | *flags |= DH_CHECK_PUBKEY_INVALID; |
293 | } | 293 | } |
294 | 294 | ||
295 | ok = 1; | 295 | ok = 1; |