summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-07-28 14:34:54 +0000
committertb <>2023-07-28 14:34:54 +0000
commitb5b5f9335614fcce5146d82ce069cfb3d23cc5a8 (patch)
tree00560126d1741cb976f7ddb6969717a473c1d477
parenta9f558638c3f441a2ba9535c3e696ec5641b3005 (diff)
downloadopenbsd-b5b5f9335614fcce5146d82ce069cfb3d23cc5a8.tar.gz
openbsd-b5b5f9335614fcce5146d82ce069cfb3d23cc5a8.tar.bz2
openbsd-b5b5f9335614fcce5146d82ce069cfb3d23cc5a8.zip
The CRYPTO_EX_DATA type is not opaque
By API misdesign, it cannot be opaque. The incorrect documentation was added as a part of a huge commit with a lot of churn. CRYPTO_EX_DATA typically lives as an embedded struct of an opaque struct, but it can also be used by applications, for example to initialize libssl. documentation error pointed out by jsing
-rw-r--r--src/lib/libcrypto/man/CRYPTO_set_ex_data.37
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/CRYPTO_set_ex_data.3 b/src/lib/libcrypto/man/CRYPTO_set_ex_data.3
index 9d72b85642..abdef79d87 100644
--- a/src/lib/libcrypto/man/CRYPTO_set_ex_data.3
+++ b/src/lib/libcrypto/man/CRYPTO_set_ex_data.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: CRYPTO_set_ex_data.3,v 1.13 2022/03/31 17:27:16 naddy Exp $ 1.\" $OpenBSD: CRYPTO_set_ex_data.3,v 1.14 2023/07/28 14:34:54 tb Exp $
2.\" full merge up to: 2.\" full merge up to:
3.\" OpenSSL CRYPTO_get_ex_new_index 9e183d22 Mar 11 08:56:44 2017 -0500 3.\" OpenSSL CRYPTO_get_ex_new_index 9e183d22 Mar 11 08:56:44 2017 -0500
4.\" selective merge up to: 72a7a702 Feb 26 14:05:09 2019 +0000 4.\" selective merge up to: 72a7a702 Feb 26 14:05:09 2019 +0000
@@ -52,7 +52,7 @@
52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 52.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
53.\" OF THE POSSIBILITY OF SUCH DAMAGE. 53.\" OF THE POSSIBILITY OF SUCH DAMAGE.
54.\" 54.\"
55.Dd $Mdocdate: March 31 2022 $ 55.Dd $Mdocdate: July 28 2023 $
56.Dt CRYPTO_SET_EX_DATA 3 56.Dt CRYPTO_SET_EX_DATA 3
57.Os 57.Os
58.Sh NAME 58.Sh NAME
@@ -161,9 +161,6 @@ retrieved as a
161.Vt void * 161.Vt void *
162type. 162type.
163.Pp 163.Pp
164The
165.Vt CRYPTO_EX_DATA
166type is opaque.
167To initialize the exdata part of a structure, call 164To initialize the exdata part of a structure, call
168.Fn CRYPTO_new_ex_data . 165.Fn CRYPTO_new_ex_data .
169.Pp 166.Pp