diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-11-29 21:35:58 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-11-29 21:35:58 +0000 |
commit | 2a0e220756a798722c4877eec06d9125bf690f66 (patch) | |
tree | 8c577d35c499866bd87d4cec68e424ee6ec0a3b7 /lib/libcrypto/dh | |
parent | e9b408fea717e762b3db9ceff32bd71f1ddc75b2 (diff) |
Ignore ENGINE at the API boundary
This removes the remaining ENGINE members from various internal structs
and functions. Any ENGINE passed into a public API is now completely
ignored functions returning an ENGINE always return NULL.
ok jsing
Diffstat (limited to 'lib/libcrypto/dh')
-rw-r--r-- | lib/libcrypto/dh/dh_lib.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/dh/dh_local.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcrypto/dh/dh_lib.c b/lib/libcrypto/dh/dh_lib.c index 90ce7625c61..d8698859f0f 100644 --- a/lib/libcrypto/dh/dh_lib.c +++ b/lib/libcrypto/dh/dh_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_lib.c,v 1.42 2023/11/19 15:46:09 tb Exp $ */ +/* $OpenBSD: dh_lib.c,v 1.43 2023/11/29 21:35:57 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -230,7 +230,7 @@ LCRYPTO_ALIAS(DH_security_bits); ENGINE * DH_get0_engine(DH *dh) { - return dh->engine; + return NULL; } LCRYPTO_ALIAS(DH_get0_engine); diff --git a/lib/libcrypto/dh/dh_local.h b/lib/libcrypto/dh/dh_local.h index 928f2c0c8bc..22e2256906f 100644 --- a/lib/libcrypto/dh/dh_local.h +++ b/lib/libcrypto/dh/dh_local.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_local.h,v 1.3 2022/01/14 08:25:44 tb Exp $ */ +/* $OpenBSD: dh_local.h,v 1.4 2023/11/29 21:35:57 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -100,7 +100,6 @@ struct dh_st { int references; CRYPTO_EX_DATA ex_data; const DH_METHOD *meth; - ENGINE *engine; }; /* |