summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-08-24 09:15:36 +0000
committertb <>2024-08-24 09:15:36 +0000
commit7df7c98971c1d8304287e3618a0cd1b8af98b72c (patch)
treef59196feed2331821cf6b8ef465367689d9617cc /src
parent908a656e5f469976c815f23e78bb289f4f4272fb (diff)
downloadopenbsd-7df7c98971c1d8304287e3618a0cd1b8af98b72c.tar.gz
openbsd-7df7c98971c1d8304287e3618a0cd1b8af98b72c.tar.bz2
openbsd-7df7c98971c1d8304287e3618a0cd1b8af98b72c.zip
LibreSSL no longer supports adding X.501 attributes to an EVP_PKEY
Remove the corresponding documentation.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_add1_attr.3188
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_new.35
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/X509_ATTRIBUTE_new.35
-rw-r--r--src/lib/libcrypto/man/X509at_add1_attr.35
-rw-r--r--src/lib/libcrypto/man/X509at_get_attr.36
-rw-r--r--src/lib/libcrypto/man/evp.35
7 files changed, 11 insertions, 206 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_add1_attr.3 b/src/lib/libcrypto/man/EVP_PKEY_add1_attr.3
deleted file mode 100644
index ae910b167a..0000000000
--- a/src/lib/libcrypto/man/EVP_PKEY_add1_attr.3
+++ /dev/null
@@ -1,188 +0,0 @@
1.\" $OpenBSD: EVP_PKEY_add1_attr.3,v 1.3 2021/10/26 18:50:38 jmc Exp $
2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: October 26 2021 $
18.Dt EVP_PKEY_ADD1_ATTR 3
19.Os
20.Sh NAME
21.Nm EVP_PKEY_add1_attr ,
22.Nm EVP_PKEY_add1_attr_by_OBJ ,
23.Nm EVP_PKEY_add1_attr_by_NID ,
24.Nm EVP_PKEY_add1_attr_by_txt ,
25.Nm EVP_PKEY_delete_attr ,
26.Nm EVP_PKEY_get_attr ,
27.Nm EVP_PKEY_get_attr_count ,
28.Nm EVP_PKEY_get_attr_by_OBJ ,
29.Nm EVP_PKEY_get_attr_by_NID
30.Nd X.501 Attributes of private keys
31.Sh SYNOPSIS
32.In openssl/x509.h
33.Ft int
34.Fo EVP_PKEY_add1_attr
35.Fa "EVP_PKEY *key"
36.Fa "X509_ATTRIBUTE *attr"
37.Fc
38.Ft int
39.Fo EVP_PKEY_add1_attr_by_OBJ
40.Fa "EVP_PKEY *key"
41.Fa "const ASN1_OBJECT *obj"
42.Fa "int type"
43.Fa "const unsigned char *data"
44.Fa "int len"
45.Fc
46.Ft int
47.Fo EVP_PKEY_add1_attr_by_NID
48.Fa "EVP_PKEY *key"
49.Fa "int nid"
50.Fa "int type"
51.Fa "const unsigned char *data"
52.Fa "int len"
53.Fc
54.Ft int
55.Fo EVP_PKEY_add1_attr_by_txt
56.Fa "EVP_PKEY *key"
57.Fa "const char *name"
58.Fa "int type"
59.Fa "const unsigned char *data"
60.Fa "int len"
61.Fc
62.Ft X509_ATTRIBUTE *
63.Fo EVP_PKEY_delete_attr
64.Fa "EVP_PKEY *key"
65.Fa "int index"
66.Fc
67.Ft X509_ATTRIBUTE *
68.Fo EVP_PKEY_get_attr
69.Fa "const EVP_PKEY *key"
70.Fa "int index"
71.Fc
72.Ft int
73.Fo EVP_PKEY_get_attr_count
74.Fa "const EVP_PKEY *key"
75.Fc
76.Ft int
77.Fo EVP_PKEY_get_attr_by_OBJ
78.Fa "const EVP_PKEY *key"
79.Fa "const ASN1_OBJECT *obj"
80.Fa "int start_after"
81.Fc
82.Ft int
83.Fo EVP_PKEY_get_attr_by_NID
84.Fa "const EVP_PKEY *key"
85.Fa "int nid"
86.Fa "int start_after"
87.Fc
88.Sh DESCRIPTION
89These functions support associating an array of X.501 Attributes
90with a private key.
91Such attributes can for example be included in PKCS#12 structures.
92.Pp
93.Fn EVP_PKEY_add1_attr
94appends a deep copy of the
95.Fa attr
96using
97.Xr X509at_add1_attr 3 .
98.Pp
99.Fn EVP_PKEY_add1_attr_by_OBJ ,
100.Fn EVP_PKEY_add1_attr_by_NID ,
101and
102.Fn EVP_PKEY_add1_attr_by_txt
103create a new X.501 Attribute object using
104.Xr X509_ATTRIBUTE_create_by_OBJ 3 ,
105.Xr X509_ATTRIBUTE_create_by_NID 3 ,
106or
107.Xr X509_ATTRIBUTE_create_by_txt 3 ,
108respectively, and append it using
109.Xr X509at_add1_attr 3 .
110.Pp
111.Fn EVP_PKEY_delete_attr
112deletes the attribute with the zero-based
113.Fa index
114using
115.Xr X509at_delete_attr 3 .
116.Pp
117.Fn EVP_PKEY_get_attr
118returns the attribute with the zero-based
119.Fa index
120using
121.Xr X509at_get_attr 3 .
122.Pp
123.Fn EVP_PKEY_get_attr_count
124returns the number of attributes currently associated with the
125.Fa key
126using
127.Xr X509at_get_attr_count 3 .
128.Pp
129.Fn EVP_PKEY_get_attr_by_OBJ
130and
131.Fn EVP_PKEY_get_attr_by_NID
132search for an attribute of the type
133.Fa obj
134or
135.Fa nid
136using
137.Xr X509at_get_attr_by_OBJ 3
138or
139.Xr X509at_get_attr_by_NID 3 ,
140respectively.
141.Sh RETURN VALUES
142.Fn EVP_PKEY_add1_attr ,
143.Fn EVP_PKEY_add1_attr_by_OBJ ,
144.Fn EVP_PKEY_add1_attr_by_NID ,
145and
146.Fn EVP_PKEY_add1_attr_by_txt
147return 1 for success or 0 for failure.
148.Pp
149.Fn EVP_PKEY_delete_attr
150and
151.Fn EVP_PKEY_get_attr
152return the deleted or requested attribute or
153.Dv NULL
154if the requested index is negative or greater than or equal to
155the current number of attributes associated with the
156.Fa key .
157.Pp
158.Fn EVP_PKEY_get_attr_count
159returns the current number of attributes.
160.Pp
161.Fn EVP_PKEY_get_attr_by_OBJ
162and
163.Fn EVP_PKEY_get_attr_by_NID
164return the index of the first attribute that has an index greater than
165.Fa start_after
166and a type matching
167.Fa obj
168or
169.Fa nid ,
170respectively, or \-1 on failure.
171In addition,
172.Fn EVP_PKEY_get_attr_by_NID
173returns \-2 if
174.Xr OBJ_nid2obj 3
175fails on the requested
176.Fa nid .
177.Sh SEE ALSO
178.Xr EVP_PKEY_new 3 ,
179.Xr OBJ_nid2obj 3 ,
180.Xr PKCS12_create 3 ,
181.Xr X509_ATTRIBUTE_create_by_OBJ 3 ,
182.Xr X509_ATTRIBUTE_new 3 ,
183.Xr X509at_add1_attr 3 ,
184.Xr X509at_get_attr 3
185.Sh HISTORY
186These functions first appeared in OpenSSL 0.9.8
187and have been available since
188.Ox 4.5 .
diff --git a/src/lib/libcrypto/man/EVP_PKEY_new.3 b/src/lib/libcrypto/man/EVP_PKEY_new.3
index 36f3886856..ea22b5eb08 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_new.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: EVP_PKEY_new.3,v 1.19 2024/07/21 08:36:43 tb Exp $ 1.\" $OpenBSD: EVP_PKEY_new.3,v 1.20 2024/08/24 09:15:36 tb Exp $
2.\" full merge up to: OpenSSL 4dcfdfce May 27 11:50:05 2020 +0100 2.\" full merge up to: OpenSSL 4dcfdfce May 27 11:50:05 2020 +0100
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
@@ -66,7 +66,7 @@
66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 66.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
67.\" OF THE POSSIBILITY OF SUCH DAMAGE. 67.\" OF THE POSSIBILITY OF SUCH DAMAGE.
68.\" 68.\"
69.Dd $Mdocdate: July 21 2024 $ 69.Dd $Mdocdate: August 24 2024 $
70.Dt EVP_PKEY_NEW 3 70.Dt EVP_PKEY_NEW 3
71.Os 71.Os
72.Sh NAME 72.Sh NAME
@@ -269,7 +269,6 @@ return 1 for success or 0 for failure.
269.Xr d2i_PrivateKey 3 , 269.Xr d2i_PrivateKey 3 ,
270.Xr evp 3 , 270.Xr evp 3 ,
271.Xr EVP_PKCS82PKEY 3 , 271.Xr EVP_PKCS82PKEY 3 ,
272.Xr EVP_PKEY_add1_attr 3 ,
273.Xr EVP_PKEY_asn1_new 3 , 272.Xr EVP_PKEY_asn1_new 3 ,
274.Xr EVP_PKEY_check 3 , 273.Xr EVP_PKEY_check 3 ,
275.Xr EVP_PKEY_cmp 3 , 274.Xr EVP_PKEY_cmp 3 ,
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 4973ea744c..f2f23a0734 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.290 2024/08/24 07:48:37 tb Exp $ 1# $OpenBSD: Makefile,v 1.291 2024/08/24 09:15:36 tb Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -177,7 +177,6 @@ MAN= \
177 EVP_PKEY_CTX_new.3 \ 177 EVP_PKEY_CTX_new.3 \
178 EVP_PKEY_CTX_set_hkdf_md.3 \ 178 EVP_PKEY_CTX_set_hkdf_md.3 \
179 EVP_PKEY_CTX_set_tls1_prf_md.3 \ 179 EVP_PKEY_CTX_set_tls1_prf_md.3 \
180 EVP_PKEY_add1_attr.3 \
181 EVP_PKEY_asn1_get_count.3 \ 180 EVP_PKEY_asn1_get_count.3 \
182 EVP_PKEY_asn1_new.3 \ 181 EVP_PKEY_asn1_new.3 \
183 EVP_PKEY_check.3 \ 182 EVP_PKEY_check.3 \
diff --git a/src/lib/libcrypto/man/X509_ATTRIBUTE_new.3 b/src/lib/libcrypto/man/X509_ATTRIBUTE_new.3
index 5dcdc6e214..8d664cd69e 100644
--- a/src/lib/libcrypto/man/X509_ATTRIBUTE_new.3
+++ b/src/lib/libcrypto/man/X509_ATTRIBUTE_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_ATTRIBUTE_new.3,v 1.16 2021/10/26 12:56:48 schwarze Exp $ 1.\" $OpenBSD: X509_ATTRIBUTE_new.3,v 1.17 2024/08/24 09:15:36 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2016, 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: October 26 2021 $ 17.Dd $Mdocdate: August 24 2024 $
18.Dt X509_ATTRIBUTE_NEW 3 18.Dt X509_ATTRIBUTE_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -111,7 +111,6 @@ fails on
111.Fa nid . 111.Fa nid .
112.Sh SEE ALSO 112.Sh SEE ALSO
113.Xr d2i_X509_ATTRIBUTE 3 , 113.Xr d2i_X509_ATTRIBUTE 3 ,
114.Xr EVP_PKEY_add1_attr 3 ,
115.Xr OBJ_nid2obj 3 , 114.Xr OBJ_nid2obj 3 ,
116.Xr PKCS12_SAFEBAG_new 3 , 115.Xr PKCS12_SAFEBAG_new 3 ,
117.Xr PKCS7_add_attribute 3 , 116.Xr PKCS7_add_attribute 3 ,
diff --git a/src/lib/libcrypto/man/X509at_add1_attr.3 b/src/lib/libcrypto/man/X509at_add1_attr.3
index 3d29c56ef9..126b1b41ba 100644
--- a/src/lib/libcrypto/man/X509at_add1_attr.3
+++ b/src/lib/libcrypto/man/X509at_add1_attr.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509at_add1_attr.3,v 1.5 2021/10/26 12:56:48 schwarze Exp $ 1.\" $OpenBSD: X509at_add1_attr.3,v 1.6 2024/08/24 09:15:36 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: October 26 2021 $ 17.Dd $Mdocdate: August 24 2024 $
18.Dt X509AT_ADD1_ATTR 3 18.Dt X509AT_ADD1_ATTR 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -120,7 +120,6 @@ or if the requested
120is negative or greater than or equal to the number of objects in 120is negative or greater than or equal to the number of objects in
121.Pf * Fa attrs . 121.Pf * Fa attrs .
122.Sh SEE ALSO 122.Sh SEE ALSO
123.Xr EVP_PKEY_add1_attr 3 ,
124.Xr OBJ_nid2obj 3 , 123.Xr OBJ_nid2obj 3 ,
125.Xr PKCS8_pkey_add1_attr_by_NID 3 , 124.Xr PKCS8_pkey_add1_attr_by_NID 3 ,
126.Xr STACK_OF 3 , 125.Xr STACK_OF 3 ,
diff --git a/src/lib/libcrypto/man/X509at_get_attr.3 b/src/lib/libcrypto/man/X509at_get_attr.3
index 82f786a417..3afdb0df41 100644
--- a/src/lib/libcrypto/man/X509at_get_attr.3
+++ b/src/lib/libcrypto/man/X509at_get_attr.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509at_get_attr.3,v 1.7 2022/03/28 08:18:13 claudio Exp $ 1.\" $OpenBSD: X509at_get_attr.3,v 1.8 2024/08/24 09:15:36 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: March 28 2022 $ 17.Dd $Mdocdate: August 24 2024 $
18.Dt X509AT_GET_ATTR 3 18.Dt X509AT_GET_ATTR 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -138,14 +138,12 @@ or
138.Dv NULL 138.Dv NULL
139on failure. 139on failure.
140.Sh SEE ALSO 140.Sh SEE ALSO
141.Xr EVP_PKEY_get_attr 3 ,
142.Xr OBJ_nid2obj 3 , 141.Xr OBJ_nid2obj 3 ,
143.Xr PKCS8_pkey_get0_attrs 3 , 142.Xr PKCS8_pkey_get0_attrs 3 ,
144.Xr STACK_OF 3 , 143.Xr STACK_OF 3 ,
145.Xr X509_ATTRIBUTE_get0_data 3 , 144.Xr X509_ATTRIBUTE_get0_data 3 ,
146.Xr X509_ATTRIBUTE_new 3 , 145.Xr X509_ATTRIBUTE_new 3 ,
147.Xr X509_REQ_get_attr 3 , 146.Xr X509_REQ_get_attr 3 ,
148.Xr X509at_add1_attr 3
149.Sh HISTORY 147.Sh HISTORY
150.Fn X509at_get_attr , 148.Fn X509at_get_attr ,
151.Fn X509at_get_attr_count , 149.Fn X509at_get_attr_count ,
diff --git a/src/lib/libcrypto/man/evp.3 b/src/lib/libcrypto/man/evp.3
index 8a3133bd07..aea8f051f3 100644
--- a/src/lib/libcrypto/man/evp.3
+++ b/src/lib/libcrypto/man/evp.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: evp.3,v 1.30 2024/03/19 17:34:05 tb Exp $ 1.\" $OpenBSD: evp.3,v 1.31 2024/08/24 09:15:36 tb Exp $
2.\" full merge up to: OpenSSL man7/evp 24a535ea Sep 22 13:14:20 2020 +0100 2.\" full merge up to: OpenSSL man7/evp 24a535ea Sep 22 13:14:20 2020 +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>,
@@ -51,7 +51,7 @@
51.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
52.\" OF THE POSSIBILITY OF SUCH DAMAGE. 52.\" OF THE POSSIBILITY OF SUCH DAMAGE.
53.\" 53.\"
54.Dd $Mdocdate: March 19 2024 $ 54.Dd $Mdocdate: August 24 2024 $
55.Dt EVP 3 55.Dt EVP 3
56.Os 56.Os
57.Sh NAME 57.Sh NAME
@@ -189,7 +189,6 @@ family of functions provides base64 encoding and decoding.
189.Xr EVP_MD_nid 3 , 189.Xr EVP_MD_nid 3 ,
190.Xr EVP_OpenInit 3 , 190.Xr EVP_OpenInit 3 ,
191.Xr EVP_PKCS82PKEY 3 , 191.Xr EVP_PKCS82PKEY 3 ,
192.Xr EVP_PKEY_add1_attr 3 ,
193.Xr EVP_PKEY_asn1_get_count 3 , 192.Xr EVP_PKEY_asn1_get_count 3 ,
194.Xr EVP_PKEY_asn1_new 3 , 193.Xr EVP_PKEY_asn1_new 3 ,
195.Xr EVP_PKEY_check 3 , 194.Xr EVP_PKEY_check 3 ,