diff options
author | Martin Willi <martin@strongswan.org> | 2006-10-26 09:46:56 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-10-26 09:46:56 +0000 |
commit | b83806d83d9170487120c688d39be4a9abda3fad (patch) | |
tree | 0cbef6c1774a1c9f7b66fe5a7b6106746cb302f6 /src/charon/encoding/payloads/proposal_substructure.c | |
parent | 80d35dd6d3c6366396def278b510d1ac10fe6195 (diff) | |
download | strongswan-b83806d83d9170487120c688d39be4a9abda3fad.tar.bz2 strongswan-b83806d83d9170487120c688d39be4a9abda3fad.tar.xz |
improved signal handling and emitting
Diffstat (limited to 'src/charon/encoding/payloads/proposal_substructure.c')
-rw-r--r-- | src/charon/encoding/payloads/proposal_substructure.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/charon/encoding/payloads/proposal_substructure.c b/src/charon/encoding/payloads/proposal_substructure.c index 3351c8a14..bb18c799b 100644 --- a/src/charon/encoding/payloads/proposal_substructure.c +++ b/src/charon/encoding/payloads/proposal_substructure.c @@ -147,13 +147,13 @@ static status_t verify(private_proposal_substructure_t *this) if ((this->next_payload != NO_PAYLOAD) && (this->next_payload != 2)) { /* must be 0 or 2 */ - DBG1(SIG_DBG_ENC, "inconsistent next payload"); + DBG1(DBG_ENC, "inconsistent next payload"); return FAILED; } if (this->transforms_count != this->transforms->get_count(this->transforms)) { /* must be the same! */ - DBG1(SIG_DBG_ENC, "transform count invalid"); + DBG1(DBG_ENC, "transform count invalid"); return FAILED; } @@ -163,7 +163,7 @@ static status_t verify(private_proposal_substructure_t *this) case PROTO_ESP: if (this->spi.len != 4) { - DBG1(SIG_DBG_ENC, "invalid SPI length in %N proposal", + DBG1(DBG_ENC, "invalid SPI length in %N proposal", protocol_id_names, this->protocol_id); return FAILED; } @@ -171,18 +171,18 @@ static status_t verify(private_proposal_substructure_t *this) case PROTO_IKE: if (this->spi.len != 0 && this->spi.len != 8) { - DBG1(SIG_DBG_ENC, "invalid SPI length in IKE proposal"); + DBG1(DBG_ENC, "invalid SPI length in IKE proposal"); return FAILED; } break; default: - DBG1(SIG_DBG_ENC, "invalid proposal protocol (%d)", this->protocol_id); + DBG1(DBG_ENC, "invalid proposal protocol (%d)", this->protocol_id); return FAILED; } if ((this->protocol_id == 0) || (this->protocol_id >= 4)) { /* reserved are not supported */ - DBG1(SIG_DBG_ENC, "invalid protocol"); + DBG1(DBG_ENC, "invalid protocol"); return FAILED; } @@ -192,7 +192,7 @@ static status_t verify(private_proposal_substructure_t *this) status = current_transform->verify(current_transform); if (status != SUCCESS) { - DBG1(SIG_DBG_ENC, "TRANSFORM_SUBSTRUCTURE verification failed"); + DBG1(DBG_ENC, "TRANSFORM_SUBSTRUCTURE verification failed"); break; } } |