Fix order of PURGE_* flags to be compatible with STROKE_PURGE_* keywords
authorMartin Willi <martin@revosec.ch>
Wed, 23 Mar 2011 08:28:40 +0000 (09:28 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 23 Mar 2011 08:28:40 +0000 (09:28 +0100)
src/stroke/stroke.c
src/stroke/stroke_msg.h

index a88fa10..2c5a03d 100644 (file)
@@ -285,9 +285,9 @@ static int reread(stroke_keyword_t kw)
 
 static int purge_flags[] = {
        PURGE_OCSP,
-       PURGE_IKE,
        PURGE_CRLS,
        PURGE_CERTS,
+       PURGE_IKE,
 };
 
 static int purge(stroke_keyword_t kw)
index 3af2b70..9800d43 100644 (file)
@@ -105,12 +105,12 @@ enum purge_flag_t {
        PURGE_NONE =            0x0000,
        /** purge ocsp cache entries */
        PURGE_OCSP =            0x0001,
-       /** purge IKE_SAs without a CHILD_SA */
-       PURGE_IKE =                     0x0002,
        /** purge CRL cache entries */
-       PURGE_CRLS =            0x0004,
+       PURGE_CRLS =            0x0002,
        /** purge X509 cache entries */
-       PURGE_CERTS =           0x0008,
+       PURGE_CERTS =           0x0004,
+       /** purge IKE_SAs without a CHILD_SA */
+       PURGE_IKE =                     0x0008,
 };
 
 typedef enum export_flag_t export_flag_t;