identification: Clarify that ID_USER_FQDN is just an alias for ID_RFC822_ADDR
This means userfqdn: is a valid prefix for regular expressions.
This commit is contained in:
@@ -1828,7 +1828,7 @@ static const struct {
|
||||
{ "ipv6range:", ID_IPV6_ADDR_RANGE, FALSE},
|
||||
{ "rfc822:", ID_RFC822_ADDR, TRUE},
|
||||
{ "email:", ID_RFC822_ADDR, TRUE},
|
||||
{ "userfqdn:", ID_USER_FQDN, FALSE},
|
||||
{ "userfqdn:", ID_RFC822_ADDR, TRUE},
|
||||
{ "fqdn:", ID_FQDN, TRUE},
|
||||
{ "dns:", ID_FQDN, TRUE},
|
||||
{ "asn1dn:", ID_DER_ASN1_DN, TRUE},
|
||||
@@ -2111,7 +2111,7 @@ identification_t *identification_create_from_string(char *string)
|
||||
}
|
||||
else if (*string == '@')
|
||||
{
|
||||
this = identification_create(ID_USER_FQDN);
|
||||
this = identification_create(ID_RFC822_ADDR);
|
||||
this->encoded = chunk_clone(chunk_from_str(string + 1));
|
||||
return &this->public;
|
||||
}
|
||||
|
||||
@@ -336,9 +336,9 @@ identification_t *identification_create_from_string(char *string);
|
||||
* trusted/configured values, never untrusted values received over the network.
|
||||
*
|
||||
* A regular expression must be prefixed by an identity type (supported are
|
||||
* rfc822:, email:, fqdn:, dns:, and asn1dn:), and it must start with a caret
|
||||
* ('^') and end with a dollar sign ('$') to indicate an anchored pattern.
|
||||
* If the regular expression is invalid, the function returns NULL.
|
||||
* rfc822:, email:, userfqdn:, fqdn:, dns:, and asn1dn:), and it must start
|
||||
* with a caret ('^') and end with a dollar sign ('$') to indicate an anchored
|
||||
* pattern. If the regular expression is invalid, the function returns NULL.
|
||||
*
|
||||
* The regular expression is always matched against the string representation
|
||||
* of other identities and matching is performed case-insensitive.
|
||||
|
||||
Reference in New Issue
Block a user