aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2011-04-19 13:06:25 +0200
committerTobias Brunner <tobias@strongswan.org>2011-04-19 13:48:50 +0200
commite78c9152410e3c8eb05599d255e2d8ac8eb7d82b (patch)
tree4d5129e9e4c14915008348a09ca106fb5f578e70 /src
parent00b9f755f8c43a2f81bcd0f6db142780956a283f (diff)
downloadstrongswan-e78c9152410e3c8eb05599d255e2d8ac8eb7d82b.tar.bz2
strongswan-e78c9152410e3c8eb05599d255e2d8ac8eb7d82b.tar.xz
scepclient: Proper handling of multiple received certificates.
Diffstat (limited to 'src')
-rw-r--r--src/scepclient/scepclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c
index 887b41765..d9f6b0925 100644
--- a/src/scepclient/scepclient.c
+++ b/src/scepclient/scepclient.c
@@ -1020,6 +1020,7 @@ int main(int argc, char **argv)
*/
if (filetype_out & CERT)
{
+ bool stored = FALSE;
certificate_t *cert;
enumerator_t *enumerator;
char *path = concatenate_paths(CA_CERT_PATH, file_in_cacert_sig);
@@ -1129,7 +1130,6 @@ int main(int argc, char **argv)
enumerator = certs->create_enumerator(certs);
while (enumerator->enumerate(enumerator, &cert))
{
- bool stored = FALSE;
x509_t *x509 = (x509_t*)cert;
if (!(x509->get_flags(x509) & X509_CA))