mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
ikev2: Mark IKE_SAs that used PPK during authentication
This commit is contained in:
parent
6627706786
commit
e4d85011e4
@ -232,6 +232,11 @@ enum ike_condition_t {
|
||||
* Online certificate revocation checking is suspended for this IKE_SA
|
||||
*/
|
||||
COND_ONLINE_VALIDATION_SUSPENDED = (1<<12),
|
||||
|
||||
/**
|
||||
* A Postquantum Preshared Key was used when this IKE_SA was created
|
||||
*/
|
||||
COND_PPK = (1<<13),
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -937,6 +937,7 @@ static bool apply_ppk(private_ike_auth_t *this)
|
||||
return FALSE;
|
||||
}
|
||||
DBG1(DBG_CFG, "using PPK for PPK_ID '%Y'", this->ppk_id);
|
||||
this->ike_sa->set_condition(this->ike_sa, COND_PPK, TRUE);
|
||||
}
|
||||
clear_ppk(this);
|
||||
return TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user