diff options
author | cvs2svn <admin@example.com> | 2025-04-14 17:32:06 +0000 |
---|---|---|
committer | cvs2svn <admin@example.com> | 2025-04-14 17:32:06 +0000 |
commit | eb8dd9dca1228af0cd132f515509051ecfabf6f6 (patch) | |
tree | edb6da6af7e865d488dc1a29309f1e1ec226e603 /src/lib/libcrypto/man/X509v3_addr_get_range.3 | |
parent | 247f0352e0ed72a4f476db9dc91f4d982bc83eb2 (diff) | |
download | openbsd-tb_20250414.tar.gz openbsd-tb_20250414.tar.bz2 openbsd-tb_20250414.zip |
This commit was manufactured by cvs2git to create tag 'tb_20250414'.tb_20250414
Diffstat (limited to 'src/lib/libcrypto/man/X509v3_addr_get_range.3')
-rw-r--r-- | src/lib/libcrypto/man/X509v3_addr_get_range.3 | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/src/lib/libcrypto/man/X509v3_addr_get_range.3 b/src/lib/libcrypto/man/X509v3_addr_get_range.3 deleted file mode 100644 index e0d83b1162..0000000000 --- a/src/lib/libcrypto/man/X509v3_addr_get_range.3 +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | .\" $OpenBSD: X509v3_addr_get_range.3,v 1.2 2023/09/30 14:12:40 schwarze Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2023 Theo Buehler <tb@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: September 30 2023 $ | ||
18 | .Dt X509V3_ADDR_GET_RANGE 3 | ||
19 | .Os | ||
20 | .Sh NAME | ||
21 | .Nm X509v3_addr_get_afi , | ||
22 | .Nm X509v3_addr_get_range | ||
23 | .Nd parse helpers for the IP address delegation extension | ||
24 | .Sh SYNOPSIS | ||
25 | .In openssl/x509v3.h | ||
26 | .Ft unsigned | ||
27 | .Fn X509v3_addr_get_afi "const IPAddressFamily *af" | ||
28 | .Ft int | ||
29 | .Fo X509v3_addr_get_range | ||
30 | .Fa "IPAddressOrRange *aor" | ||
31 | .Fa "const unsigned afi" | ||
32 | .Fa "unsigned char *min" | ||
33 | .Fa "unsigned char *max" | ||
34 | .Fa "const int length" | ||
35 | .Fc | ||
36 | .Sh DESCRIPTION | ||
37 | .Fn X509v3_addr_get_afi | ||
38 | returns the address family identifier (AFI) of | ||
39 | .Fa af . | ||
40 | .Pp | ||
41 | .Fn X509v3_addr_get_range | ||
42 | converts the minimum and maximum addresses in | ||
43 | the address prefix or range | ||
44 | .Fa aor | ||
45 | from internal encoding to IP addresses in network byte order | ||
46 | and places copies in the arrays | ||
47 | .Fa min | ||
48 | and | ||
49 | .Fa max , | ||
50 | of size | ||
51 | .Fa length . | ||
52 | The | ||
53 | .Fa length | ||
54 | must be large enough to accommodate an address for | ||
55 | .Fa afi , | ||
56 | which is at least 4 for | ||
57 | .Dv IANA_AFI_IPV4 | ||
58 | and at least 16 for | ||
59 | .Dv IANA_AFI_IPV6 . | ||
60 | .Sh RETURN VALUES | ||
61 | .Fn X509v3_addr_get_afi | ||
62 | returns the AFI encoded in | ||
63 | .Fa af | ||
64 | or 0 if | ||
65 | .Fa af | ||
66 | does not contain a valid AFI, or if the AFI is not IPv4 or IPv6. | ||
67 | .Pp | ||
68 | .Fn X509v3_addr_get_range | ||
69 | returns the number of bytes copied into | ||
70 | .Fa min | ||
71 | and | ||
72 | .Fa max | ||
73 | or 0 on error. | ||
74 | An error occurs if | ||
75 | .Fa aor | ||
76 | is malformed, if | ||
77 | .Fa afi | ||
78 | is not | ||
79 | .Dv IANA_AFI_IPV4 | ||
80 | or | ||
81 | .Dv IANA_AFI_IPV6 , | ||
82 | if either | ||
83 | .Fa min | ||
84 | or | ||
85 | .Fa max | ||
86 | is | ||
87 | .Dv NULL , | ||
88 | or if | ||
89 | .Fa length | ||
90 | is smaller than 4 or 16, respectively. | ||
91 | .Sh SEE ALSO | ||
92 | .Xr crypto 3 , | ||
93 | .Xr inet_ntop 3 , | ||
94 | .Xr IPAddressRange_new 3 , | ||
95 | .Xr X509_new 3 , | ||
96 | .Xr X509v3_addr_add_inherit 3 | ||
97 | .Sh STANDARDS | ||
98 | RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers: | ||
99 | .Bl -dash -compact | ||
100 | .It | ||
101 | section 2: IP Address delegation extension | ||
102 | .It | ||
103 | section 2.2.3.3: Element addressFamily | ||
104 | .It | ||
105 | section 2.2.3.7: Type IPAddressOrRange | ||
106 | .It | ||
107 | section 2.2.3.8: Element addressPrefix and Type IPAddress | ||
108 | .El | ||
109 | .Pp | ||
110 | .Rs | ||
111 | .%T Address Family Numbers | ||
112 | .%U https://www.iana.org/assignments/address-family-numbers | ||
113 | .Re | ||
114 | .Sh HISTORY | ||
115 | These functions first appeared in OpenSSL 0.9.8e | ||
116 | and have been available since | ||
117 | .Ox 7.1 . | ||
118 | .Sh BUGS | ||
119 | There is no accessor for the SAFI of | ||
120 | .Fa af . | ||
121 | .Pp | ||
122 | An error from | ||
123 | .Fn X509v3_addr_get_afi | ||
124 | is indistinguishable from the reserved AFI 0 being set on | ||
125 | .Fa af . | ||
126 | .Pp | ||
127 | It is not entirely clear how a caller is supposed to obtain an | ||
128 | .Vt IPAddressFamily | ||
129 | object or an | ||
130 | .Vt IPAddressOrRange | ||
131 | object without reaching into various structs documented in | ||
132 | .Xr IPAddressRange_new 3 . | ||