mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-15 00:00:16 -04:00
charon-tkm: Claim to support SPIs on policies
This fixes rekeying as the delayed installation of the outbound SA caused the nonce context to be expired already.
This commit is contained in:
parent
a146b4c9ef
commit
0d42a76275
@ -52,6 +52,12 @@ struct private_tkm_kernel_ipsec_t {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
METHOD(kernel_ipsec_t, get_features, kernel_feature_t,
|
||||||
|
private_tkm_kernel_ipsec_t *this)
|
||||||
|
{
|
||||||
|
return KERNEL_POLICY_SPI;
|
||||||
|
}
|
||||||
|
|
||||||
METHOD(kernel_ipsec_t, get_spi, status_t,
|
METHOD(kernel_ipsec_t, get_spi, status_t,
|
||||||
private_tkm_kernel_ipsec_t *this, host_t *src, host_t *dst,
|
private_tkm_kernel_ipsec_t *this, host_t *src, host_t *dst,
|
||||||
uint8_t protocol, uint32_t *spi)
|
uint8_t protocol, uint32_t *spi)
|
||||||
@ -358,6 +364,7 @@ tkm_kernel_ipsec_t *tkm_kernel_ipsec_create()
|
|||||||
INIT(this,
|
INIT(this,
|
||||||
.public = {
|
.public = {
|
||||||
.interface = {
|
.interface = {
|
||||||
|
.get_features = _get_features,
|
||||||
.get_spi = _get_spi,
|
.get_spi = _get_spi,
|
||||||
.get_cpi = _get_cpi,
|
.get_cpi = _get_cpi,
|
||||||
.add_sa = _add_sa,
|
.add_sa = _add_sa,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user