summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2023-09-05 15:01:39 +0000
committerschwarze <>2023-09-05 15:01:39 +0000
commit11cd3a3d479bcec2aabc2bad508d44971dd55220 (patch)
tree7babc8fba1b99fa193f102be5ec307333e8460a0 /src
parent7e2eed9aad34ceb1fe6be665c6ac8c8f862f3ea2 (diff)
downloadopenbsd-11cd3a3d479bcec2aabc2bad508d44971dd55220.tar.gz
openbsd-11cd3a3d479bcec2aabc2bad508d44971dd55220.tar.bz2
openbsd-11cd3a3d479bcec2aabc2bad508d44971dd55220.zip
add a BUGS section warning about the creation of incomplete objects
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/ASN1_OBJECT_new.325
1 files changed, 22 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/ASN1_OBJECT_new.3 b/src/lib/libcrypto/man/ASN1_OBJECT_new.3
index 6aa4723c7f..3e2eac02ee 100644
--- a/src/lib/libcrypto/man/ASN1_OBJECT_new.3
+++ b/src/lib/libcrypto/man/ASN1_OBJECT_new.3
@@ -1,10 +1,10 @@
1.\" $OpenBSD: ASN1_OBJECT_new.3,v 1.15 2021/12/15 20:07:51 schwarze Exp $ 1.\" $OpenBSD: ASN1_OBJECT_new.3,v 1.16 2023/09/05 15:01:39 schwarze Exp $
2.\" full merge up to: OpenSSL 99d63d4 Mar 19 12:28:58 2016 -0400 2.\" full merge up to: OpenSSL 99d63d4 Mar 19 12:28:58 2016 -0400
3.\" 3.\"
4.\" This file is a derived work. 4.\" This file is a derived work.
5.\" The changes are covered by the following Copyright and license: 5.\" The changes are covered by the following Copyright and license:
6.\" 6.\"
7.\" Copyright (c) 2017, 2021 Ingo Schwarze <schwarze@openbsd.org> 7.\" Copyright (c) 2017, 2021, 2023 Ingo Schwarze <schwarze@openbsd.org>
8.\" 8.\"
9.\" Permission to use, copy, modify, and distribute this software for any 9.\" Permission to use, copy, modify, and distribute this software for any
10.\" purpose with or without fee is hereby granted, provided that the above 10.\" purpose with or without fee is hereby granted, provided that the above
@@ -65,7 +65,7 @@
65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 65.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
66.\" OF THE POSSIBILITY OF SUCH DAMAGE. 66.\" OF THE POSSIBILITY OF SUCH DAMAGE.
67.\" 67.\"
68.Dd $Mdocdate: December 15 2021 $ 68.Dd $Mdocdate: September 5 2023 $
69.Dt ASN1_OBJECT_NEW 3 69.Dt ASN1_OBJECT_NEW 3
70.Os 70.Os
71.Sh NAME 71.Sh NAME
@@ -207,3 +207,22 @@ first appeared in SSLeay 0.5.1 and
207in SSLeay 0.8.0. 207in SSLeay 0.8.0.
208These functions have been available since 208These functions have been available since
209.Ox 2.4 . 209.Ox 2.4 .
210.Sh BUGS
211The function
212.Fn ASN1_OBJECT_new
213is not useful for any practical purpose because the library does not
214provide any function capable of adding data to an existing object.
215Consequently, if the application program creates an object with
216.Fn ASN1_OBJECT_new ,
217that object will always remain empty.
218.Pp
219Similarly, if an
220.Fa nid
221of
222.Dv NID_undef
223is passed to
224.Fn ASN1_OBJECT_create ,
225or if
226.Dv NULL
227is passed for any of its pointer arguments, the returned object
228will permanently remain incomplete.