summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/IPAddressRange_new.3
diff options
context:
space:
mode:
authortb <>2023-09-28 12:35:31 +0000
committertb <>2023-09-28 12:35:31 +0000
commitf303397303b45a34025b87dcff0e9355c3dabcf4 (patch)
tree64707860c8b3834683bfa252318af5ad95e1a4c4 /src/lib/libcrypto/man/IPAddressRange_new.3
parent3c50cba0fd2b2b508a0cd1bb6bb8ab101cdd914c (diff)
downloadopenbsd-f303397303b45a34025b87dcff0e9355c3dabcf4.tar.gz
openbsd-f303397303b45a34025b87dcff0e9355c3dabcf4.tar.bz2
openbsd-f303397303b45a34025b87dcff0e9355c3dabcf4.zip
Document X509v3_{addr,asid}_subset.3
First RFC 3779 page without a BUG section. It could have one, but I'm in a lenient mood right now. Maybe it's just that this is bad but not quite as bad as EVP.
Diffstat (limited to 'src/lib/libcrypto/man/IPAddressRange_new.3')
-rw-r--r--src/lib/libcrypto/man/IPAddressRange_new.324
1 files changed, 14 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/IPAddressRange_new.3 b/src/lib/libcrypto/man/IPAddressRange_new.3
index 07c57f3e5d..e15ff34509 100644
--- a/src/lib/libcrypto/man/IPAddressRange_new.3
+++ b/src/lib/libcrypto/man/IPAddressRange_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: IPAddressRange_new.3,v 1.4 2023/09/27 08:46:46 tb Exp $ 1.\" $OpenBSD: IPAddressRange_new.3,v 1.5 2023/09/28 12:35:31 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 3.\" Copyright (c) 2023 Theo Buehler <tb@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: September 27 2023 $ 17.Dd $Mdocdate: September 28 2023 $
18.Dt IPADDRESSRANGE_NEW 3 18.Dt IPADDRESSRANGE_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -110,12 +110,12 @@ type representing the IP address delegation extension.
110Per RFC 3779, section 2.1.1, 110Per RFC 3779, section 2.1.1,
111an IPv4 or an IPv6 address is encoded in network byte order in an 111an IPv4 or an IPv6 address is encoded in network byte order in an
112ASN.1 BIT STRING of bit size 32 or 128 bits, respectively. 112ASN.1 BIT STRING of bit size 32 or 128 bits, respectively.
113The bit size of a prefix is its prefix length. 113The bit size of a prefix is its prefix length;
114In other words, all insignificant zero bits are omitted 114all insignificant zero bits are omitted
115from the encoding. 115from the encoding.
116An address range is expressed as a pair of BIT STRINGs 116An address range is expressed as a pair of BIT STRINGs
117where all least significant zero bits of the lower bound 117where all the least significant zero bits of the lower bound
118and the all least significant one bits of the upper bound are omitted. 118and all the least significant one bits of the upper bound are omitted.
119.Pp 119.Pp
120The library provides no API for directly converting an IP address or 120The library provides no API for directly converting an IP address or
121prefix (in any form) to and from an 121prefix (in any form) to and from an
@@ -127,8 +127,11 @@ internals are subtle and directly manipulating them in the
127context of the RFC 3779 API is discouraged. 127context of the RFC 3779 API is discouraged.
128The bit size of an 128The bit size of an
129.Vt ASN1_BIT_STRING 129.Vt ASN1_BIT_STRING
130representing an IP address prefix or range is eight times its length 130representing an IP address prefix or range is eight times its
131member minus the lowest three bits of its flags, provided the 131.Fa length
132member minus the lowest three bits of its
133.Fa flags ,
134provided the
132.Dv ASN1_STRING_FLAG_BITS_LEFT 135.Dv ASN1_STRING_FLAG_BITS_LEFT
133flag is set. 136flag is set.
134.Pp 137.Pp
@@ -460,7 +463,8 @@ or a value <= 0 if an error occurs.
460.Xr crypto 3 , 463.Xr crypto 3 ,
461.Xr X509_new 3 , 464.Xr X509_new 3 ,
462.Xr X509v3_addr_add_inherit 3 , 465.Xr X509v3_addr_add_inherit 3 ,
463.Xr X509v3_addr_inherits 3 466.Xr X509v3_addr_inherits 3 ,
467.Xr X509v3_addr_subset 3
464.Sh STANDARDS 468.Sh STANDARDS
465RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers: 469RFC 3779: X.509 Extensions for IP Addresses and AS Identifiers:
466.Bl -dash -compact 470.Bl -dash -compact
@@ -483,7 +487,7 @@ section 2.2.3.7: Type IPAddressOrRange
483.It 487.It
484section 2.2.3.8: Element addressPrefix and Type IPAddress 488section 2.2.3.8: Element addressPrefix and Type IPAddress
485.It 489.It
486section 2.2.3.9: Elements addressRange and Type IPAddressRange 490section 2.2.3.9: Element addressRange and Type IPAddressRange
487.El 491.El
488.Pp 492.Pp
489ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: 493ITU-T Recommendation X.690, also known as ISO/IEC 8825-1: