Fixed some typos, courtesy of codespell
This commit is contained in:
@@ -1979,7 +1979,7 @@ METHOD(kernel_ipsec_t, update_sa, status_t,
|
|||||||
}
|
}
|
||||||
#ifndef SADB_X_EXT_NEW_ADDRESS_SRC
|
#ifndef SADB_X_EXT_NEW_ADDRESS_SRC
|
||||||
/* we can't update the SA if any of the ip addresses have changed.
|
/* we can't update the SA if any of the ip addresses have changed.
|
||||||
* that's because we can't use SADB_UPDATE and by deleting and readding the
|
* that's because we can't use SADB_UPDATE and by deleting and re-adding the
|
||||||
* SA the sequence numbers would get lost */
|
* SA the sequence numbers would get lost */
|
||||||
if (!id->src->ip_equals(id->src, data->new_src) ||
|
if (!id->src->ip_equals(id->src, data->new_src) ||
|
||||||
!id->dst->ip_equals(id->dst, data->new_dst))
|
!id->dst->ip_equals(id->dst, data->new_dst))
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ struct retransmission_t {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum jitter to apply to calculated timeout (in percent). A random
|
* Maximum jitter to apply to calculated timeout (in percent). A random
|
||||||
* amount of value this will be subtracted from the calculated timeout.
|
* amount of that value will be subtracted from the calculated timeout.
|
||||||
*/
|
*/
|
||||||
u_int jitter;
|
u_int jitter;
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <collections/linked_list.h>
|
#include <collections/linked_list.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Timeout in seconds for acquries for the same reqid (i.e. the interval used
|
* Timeout in seconds for acquires for the same reqid (i.e. the interval used
|
||||||
* to trigger acquires while no SA is established).
|
* to trigger acquires while no SA is established).
|
||||||
*/
|
*/
|
||||||
#define ACQUIRE_TIMEOUT 10
|
#define ACQUIRE_TIMEOUT 10
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ METHOD(enumerator_t, signature_enumerate, bool,
|
|||||||
if (openssl_asn1_known_oid(sig->algorithm) == OID_RSA_ENCRYPTION)
|
if (openssl_asn1_known_oid(sig->algorithm) == OID_RSA_ENCRYPTION)
|
||||||
{
|
{
|
||||||
/* derive the signature scheme from the digest algorithm
|
/* derive the signature scheme from the digest algorithm
|
||||||
* for the classic PKCS#7 RSA mechansim */
|
* for the classic PKCS#7 RSA mechanism */
|
||||||
sig_alg.scheme = signature_scheme_from_oid(hash_oid);
|
sig_alg.scheme = signature_scheme_from_oid(hash_oid);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ static bool parse(private_pkcs7_signed_data_t *this, chunk_t content)
|
|||||||
info->digest_alg != OID_UNKNOWN)
|
info->digest_alg != OID_UNKNOWN)
|
||||||
{
|
{
|
||||||
/* derive the signature scheme from the digest algorithm
|
/* derive the signature scheme from the digest algorithm
|
||||||
* for the classic PKCS#7 RSA mechansim */
|
* for the classic PKCS#7 RSA mechanism */
|
||||||
info->sig_alg.scheme = signature_scheme_from_oid(
|
info->sig_alg.scheme = signature_scheme_from_oid(
|
||||||
info->digest_alg);
|
info->digest_alg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user