diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh_lib.c')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_lib.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dh/dh_lib.c b/src/lib/libcrypto/dh/dh_lib.c index bb2ca426a0..e5e8b9146b 100644 --- a/src/lib/libcrypto/dh/dh_lib.c +++ b/src/lib/libcrypto/dh/dh_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: dh_lib.c,v 1.25 2018/02/18 14:58:12 tb Exp $ */ | 1 | /* $OpenBSD: dh_lib.c,v 1.26 2018/02/20 17:38:15 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 | * |
| @@ -300,3 +300,21 @@ DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key) | |||
| 300 | 300 | ||
| 301 | return 1; | 301 | return 1; |
| 302 | } | 302 | } |
| 303 | |||
| 304 | void | ||
| 305 | DH_clear_flags(DH *dh, int flags) | ||
| 306 | { | ||
| 307 | dh->flags &= ~flags; | ||
| 308 | } | ||
| 309 | |||
| 310 | int | ||
| 311 | DH_test_flags(const DH *dh, int flags) | ||
| 312 | { | ||
| 313 | return dh->flags & flags; | ||
| 314 | } | ||
| 315 | |||
| 316 | void | ||
| 317 | DH_set_flags(DH *dh, int flags) | ||
| 318 | { | ||
| 319 | dh->flags |= flags; | ||
| 320 | } | ||
