diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-05 22:44:01 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-10-05 22:44:01 +0200 |
commit | 408e46a3248e9222e106443796c7f7cd388e5b39 (patch) | |
tree | e1ab649e2c3f741071e5c36ef32ec8256334c295 /src/charon/plugins/stroke/stroke_list.c | |
parent | ce40bf5def7c8cd2986cdcbf39b25d8e25eb1167 (diff) | |
download | strongswan-408e46a3248e9222e106443796c7f7cd388e5b39.tar.bz2 strongswan-408e46a3248e9222e106443796c7f7cd388e5b39.tar.xz |
ipsec pki --issue suports --flag authServer option
Diffstat (limited to 'src/charon/plugins/stroke/stroke_list.c')
-rw-r--r-- | src/charon/plugins/stroke/stroke_list.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/charon/plugins/stroke/stroke_list.c b/src/charon/plugins/stroke/stroke_list.c index f110009ac..5716b4269 100644 --- a/src/charon/plugins/stroke/stroke_list.c +++ b/src/charon/plugins/stroke/stroke_list.c @@ -655,8 +655,11 @@ static void stroke_list_certs(linked_list_t *list, char *label, x509_t *x509 = (x509_t*)cert; x509_flag_t x509_flags = x509->get_flags(x509); - /* list only if flag is set, or flags == 0 (ignoring self-signed) */ - if ((x509_flags & flags) || (flags == (x509_flags & ~X509_SELF_SIGNED))) + /* list only if flag is set, + * or flags == 0 (ignoring self-signed and serverAuth) + */ + if ((x509_flags & flags) || + (flags == (x509_flags & ~(X509_SELF_SIGNED | X509_SERVER_AUTH)))) { enumerator_t *enumerator; identification_t *altName; |