Luiz Angelo Daros de Luca dd36fce023 OpenSSL is able to generate a certificate with name constraints with any possible
subjectAltName field. The Name Contraint example in x509v3_config(5) even use IP
as an example:

	nameConstraints=permitted;IP:192.168.0.0/255.255.0.0

However, until now, the verify code for IP name contraints did not exist. Any
check with a IP Address Name Constraint results in a "unsupported name constraint
type" error.

This patch implements support for IP Address Name Constraint (v4 and v6). This code
validaded correcly certificates with multiple IPv4/IPv6 address checking against
a CA certificate with these constraints:

	permitted;IP.1=10.9.0.0/255.255.0.0
	permitted;IP.2=10.48.0.0/255.255.0.0
	permitted;IP.3=10.148.0.0/255.255.0.0
	permitted;IP.4=fdc8:123f:e31f::/ffff:ffff:ffff::

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2014-05-23 23:05:38 +01:00
..
2014-04-25 14:31:05 -04:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2009-08-31 22:19:26 +00:00
2012-02-23 21:31:37 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2009-04-15 15:27:03 +00:00
2009-04-20 11:33:12 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2009-09-30 23:55:53 +00:00
2010-05-22 00:30:41 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2008-11-05 18:39:08 +00:00
2014-04-15 18:50:53 +01:00
2008-11-05 18:39:08 +00:00
2014-05-21 11:31:28 +01:00
2008-11-05 18:39:08 +00:00
2009-04-20 11:33:12 +00:00
2014-05-21 11:31:28 +01:00
2008-11-05 18:39:08 +00:00
2014-05-21 11:31:28 +01:00