summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-11-19 10:34:26 +0000
committertb <>2023-11-19 10:34:26 +0000
commit804762513590f41c1b78252a3d44d2c96c3d6139 (patch)
tree7a34bef980cdb1f9a5e800f701b9b97f4f898d1b
parent2aba2de85ea3ecc7ae8e26b3e1358efdae4d9935 (diff)
downloadopenbsd-804762513590f41c1b78252a3d44d2c96c3d6139.tar.gz
openbsd-804762513590f41c1b78252a3d44d2c96c3d6139.tar.bz2
openbsd-804762513590f41c1b78252a3d44d2c96c3d6139.zip
Strip mention of ENGINE out of *_set_method.3
-rw-r--r--src/lib/libcrypto/man/DH_set_method.340
-rw-r--r--src/lib/libcrypto/man/DSA_set_method.340
-rw-r--r--src/lib/libcrypto/man/RSA_set_method.344
3 files changed, 26 insertions, 98 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 ,
diff --git a/src/lib/libcrypto/man/DSA_set_method.3 b/src/lib/libcrypto/man/DSA_set_method.3
index 31ded16d8c..ec6d2b4cd9 100644
--- a/src/lib/libcrypto/man/DSA_set_method.3
+++ b/src/lib/libcrypto/man/DSA_set_method.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: DSA_set_method.3,v 1.10 2022/01/15 23:38:50 jsg Exp $ 1.\" $OpenBSD: DSA_set_method.3,v 1.11 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 DSA_SET_METHOD 3 52.Dt DSA_SET_METHOD 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
@@ -93,16 +93,9 @@ selects
93as the default method for all 93as the default method for all
94.Vt DSA 94.Vt DSA
95structures created later. 95structures created later.
96If any
97.Vt ENGINE
98was registered with
99.Xr ENGINE_register_DSA 3
100that can be successfully initialized, it overrides the default.
101.Pp 96.Pp
102.Fn DSA_get_default_method 97.Fn DSA_get_default_method
103returns a pointer to the current default method, 98returns a pointer to the current default method.
104even if it is actually overridden by an
105.Vt ENGINE .
106.Pp 99.Pp
107.Fn DSA_set_method 100.Fn DSA_set_method
108selects 101selects
@@ -111,15 +104,10 @@ to perform all operations using the key
111.Fa dsa . 104.Fa dsa .
112This replaces the 105This replaces the
113.Vt DSA_METHOD 106.Vt DSA_METHOD
114used by the DSA key and if the previous method was supplied by an 107used by the DSA key.
115.Vt ENGINE ,
116.Xr ENGINE_finish 3
117is called on it.
118It is possible to have DSA keys that only work with certain 108It is possible to have DSA keys that only work with certain
119.Vt DSA_METHOD 109.Vt DSA_METHOD
120implementations (e.g. from an 110implementations,
121.Vt ENGINE
122module that supports embedded hardware-protected keys),
123and in such cases attempting to change the 111and in such cases attempting to change the
124.Vt DSA_METHOD 112.Vt DSA_METHOD
125for the key can have unexpected results. 113for the key can have unexpected results.
@@ -127,17 +115,10 @@ for the key can have unexpected results.
127.Fn DSA_new_method 115.Fn DSA_new_method
128allocates and initializes a 116allocates and initializes a
129.Vt DSA 117.Vt DSA
130structure so that 118structure.
131.Fa engine 119The
132is used for the DSA operations.
133If
134.Fa engine 120.Fa engine
135is 121argument is ignored and
136.Dv NULL ,
137.Xr ENGINE_get_default_DSA 3
138is used.
139If that returns
140.Dv NULL ,
141the default method controlled by 122the default method controlled by
142.Fn DSA_set_default_method 123.Fn DSA_set_default_method
143is used. 124is used.
@@ -206,10 +187,7 @@ if the allocation fails.
206Otherwise it returns a pointer to the newly allocated structure. 187Otherwise it returns a pointer to the newly allocated structure.
207.Sh SEE ALSO 188.Sh SEE ALSO
208.Xr DSA_meth_new 3 , 189.Xr DSA_meth_new 3 ,
209.Xr DSA_new 3 , 190.Xr DSA_new 3
210.Xr ENGINE_get_default_DSA 3 ,
211.Xr ENGINE_register_DSA 3 ,
212.Xr ENGINE_set_default_DSA 3
213.Sh HISTORY 191.Sh HISTORY
214.Fn DSA_set_default_method , 192.Fn DSA_set_default_method ,
215.Fn DSA_get_default_method , 193.Fn DSA_get_default_method ,
diff --git a/src/lib/libcrypto/man/RSA_set_method.3 b/src/lib/libcrypto/man/RSA_set_method.3
index 818b64823d..ffe22c116f 100644
--- a/src/lib/libcrypto/man/RSA_set_method.3
+++ b/src/lib/libcrypto/man/RSA_set_method.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: RSA_set_method.3,v 1.17 2023/05/14 09:33:19 tb Exp $ 1.\" $OpenBSD: RSA_set_method.3,v 1.18 2023/11/19 10:34:26 tb Exp $
2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400 2.\" OpenSSL 99d63d46 Oct 26 13:56:48 2016 -0400
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org> 4.\" This file was written by Ulf Moeller <ulf@openssl.org>
@@ -50,7 +50,7 @@
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE. 51.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\" 52.\"
53.Dd $Mdocdate: May 14 2023 $ 53.Dd $Mdocdate: November 19 2023 $
54.Dt RSA_SET_METHOD 3 54.Dt RSA_SET_METHOD 3
55.Os 55.Os
56.Sh NAME 56.Sh NAME
@@ -105,16 +105,9 @@ selects
105as the default method for all 105as the default method for all
106.Vt RSA 106.Vt RSA
107structures created later. 107structures created later.
108If any
109.Vt ENGINE
110was registered with
111.Xr ENGINE_register_RSA 3
112that can be successfully initialized, it overrides the default.
113.Pp 108.Pp
114.Fn RSA_get_default_method 109.Fn RSA_get_default_method
115returns a pointer to the current default method, 110returns a pointer to the current default method.
116even if it is actually overridden by an
117.Vt ENGINE .
118.Pp 111.Pp
119.Fn RSA_set_method 112.Fn RSA_set_method
120selects 113selects
@@ -127,10 +120,7 @@ used by the RSA key, calling the
127.Fa finish 120.Fa finish
128function set up with 121function set up with
129.Xr RSA_meth_set_finish 3 122.Xr RSA_meth_set_finish 3
130if any, and if the previous method was supplied by an 123if any.
131.Vt ENGINE ,
132.Xr ENGINE_finish 3
133is called on it.
134If 124If
135.Fa meth 125.Fa meth
136contains an 126contains an
@@ -142,9 +132,7 @@ that function is called just before returning from
142.Pp 132.Pp
143It is possible to have RSA keys that only work with certain 133It is possible to have RSA keys that only work with certain
144.Vt RSA_METHOD 134.Vt RSA_METHOD
145implementations (e.g. from an 135implementations,
146.Vt ENGINE
147module that supports embedded hardware-protected keys),
148and in such cases attempting to change the 136and in such cases attempting to change the
149.Vt RSA_METHOD 137.Vt RSA_METHOD
150for the key can have unexpected results. 138for the key can have unexpected results.
@@ -154,12 +142,6 @@ returns a pointer to the
154.Vt RSA_METHOD 142.Vt RSA_METHOD
155being used by 143being used by
156.Fa rsa . 144.Fa rsa .
157This method may or may not be supplied by an
158.Vt ENGINE
159implementation but if it is, the return value can only be guaranteed
160to be valid as long as the RSA key itself is valid and does not
161have its implementation changed by
162.Fn RSA_set_method .
163.Pp 145.Pp
164The misleadingly named function 146The misleadingly named function
165.Fn RSA_flags 147.Fn RSA_flags
@@ -178,17 +160,10 @@ section for more details.
178.Fn RSA_new_method 160.Fn RSA_new_method
179allocates and initializes an 161allocates and initializes an
180.Vt RSA 162.Vt RSA
181structure so that 163structure.
182.Fa engine 164The
183is used for the RSA operations.
184If
185.Fa engine 165.Fa engine
186is 166argument is ignored and
187.Dv NULL ,
188.Xr ENGINE_get_default_RSA 3
189is used.
190If that returns
191.Dv NULL ,
192the default method controlled by 167the default method controlled by
193.Fn RSA_set_default_method 168.Fn RSA_set_default_method
194is used. 169is used.
@@ -224,9 +199,6 @@ and sets an error code that can be obtained by
224if the allocation fails. 199if the allocation fails.
225Otherwise it returns a pointer to the newly allocated structure. 200Otherwise it returns a pointer to the newly allocated structure.
226.Sh SEE ALSO 201.Sh SEE ALSO
227.Xr ENGINE_get_default_RSA 3 ,
228.Xr ENGINE_register_RSA 3 ,
229.Xr ENGINE_set_default_RSA 3 ,
230.Xr RSA_meth_new 3 , 202.Xr RSA_meth_new 3 ,
231.Xr RSA_new 3 203.Xr RSA_new 3
232.Sh HISTORY 204.Sh HISTORY