summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DH_set_method.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/DH_set_method.340
1 files changed, 9 insertions, 31 deletions
diff --git a/src/lib/libcrypto/man/DH_set_method.3 b/src/lib/libcrypto/man/DH_set_method.3
index e89fdc64a5..70cf367c9d 100644
--- a/src/lib/libcrypto/man/DH_set_method.3
+++ b/src/lib/libcrypto/man/DH_set_method.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: DH_set_method.3,v 1.8 2022/01/15 23:38:50 jsg Exp $ 1.\" $OpenBSD: DH_set_method.3,v 1.9 2023/11/19 10:34:26 tb Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org>. 4.\" This file was written by Ulf Moeller <ulf@openssl.org>.
@@ -48,7 +48,7 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: January 15 2022 $ 51.Dd $Mdocdate: November 19 2023 $
52.Dt DH_SET_METHOD 3 52.Dt DH_SET_METHOD 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -98,16 +98,9 @@ selects
98as the default method for all 98as the default method for all
99.Vt DH 99.Vt DH
100structures created later. 100structures created later.
101If any
102.Vt ENGINE
103was registered with
104.Xr ENGINE_register_DH 3
105that can be successfully initialized, it overrides the default.
106.Pp 101.Pp
107.Fn DH_get_default_method 102.Fn DH_get_default_method
108returns a pointer to the current default method, 103returns a pointer to the current default method.
109even if it is actually overridden by an
110.Vt ENGINE .
111.Pp 104.Pp
112.Fn DH_set_method 105.Fn DH_set_method
113selects 106selects
@@ -118,17 +111,12 @@ This replaces the
118.Vt DH_METHOD 111.Vt DH_METHOD
119used by the 112used by the
120.Fa dh 113.Fa dh
121key and if the previous method was supplied by an 114key.
122.Vt ENGINE ,
123.Xr ENGINE_finish 3
124is called on it.
125It is possible to have 115It is possible to have
126.Vt DH 116.Vt DH
127keys that only work with certain 117keys that only work with certain
128.Vt DH_METHOD 118.Vt DH_METHOD
129implementations (e.g. from an 119implementations,
130.Vt ENGINE
131module that supports embedded hardware-protected keys),
132and in such cases attempting to change the 120and in such cases attempting to change the
133.Vt DH_METHOD 121.Vt DH_METHOD
134for the key can have unexpected results. 122for the key can have unexpected results.
@@ -136,17 +124,10 @@ for the key can have unexpected results.
136.Fn DH_new_method 124.Fn DH_new_method
137allocates and initializes a 125allocates and initializes a
138.Vt DH 126.Vt DH
139structure so that 127structure.
140.Fa engine 128The
141is used for the DH operations.
142If
143.Fa engine 129.Fa engine
144is 130argument is ignored and
145.Dv NULL ,
146.Xr ENGINE_get_default_DH 3
147is used.
148If that returns
149.Dv NULL ,
150the default method controlled by 131the default method controlled by
151.Fn DH_set_default_method 132.Fn DH_set_default_method
152is used. 133is used.
@@ -202,10 +183,7 @@ and sets an error code that can be obtained by
202if the allocation fails. 183if the allocation fails.
203Otherwise it returns a pointer to the newly allocated structure. 184Otherwise it returns a pointer to the newly allocated structure.
204.Sh SEE ALSO 185.Sh SEE ALSO
205.Xr DH_new 3 , 186.Xr DH_new 3
206.Xr ENGINE_get_default_DH 3 ,
207.Xr ENGINE_register_DH 3 ,
208.Xr ENGINE_set_default_DH 3
209.Sh HISTORY 187.Sh HISTORY
210.Fn DH_set_default_method , 188.Fn DH_set_default_method ,
211.Fn DH_get_default_method , 189.Fn DH_get_default_method ,