[strongSwan] Wilcard matching in ipsec.conf rightid param

Martin Willi martin at strongswan.org
Mon Mar 21 13:58:05 CET 2011


Hi Graham,

>         rightid=*@foo.abc*.def235.bar.org

Wildcard matching for email addresses currently does not support
asterisks at arbitrary positions. Only a leading one is used in the
matching function.

Extending the RFC822_ADDR matching function to your needs should be not
to difficult, though. Have a look at the matches_string function at [1].

Regards
Martin

[1]http://git.strongswan.org/?p=strongswan.git;a=blob;f=src/libstrongswan/utils/identification.c#l672






More information about the Users mailing list