diff options
Diffstat (limited to 'src/lib/libcrypto/man/ASN1_NULL_new.3')
| -rw-r--r-- | src/lib/libcrypto/man/ASN1_NULL_new.3 | 62 |
1 files changed, 62 insertions, 0 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 | ||
| 32 | returns a specific invalid pointer that represents the ASN.1 NULL value, | ||
| 33 | which is the only possible value of the ASN.1 NULL type. | ||
| 34 | That pointer is different from a | ||
| 35 | .Dv NULL | ||
| 36 | pointer. | ||
| 37 | Dereferencing it almost certainly results in a segmentation fault. | ||
| 38 | This function does not allocate memory and cannot fail. | ||
| 39 | .Pp | ||
| 40 | .Fn ASN1_NULL_free | ||
| 41 | has no effect whatsoever. | ||
| 42 | In particular, i ignores the | ||
| 43 | .Fa val_in | ||
| 44 | argument and does not free any memory. | ||
| 45 | In normal use, application programs only pass the invalid pointer | ||
| 46 | obtained from | ||
| 47 | .Fn ASN1_NULL_new | ||
| 48 | to this function. | ||
| 49 | But 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 | ||
| 54 | ITU-T Recommendation X.208, also known as ISO/IEC 8824-1: | ||
| 55 | Specification of Abstract Syntax Notation One (ASN.1), | ||
| 56 | section 19: Notation for the null type | ||
| 57 | .Sh HISTORY | ||
| 58 | .Fn ASN1_NULL_new | ||
| 59 | and | ||
| 60 | .Fn ASN1_NULL_free | ||
| 61 | first appeared in OpenSSL 0.9.5 and have been available since | ||
| 62 | .Ox 2.7 . | ||
