while ((entry = silc_dlist_get(silc_cipher_list)) != SILC_LIST_END) {
if (cipher == SILC_ALL_CIPHERS || entry == cipher) {
silc_dlist_del(silc_cipher_list, entry);
while ((entry = silc_dlist_get(silc_cipher_list)) != SILC_LIST_END) {
if (cipher == SILC_ALL_CIPHERS || entry == cipher) {
silc_dlist_del(silc_cipher_list, entry);