more concise listing of ESP algorithms
[strongswan.git] / src / pluto / rcv_whack.c
index 01f721e..013deb4 100644 (file)
@@ -480,11 +480,6 @@ whack_handle(int whackctlfd)
                free_ocsp_cache();
        }
 
-       if (msg.whack_list & LIST_ALGS)
-       {
-               ike_alg_list();
-               kernel_alg_list();
-       }
    if (msg.whack_list & LIST_PUBKEYS)
        {
                list_public_keys(msg.whack_utc);
@@ -542,6 +537,12 @@ whack_handle(int whackctlfd)
                scx_list(msg.whack_utc);
        }
 
+       if (msg.whack_list & LIST_ALGS)
+       {
+               ike_alg_list();
+               kernel_alg_list();
+       }
+
        if (msg.whack_key)
        {
                /* add a public key */