Spelling fixes
* accumulating * acquire * alignment * appropriate * argument * assign * attribute * authenticate * authentication * authenticator * authority * auxiliary * brackets * callback * camellia * can't * cancelability * certificate * choinyambuu * chunk * collector * collision * communicating * compares * compatibility * compressed * confidentiality * configuration * connection * consistency * constraint * construction * constructor * database * decapsulated * declaration * decrypt * derivative * destination * destroyed * details * devised * dynamic * ecapsulation * encoded * encoding * encrypted * enforcing * enumerator * establishment * excluded * exclusively * exited * expecting * expire * extension * filter * firewall * foundation * fulfillment * gateways * hashing * hashtable * heartbeats * identifier * identifiers * identities * identity * implementers * indicating * initialize * initiate * initiation * initiator * inner * instantiate * legitimate * libraries * libstrongswan * logger * malloc * manager * manually * measurement * mechanism * message * network * nonexistent * object * occurrence * optional * outgoing * packages * packets * padding * particular * passphrase * payload * periodically * policies * possible * previously * priority * proposal * protocol * provide * provider * pseudo * pseudonym * public * qualifier * quantum * quintuplets * reached * reading * recommendation to * recommendation * recursive * reestablish * referencing * registered * rekeying * reliable * replacing * representing * represents * request * request * resolver * result * resulting * resynchronization * retriable * revocation * right * rollback * rule * rules * runtime * scenario * scheduled * security * segment * service * setting * signature * specific * specified * speed * started * steffen * strongswan * subjectaltname * supported * threadsafe * traffic * tremendously * treshold * unique * uniqueness * unknown * until * upper * using * validator * verification * version * version * warrior Closes strongswan/strongswan#164.
This commit is contained in:
committed by
Tobias Brunner
parent
baf29263d5
commit
b3ab7a48cc
@@ -78,9 +78,9 @@ typedef struct {
|
||||
/* Payload type */
|
||||
payload_type_t type;
|
||||
/* Minimal occurrence of this payload. */
|
||||
size_t min_occurence;
|
||||
size_t min_occurrence;
|
||||
/* Max occurrence of this payload. */
|
||||
size_t max_occurence;
|
||||
size_t max_occurrence;
|
||||
/* TRUE if payload must be encrypted */
|
||||
bool encrypted;
|
||||
/* If payload occurs, the message rule is fulfilled */
|
||||
@@ -1653,7 +1653,7 @@ static ike_header_t *create_header(private_message_t *this)
|
||||
/**
|
||||
* Generates the message, if needed, wraps the payloads in an encrypted payload.
|
||||
*
|
||||
* The generator and the possible enrypted payload are returned. The latter
|
||||
* The generator and the possible encrypted payload are returned. The latter
|
||||
* is not yet encrypted (but the transform is set). It is also not added to
|
||||
* the payload list (so unless there are unencrypted payloads that list will
|
||||
* be empty afterwards).
|
||||
@@ -2600,11 +2600,11 @@ static status_t verify(private_message_t *this)
|
||||
found++;
|
||||
DBG2(DBG_ENC, "found payload of type %N",
|
||||
payload_type_names, type);
|
||||
if (found > rule->max_occurence)
|
||||
if (found > rule->max_occurrence)
|
||||
{
|
||||
DBG1(DBG_ENC, "payload of type %N more than %d times (%d) "
|
||||
"occurred in current message", payload_type_names,
|
||||
type, rule->max_occurence, found);
|
||||
type, rule->max_occurrence, found);
|
||||
enumerator->destroy(enumerator);
|
||||
return VERIFY_ERROR;
|
||||
}
|
||||
@@ -2612,10 +2612,10 @@ static status_t verify(private_message_t *this)
|
||||
}
|
||||
enumerator->destroy(enumerator);
|
||||
|
||||
if (!complete && found < rule->min_occurence)
|
||||
if (!complete && found < rule->min_occurrence)
|
||||
{
|
||||
DBG1(DBG_ENC, "payload of type %N not occurred %d times (%d)",
|
||||
payload_type_names, rule->type, rule->min_occurence, found);
|
||||
payload_type_names, rule->type, rule->min_occurrence, found);
|
||||
return VERIFY_ERROR;
|
||||
}
|
||||
if (found && rule->sufficient)
|
||||
|
||||
@@ -391,7 +391,7 @@ METHOD(parser_t, parse_payload, status_t,
|
||||
|
||||
/* base pointer for output, avoids casting in every rule */
|
||||
output = pld;
|
||||
/* parse the payload with its own rulse */
|
||||
/* parse the payload with its own rules */
|
||||
rule_count = pld->get_encoding_rules(pld, &this->rules);
|
||||
for (rule_number = 0; rule_number < rule_count; rule_number++)
|
||||
{
|
||||
@@ -618,7 +618,7 @@ METHOD(parser_t, parse_payload, status_t,
|
||||
return PARSE_ERROR;
|
||||
}
|
||||
}
|
||||
/* process next rulue */
|
||||
/* process next rule */
|
||||
rule++;
|
||||
}
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ struct cp_payload_t {
|
||||
/**
|
||||
* Creates an enumerator of stored configuration_attribute_t objects.
|
||||
*
|
||||
* @return enumerator over configration_attribute_T
|
||||
* @return enumerator over configuration_attribute_t
|
||||
*/
|
||||
enumerator_t *(*create_attribute_enumerator) (cp_payload_t *this);
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ static encoding_rule_t encodings[] = {
|
||||
{ RESERVED_BIT, offsetof(private_eap_payload_t, reserved[6]) },
|
||||
/* Length of the whole payload*/
|
||||
{ PAYLOAD_LENGTH, offsetof(private_eap_payload_t, payload_length) },
|
||||
/* chunt to data, starting at "code" */
|
||||
/* chunk to data, starting at "code" */
|
||||
{ CHUNK_DATA, offsetof(private_eap_payload_t, data) },
|
||||
};
|
||||
|
||||
|
||||
@@ -179,7 +179,7 @@ enum encoding_type_t {
|
||||
/**
|
||||
* Representing a spi field.
|
||||
*
|
||||
* When generating the content of the chunkt pointing to
|
||||
* When generating the content of the chunk pointing to
|
||||
* is written.
|
||||
*
|
||||
* When parsing SPI_SIZE bytes are read and written into the chunk pointing to.
|
||||
@@ -248,7 +248,7 @@ enum encoding_type_t {
|
||||
* this field is available or missing and so parsed/generated
|
||||
* or not parsed/not generated.
|
||||
*
|
||||
* When generating the content of the chunkt pointing to
|
||||
* When generating the content of the chunk pointing to
|
||||
* is written.
|
||||
*
|
||||
* When parsing SPI_SIZE bytes are read and written into the chunk pointing to.
|
||||
@@ -274,7 +274,7 @@ enum encoding_type_t {
|
||||
* Depending on the last field of type TS_TYPE
|
||||
* this field is either 4 or 16 byte long.
|
||||
*
|
||||
* When generating the content of the chunkt pointing to
|
||||
* When generating the content of the chunk pointing to
|
||||
* is written.
|
||||
*
|
||||
* When parsing 4 or 16 bytes are read and written into the chunk pointing to.
|
||||
@@ -290,7 +290,7 @@ enum encoding_type_t {
|
||||
* Representing an IKE_SPI field in an IKEv2 Header.
|
||||
*
|
||||
* When generating the value of the uint64_t pointing to
|
||||
* is written (host and networ order is not changed).
|
||||
* is written (host and network order is not changed).
|
||||
*
|
||||
* When parsing 8 bytes are read and written into the uint64_t pointing to.
|
||||
*/
|
||||
@@ -302,7 +302,7 @@ enum encoding_type_t {
|
||||
ENCRYPTED_DATA,
|
||||
|
||||
/**
|
||||
* Reprensenting a field containing a set of wrapped payloads.
|
||||
* Representing a field containing a set of wrapped payloads.
|
||||
*
|
||||
* This type is not used directly, but as an offset to the wrapped payloads.
|
||||
* The type of the wrapped payload is added to this encoding type.
|
||||
|
||||
@@ -61,7 +61,7 @@ struct fragment_payload_t {
|
||||
/**
|
||||
* Get the fragment data.
|
||||
*
|
||||
* @return chunkt to internal fragment data
|
||||
* @return chunk to internal fragment data
|
||||
*/
|
||||
chunk_t (*get_data)(fragment_payload_t *this);
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ struct hash_payload_t {
|
||||
/**
|
||||
* Get the hash value.
|
||||
*
|
||||
* @return chunkt to internal hash data
|
||||
* @return chunk to internal hash data
|
||||
*/
|
||||
chunk_t (*get_hash) (hash_payload_t *this);
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ id_payload_t *id_payload_create_from_identification(payload_type_t type,
|
||||
* Create an IKEv1 ID_ADDR_SUBNET/RANGE identity from a traffic selector.
|
||||
*
|
||||
* @param ts traffic selector
|
||||
* @return PLV1_ID id_paylad_t object.
|
||||
* @return PLV1_ID id_payload_t object.
|
||||
*/
|
||||
id_payload_t *id_payload_create_from_ts(traffic_selector_t *ts);
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@ enum payload_type_t {
|
||||
PLV2_NONCE = 40,
|
||||
|
||||
/**
|
||||
* Notify paylaod (N).
|
||||
* Notify payload (N).
|
||||
*/
|
||||
PLV2_NOTIFY = 41,
|
||||
|
||||
@@ -178,7 +178,7 @@ enum payload_type_t {
|
||||
PLV2_DELETE = 42,
|
||||
|
||||
/**
|
||||
* Vendor id paylpoad (V).
|
||||
* Vendor id payload (V).
|
||||
*/
|
||||
PLV2_VENDOR_ID = 43,
|
||||
|
||||
@@ -382,9 +382,9 @@ struct payload_t {
|
||||
size_t (*get_length) (payload_t *this);
|
||||
|
||||
/**
|
||||
* Verifies payload structure and makes consistence check.
|
||||
* Verifies payload structure and makes consistency check.
|
||||
*
|
||||
* @return SUCCESS, FAILED if consistence not given
|
||||
* @return SUCCESS, FAILED if consistency not given
|
||||
*/
|
||||
status_t (*verify) (payload_t *this);
|
||||
|
||||
@@ -399,7 +399,7 @@ struct payload_t {
|
||||
*
|
||||
* Useful for the parser, who wants a generic constructor for all payloads.
|
||||
* It supports all payload_t methods. If a payload type is not known,
|
||||
* an unknwon_paylod is created with the chunk of data in it.
|
||||
* an unknown_payload is created with the chunk of data in it.
|
||||
*
|
||||
* @param type type of the payload to create
|
||||
* @return payload_t object
|
||||
|
||||
@@ -117,7 +117,7 @@ struct proposal_substructure_t {
|
||||
bool (*get_cpi) (proposal_substructure_t *this, uint16_t *cpi);
|
||||
|
||||
/**
|
||||
* Get proposals contained in a propsal_substructure_t.
|
||||
* Get proposals contained in a proposal_substructure_t.
|
||||
*
|
||||
* @param list list to add created proposals to
|
||||
*/
|
||||
|
||||
@@ -134,7 +134,7 @@ struct traffic_selector_substructure_t {
|
||||
traffic_selector_substructure_t *traffic_selector_substructure_create(void);
|
||||
|
||||
/**
|
||||
* Creates an initialized traffif selector substructure using
|
||||
* Creates an initialized traffic selector substructure using
|
||||
* the values from a traffic_selector_t.
|
||||
*
|
||||
* @param traffic_selector traffic_selector_t to use for initialization
|
||||
|
||||
Reference in New Issue
Block a user