Correctly serve certificates if CERT_ANY requested
authorMartin Willi <martin@strongswan.org>
Mon, 21 Sep 2009 13:34:29 +0000 (15:34 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 21 Sep 2009 13:34:29 +0000 (15:34 +0200)
src/charon/plugins/stroke/stroke_cred.c

index d3eb1fd..6055770 100644 (file)
@@ -151,7 +151,7 @@ static bool certs_filter(id_data_t *data, certificate_t **in, certificate_t **ou
        certificate_t *cert = *in;
        chunk_t keyid;
 
-       if (cert->get_type(cert) != data->type)
+       if (data->type != CERT_ANY && data->type != cert->get_type(cert))
        {
                return FALSE;
        }