mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-03 00:00:24 -04:00
openssl: Add support for IP address nameConstraints
This commit is contained in:
parent
ede96fe3db
commit
1c3096fe50
@ -224,10 +224,20 @@ static identification_t *general_name2id(GENERAL_NAME *name)
|
||||
{
|
||||
return identification_create_from_encoding(ID_IPV4_ADDR, chunk);
|
||||
}
|
||||
if (chunk.len == 8)
|
||||
{
|
||||
return identification_create_from_encoding(ID_IPV4_ADDR_SUBNET,
|
||||
chunk);
|
||||
}
|
||||
if (chunk.len == 16)
|
||||
{
|
||||
return identification_create_from_encoding(ID_IPV6_ADDR, chunk);
|
||||
}
|
||||
if (chunk.len == 32)
|
||||
{
|
||||
return identification_create_from_encoding(ID_IPV6_ADDR_SUBNET,
|
||||
chunk);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
case GEN_DIRNAME :
|
||||
|
Loading…
x
Reference in New Issue
Block a user