diff options
author | Martin Willi <martin@strongswan.org> | 2006-03-23 15:25:43 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-03-23 15:25:43 +0000 |
commit | dec598220b9a293c4ec75e593ab642a8945fa4fc (patch) | |
tree | a97247afbdb29e2b071933f8c9667a7ffa03cca3 /Source/charon/encoding/payloads/delete_payload.c | |
parent | 3264ce50b912f2aba09d2d8e7ee7ed9d364d9e46 (diff) | |
download | strongswan-dec598220b9a293c4ec75e593ab642a8945fa4fc.tar.bz2 strongswan-dec598220b9a293c4ec75e593ab642a8945fa4fc.tar.xz |
- rewrite of logger_manager, uses now one instance per context
- cleanups for logger here and there
- removed critical flag check in payload verification (conformance to IKEv2)
- so thats and theres everywere... ;-)
Diffstat (limited to 'Source/charon/encoding/payloads/delete_payload.c')
-rw-r--r-- | Source/charon/encoding/payloads/delete_payload.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/charon/encoding/payloads/delete_payload.c b/Source/charon/encoding/payloads/delete_payload.c index 21f064e51..59d877945 100644 --- a/Source/charon/encoding/payloads/delete_payload.c +++ b/Source/charon/encoding/payloads/delete_payload.c @@ -121,11 +121,6 @@ encoding_rule_t delete_payload_encodings[] = { */ static status_t verify(private_delete_payload_t *this) { - if (this->critical) - { - /* critical bit is set! */ - return FAILED; - } if ((this->protocol_id == 0) || (this->protocol_id > 3)) { @@ -136,7 +131,7 @@ static status_t verify(private_delete_payload_t *this) { return FAILED; } - if ((this->protocol_id == IKE) && (this->spis.len != 0)) + if ((this->protocol_id == PROTO_IKE) && (this->spis.len != 0)) { /* IKE deletion has no spi assigned! */ return FAILED; @@ -318,7 +313,7 @@ delete_payload_t *delete_payload_create() this->critical = FALSE; this->next_payload = NO_PAYLOAD; this->payload_length =DELETE_PAYLOAD_HEADER_LENGTH; - this->protocol_id = UNDEFINED_PROTOCOL_ID; + this->protocol_id = PROTO_NONE; this->spi_size = 0; this->spi_count = 0; this->spis = CHUNK_INITIALIZER; |