-.\" $OpenBSD: DH_set_method.3,v 1.8 2022/01/15 23:38:50 jsg Exp $
+.\" $OpenBSD: DH_set_method.3,v 1.9 2023/11/19 10:34:26 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 15 2022 $
+.Dd $Mdocdate: November 19 2023 $
.Dt DH_SET_METHOD 3
.Os
.Sh NAME
as the default method for all
.Vt DH
structures created later.
-If any
-.Vt ENGINE
-was registered with
-.Xr ENGINE_register_DH 3
-that can be successfully initialized, it overrides the default.
.Pp
.Fn DH_get_default_method
-returns a pointer to the current default method,
-even if it is actually overridden by an
-.Vt ENGINE .
+returns a pointer to the current default method.
.Pp
.Fn DH_set_method
selects
.Vt DH_METHOD
used by the
.Fa dh
-key and if the previous method was supplied by an
-.Vt ENGINE ,
-.Xr ENGINE_finish 3
-is called on it.
+key.
It is possible to have
.Vt DH
keys that only work with certain
.Vt DH_METHOD
-implementations (e.g. from an
-.Vt ENGINE
-module that supports embedded hardware-protected keys),
+implementations,
and in such cases attempting to change the
.Vt DH_METHOD
for the key can have unexpected results.
.Fn DH_new_method
allocates and initializes a
.Vt DH
-structure so that
-.Fa engine
-is used for the DH operations.
-If
+structure.
+The
.Fa engine
-is
-.Dv NULL ,
-.Xr ENGINE_get_default_DH 3
-is used.
-If that returns
-.Dv NULL ,
+argument is ignored and
the default method controlled by
.Fn DH_set_default_method
is used.
if the allocation fails.
Otherwise it returns a pointer to the newly allocated structure.
.Sh SEE ALSO
-.Xr DH_new 3 ,
-.Xr ENGINE_get_default_DH 3 ,
-.Xr ENGINE_register_DH 3 ,
-.Xr ENGINE_set_default_DH 3
+.Xr DH_new 3
.Sh HISTORY
.Fn DH_set_default_method ,
.Fn DH_get_default_method ,
-.\" $OpenBSD: DSA_set_method.3,v 1.10 2022/01/15 23:38:50 jsg Exp $
+.\" $OpenBSD: DSA_set_method.3,v 1.11 2023/11/19 10:34:26 tb Exp $
.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>.
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: January 15 2022 $
+.Dd $Mdocdate: November 19 2023 $
.Dt DSA_SET_METHOD 3
.Os
.Sh NAME
as the default method for all
.Vt DSA
structures created later.
-If any
-.Vt ENGINE
-was registered with
-.Xr ENGINE_register_DSA 3
-that can be successfully initialized, it overrides the default.
.Pp
.Fn DSA_get_default_method
-returns a pointer to the current default method,
-even if it is actually overridden by an
-.Vt ENGINE .
+returns a pointer to the current default method.
.Pp
.Fn DSA_set_method
selects
.Fa dsa .
This replaces the
.Vt DSA_METHOD
-used by the DSA key and if the previous method was supplied by an
-.Vt ENGINE ,
-.Xr ENGINE_finish 3
-is called on it.
+used by the DSA key.
It is possible to have DSA keys that only work with certain
.Vt DSA_METHOD
-implementations (e.g. from an
-.Vt ENGINE
-module that supports embedded hardware-protected keys),
+implementations,
and in such cases attempting to change the
.Vt DSA_METHOD
for the key can have unexpected results.
.Fn DSA_new_method
allocates and initializes a
.Vt DSA
-structure so that
-.Fa engine
-is used for the DSA operations.
-If
+structure.
+The
.Fa engine
-is
-.Dv NULL ,
-.Xr ENGINE_get_default_DSA 3
-is used.
-If that returns
-.Dv NULL ,
+argument is ignored and
the default method controlled by
.Fn DSA_set_default_method
is used.
Otherwise it returns a pointer to the newly allocated structure.
.Sh SEE ALSO
.Xr DSA_meth_new 3 ,
-.Xr DSA_new 3 ,
-.Xr ENGINE_get_default_DSA 3 ,
-.Xr ENGINE_register_DSA 3 ,
-.Xr ENGINE_set_default_DSA 3
+.Xr DSA_new 3
.Sh HISTORY
.Fn DSA_set_default_method ,
.Fn DSA_get_default_method ,
-.\" $OpenBSD: RSA_set_method.3,v 1.17 2023/05/14 09:33:19 tb Exp $
+.\" $OpenBSD: RSA_set_method.3,v 1.18 2023/11/19 10:34:26 tb Exp $
.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
.\"
.\" This file was written by Ulf Moeller <ulf@openssl.org>
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
.\" OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 14 2023 $
+.Dd $Mdocdate: November 19 2023 $
.Dt RSA_SET_METHOD 3
.Os
.Sh NAME
as the default method for all
.Vt RSA
structures created later.
-If any
-.Vt ENGINE
-was registered with
-.Xr ENGINE_register_RSA 3
-that can be successfully initialized, it overrides the default.
.Pp
.Fn RSA_get_default_method
-returns a pointer to the current default method,
-even if it is actually overridden by an
-.Vt ENGINE .
+returns a pointer to the current default method.
.Pp
.Fn RSA_set_method
selects
.Fa finish
function set up with
.Xr RSA_meth_set_finish 3
-if any, and if the previous method was supplied by an
-.Vt ENGINE ,
-.Xr ENGINE_finish 3
-is called on it.
+if any.
If
.Fa meth
contains an
.Pp
It is possible to have RSA keys that only work with certain
.Vt RSA_METHOD
-implementations (e.g. from an
-.Vt ENGINE
-module that supports embedded hardware-protected keys),
+implementations,
and in such cases attempting to change the
.Vt RSA_METHOD
for the key can have unexpected results.
.Vt RSA_METHOD
being used by
.Fa rsa .
-This method may or may not be supplied by an
-.Vt ENGINE
-implementation but if it is, the return value can only be guaranteed
-to be valid as long as the RSA key itself is valid and does not
-have its implementation changed by
-.Fn RSA_set_method .
.Pp
The misleadingly named function
.Fn RSA_flags
.Fn RSA_new_method
allocates and initializes an
.Vt RSA
-structure so that
-.Fa engine
-is used for the RSA operations.
-If
+structure.
+The
.Fa engine
-is
-.Dv NULL ,
-.Xr ENGINE_get_default_RSA 3
-is used.
-If that returns
-.Dv NULL ,
+argument is ignored and
the default method controlled by
.Fn RSA_set_default_method
is used.
if the allocation fails.
Otherwise it returns a pointer to the newly allocated structure.
.Sh SEE ALSO
-.Xr ENGINE_get_default_RSA 3 ,
-.Xr ENGINE_register_RSA 3 ,
-.Xr ENGINE_set_default_RSA 3 ,
.Xr RSA_meth_new 3 ,
.Xr RSA_new 3
.Sh HISTORY