diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-30 09:11:48 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-30 09:11:48 +0000 |
commit | ee29afd42b721e84fb4de942fb8d7e784da28b49 (patch) | |
tree | ecff9f4b215286a126c2bbdd6f3a91c526911a0e /Source/charon/encoding/payloads | |
parent | 63bfd6cc7cd6e58b250c10029bde3d5790a68c04 (diff) | |
download | strongswan-ee29afd42b721e84fb4de942fb8d7e784da28b49.tar.bz2 strongswan-ee29afd42b721e84fb4de942fb8d7e784da28b49.tar.xz |
- fixed encryption bug
Diffstat (limited to 'Source/charon/encoding/payloads')
-rw-r--r-- | Source/charon/encoding/payloads/encryption_payload.c | 54 |
1 files changed, 1 insertions, 53 deletions
diff --git a/Source/charon/encoding/payloads/encryption_payload.c b/Source/charon/encoding/payloads/encryption_payload.c index 4acfa61cf..1212937af 100644 --- a/Source/charon/encoding/payloads/encryption_payload.c +++ b/Source/charon/encoding/payloads/encryption_payload.c @@ -159,59 +159,7 @@ encoding_rule_t encryption_payload_encodings[] = { */ static status_t verify(private_encryption_payload_t *this) { -// int proposal_number = 1; - status_t status; -// iterator_t *iterator; -// bool first = TRUE; -// -// if (this->critical) -// { -// /* critical bit set! */ -// return FAILED; -// } -// -// /* check proposal numbering */ -// status = this->proposals->create_iterator(this->proposals,&iterator,TRUE); -// if (status != SUCCESS) -// { -// return status; -// } -// -// while(iterator->has_next(iterator)) -// { -// proposal_substructure_t *current_proposal; -// status = iterator->current(iterator,(void **)¤t_proposal); -// { -// break; -// } -// if (current_proposal->get_proposal_number(current_proposal) > proposal_number) -// { -// if (first) -// { -// /* first number must be 1 */ -// status = FAILED; -// break; -// } -// -// if (current_proposal->get_proposal_number(current_proposal) != (proposal_number + 1)) -// { -// /* must be only one more then previous proposal */ -// status = FAILED; -// break; -// } -// } -// else if (current_proposal->get_proposal_number(current_proposal) < proposal_number) -// { -// iterator->destroy(iterator); -// /* must not be smaller then proceeding one */ -// status = FAILED; -// break; -// } -// first = FALSE; -// } -// -// iterator->destroy(iterator); - return status; + return SUCCESS; } /** |