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
..
2011-02-03 12:03:51 +00:00
2014-03-28 14:49:04 +00:00
2014-05-04 00:46:20 +01:00
2014-02-19 20:09:08 +00:00
2014-02-19 20:09:08 +00:00
2014-02-19 20:09:08 +00:00
2013-01-13 21:04:39 +00:00
2011-02-21 17:51:59 +00:00
2014-02-13 03:11:58 +00:00
2014-05-04 16:39:59 +02:00
2014-05-06 00:02:31 +01:00
2014-04-22 16:58:43 +01:00
2012-02-11 23:41:19 +00:00
2014-05-21 11:31:28 +01:00
2014-02-19 18:02:04 +00:00
2000-02-01 02:21:16 +00:00
2006-10-23 07:41:05 +00:00
2014-02-19 20:09:08 +00:00
2013-10-13 19:15:15 +02:00
2007-06-23 18:47:51 +00:00
2009-04-20 11:33:12 +00:00
2012-06-03 22:00:21 +00:00
2011-05-19 18:09:02 +00:00
2013-01-19 21:23:13 +01:00
2014-02-19 18:02:04 +00:00
2009-03-31 10:38:37 +00:00
2013-08-05 15:45:01 +01:00
2012-09-17 17:21:58 +00:00
2003-11-28 13:10:58 +00:00