Changed the order and semantics of rules we expect only once in auth_cfg_t.
authorTobias Brunner <tobias@strongswan.org>
Tue, 17 Apr 2012 15:37:30 +0000 (17:37 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 18 Apr 2012 16:50:14 +0000 (18:50 +0200)
commitebc1ffe45100d31ca0094fb407747a0ad995bf8e
treeea19fd60f638e2d42f35990000c98ecd883310d9
parent80067cf9e670202b1da7a4ca6f26e31ae2cde027
Changed the order and semantics of rules we expect only once in auth_cfg_t.

These rules are now inserted at the front of the internal list, this
allows to retrieve the rule added last with get(). For other rules the
order in which they are added is maintained (this allows to properly
enumerate them).
src/libstrongswan/credentials/auth_cfg.c
src/libstrongswan/credentials/auth_cfg.h