summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2021-11-22 16:19:54 +0000
committerschwarze <>2021-11-22 16:19:54 +0000
commitdb07b15d956a05640e847b9188ebd8efbc86156e (patch)
tree9170a44f54b9818eee2cfbfd0f3c03dcab22ab86 /src
parent9e3276bd16eb5d34b7af1bef36f45317cbfb0a16 (diff)
downloadopenbsd-db07b15d956a05640e847b9188ebd8efbc86156e.tar.gz
openbsd-db07b15d956a05640e847b9188ebd8efbc86156e.tar.bz2
openbsd-db07b15d956a05640e847b9188ebd8efbc86156e.zip
new manual page ASN1_NULL_new(3), also documenting ASN1_NULL_free(3)
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/ASN1_NULL_new.362
-rw-r--r--src/lib/libcrypto/man/ASN1_item_new.35
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/d2i_ASN1_NULL.35
4 files changed, 70 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/ASN1_NULL_new.3 b/src/lib/libcrypto/man/ASN1_NULL_new.3
new file mode 100644
index 0000000000..dc9f00b0a0
--- /dev/null
+++ b/src/lib/libcrypto/man/ASN1_NULL_new.3
@@ -0,0 +1,62 @@
1.\" $OpenBSD: ASN1_NULL_new.3,v 1.1 2021/11/22 16:19:54 schwarze 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: November 22 2021 $
18.Dt ASN1_NULL_NEW 3
19.Os
20.Sh NAME
21.Nm ASN1_NULL_new ,
22.Nm ASN1_NULL_free
23.Nd ASN.1 NULL value
24.Sh SYNOPSIS
25.In openssl/asn1.h
26.Ft ASN1_NULL *
27.Fn ASN1_NULL_new void
28.Ft void
29.Fn ASN1_NULL_free "ASN1_NULL *val_in"
30.Sh DESCRIPTION
31.Fn ASN1_NULL_new
32returns a specific invalid pointer that represents the ASN.1 NULL value,
33which is the only possible value of the ASN.1 NULL type.
34That pointer is different from a
35.Dv NULL
36pointer.
37Dereferencing it almost certainly results in a segmentation fault.
38This function does not allocate memory and cannot fail.
39.Pp
40.Fn ASN1_NULL_free
41has no effect whatsoever.
42In particular, i ignores the
43.Fa val_in
44argument and does not free any memory.
45In normal use, application programs only pass the invalid pointer
46obtained from
47.Fn ASN1_NULL_new
48to this function.
49But even if a valid pointer is passed, that pointer does not become invalid.
50.Sh SEE ALSO
51.Xr ASN1_item_new 3 ,
52.Xr d2i_ASN1_NULL 3
53.Sh STANDARDS
54ITU-T Recommendation X.208, also known as ISO/IEC 8824-1:
55Specification of Abstract Syntax Notation One (ASN.1),
56section 19: Notation for the null type
57.Sh HISTORY
58.Fn ASN1_NULL_new
59and
60.Fn ASN1_NULL_free
61first appeared in OpenSSL 0.9.5 and have been available since
62.Ox 2.7 .
diff --git a/src/lib/libcrypto/man/ASN1_item_new.3 b/src/lib/libcrypto/man/ASN1_item_new.3
index 6e36e86c6d..7fd3405e1f 100644
--- a/src/lib/libcrypto/man/ASN1_item_new.3
+++ b/src/lib/libcrypto/man/ASN1_item_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ASN1_item_new.3,v 1.9 2021/11/21 15:11:01 schwarze Exp $ 1.\" $OpenBSD: ASN1_item_new.3,v 1.10 2021/11/22 16:19:54 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2016, 2018 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2016, 2018 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: November 21 2021 $ 17.Dd $Mdocdate: November 22 2021 $
18.Dt ASN1_ITEM_NEW 3 18.Dt ASN1_ITEM_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -111,6 +111,7 @@ is returned and an error code can be retrieved with
111.Xr ASN1_item_pack 3 , 111.Xr ASN1_item_pack 3 ,
112.Xr ASN1_item_sign 3 , 112.Xr ASN1_item_sign 3 ,
113.Xr ASN1_item_verify 3 , 113.Xr ASN1_item_verify 3 ,
114.Xr ASN1_NULL_new 3 ,
114.Xr ASN1_TYPE_new 3 , 115.Xr ASN1_TYPE_new 3 ,
115.Xr d2i_ASN1_BOOLEAN 3 , 116.Xr d2i_ASN1_BOOLEAN 3 ,
116.Xr d2i_ASN1_NULL 3 , 117.Xr d2i_ASN1_NULL 3 ,
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 4a8536747f..6a0d65cb85 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.219 2021/11/22 14:00:27 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.220 2021/11/22 16:19:54 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -8,6 +8,7 @@ MAN= \
8 ASN1_BIT_STRING_num_asc.3 \ 8 ASN1_BIT_STRING_num_asc.3 \
9 ASN1_BIT_STRING_set.3 \ 9 ASN1_BIT_STRING_set.3 \
10 ASN1_INTEGER_get.3 \ 10 ASN1_INTEGER_get.3 \
11 ASN1_NULL_new.3 \
11 ASN1_OBJECT_new.3 \ 12 ASN1_OBJECT_new.3 \
12 ASN1_PRINTABLE_type.3 \ 13 ASN1_PRINTABLE_type.3 \
13 ASN1_STRING_TABLE_add.3 \ 14 ASN1_STRING_TABLE_add.3 \
diff --git a/src/lib/libcrypto/man/d2i_ASN1_NULL.3 b/src/lib/libcrypto/man/d2i_ASN1_NULL.3
index 7d10f1ba10..bc7c85e71e 100644
--- a/src/lib/libcrypto/man/d2i_ASN1_NULL.3
+++ b/src/lib/libcrypto/man/d2i_ASN1_NULL.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: d2i_ASN1_NULL.3,v 1.3 2019/06/06 01:06:59 schwarze Exp $ 1.\" $OpenBSD: d2i_ASN1_NULL.3,v 1.4 2021/11/22 16:19:54 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2016 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: June 6 2019 $ 17.Dd $Mdocdate: November 22 2021 $
18.Dt D2I_ASN1_NULL 3 18.Dt D2I_ASN1_NULL 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -76,6 +76,7 @@ returns 2 if successful or 0 if an error occurs.
76.Sh SEE ALSO 76.Sh SEE ALSO
77.Xr ASN1_item_d2i 3 , 77.Xr ASN1_item_d2i 3 ,
78.Xr ASN1_item_new 3 , 78.Xr ASN1_item_new 3 ,
79.Xr ASN1_NULL_new 3 ,
79.Xr ASN1_TYPE_get 3 80.Xr ASN1_TYPE_get 3
80.Sh STANDARDS 81.Sh STANDARDS
81ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: 82ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: