aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/stroke/stroke_list.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2009-10-05 22:44:01 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2009-10-05 22:44:01 +0200
commit408e46a3248e9222e106443796c7f7cd388e5b39 (patch)
treee1ab649e2c3f741071e5c36ef32ec8256334c295 /src/charon/plugins/stroke/stroke_list.c
parentce40bf5def7c8cd2986cdcbf39b25d8e25eb1167 (diff)
downloadstrongswan-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.c7
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;