Lines Matching refs:cur_crypto_keys
585 utun_crypto_keys_t *cur_crypto_keys, *nxt_crypto_keys;
595 for (cur_crypto_keys = (__typeof__(cur_crypto_keys))LIST_FIRST(&crypto_ctx->keys_listhead);
596 cur_crypto_keys != NULL;
597 cur_crypto_keys = nxt_crypto_keys) {
598 nxt_crypto_keys = (__typeof__(nxt_crypto_keys))LIST_NEXT(cur_crypto_keys, chain);
600 if (!cur_crypto_keys->valid) {
604 if (IF_UTUN_GET_CRYPTO_KEYS_IPSEC_SAV(cur_crypto_keys)) {
605 (void)utun_ipsec_free_sav(&IF_UTUN_GET_CRYPTO_KEYS_IPSEC_SAV(cur_crypto_keys));
608 if (IF_UTUN_GET_CRYPTO_KEYS_IPSEC_SAH(cur_crypto_keys)) {
609 (void)utun_ipsec_clr_sahs(&IF_UTUN_GET_CRYPTO_KEYS_IPSEC_SAH(cur_crypto_keys));
612 LIST_REMOVE(cur_crypto_keys, chain);
613 bzero(cur_crypto_keys, sizeof(*cur_crypto_keys));
614 utun_free(cur_crypto_keys);