Fixed some typos, courtesy of codespell
This commit is contained in:
@@ -35,7 +35,7 @@ struct nonce_gen_t {
|
||||
*
|
||||
* @param size size of nonce in bytes
|
||||
* @param buffer pointer where the generated nonce will be written
|
||||
* @return TRUE if nonce allocation was succesful, FALSE otherwise
|
||||
* @return TRUE if nonce allocation was successful, FALSE otherwise
|
||||
*/
|
||||
bool (*get_nonce)(nonce_gen_t *this, size_t size,
|
||||
u_int8_t *buffer) __attribute__((warn_unused_result));
|
||||
@@ -45,7 +45,7 @@ struct nonce_gen_t {
|
||||
*
|
||||
* @param size size of nonce in bytes
|
||||
* @param chunk chunk which will hold the generated nonce
|
||||
* @return TRUE if nonce allocation was succesful, FALSE otherwise
|
||||
* @return TRUE if nonce allocation was successful, FALSE otherwise
|
||||
*/
|
||||
bool (*allocate_nonce)(nonce_gen_t *this, size_t size,
|
||||
chunk_t *chunk) __attribute__((warn_unused_result));
|
||||
|
||||
@@ -211,7 +211,7 @@ static status_t compute_prime(size_t prime_size, bool safe, mpz_t *p, mpz_t *q)
|
||||
|
||||
rng->destroy(rng);
|
||||
|
||||
/* additonally return p-1 */
|
||||
/* additionally return p-1 */
|
||||
mpz_sub_ui(*q, *p, 1);
|
||||
|
||||
return SUCCESS;
|
||||
|
||||
@@ -116,7 +116,7 @@ pkcs7_t *pkcs7_generic_load(container_type_t type, va_list args)
|
||||
{
|
||||
if (blob.len >= 2 &&
|
||||
blob.ptr[0] == ASN1_SEQUENCE && blob.ptr[1] == 0x80)
|
||||
{ /* looks like infinite lenght BER encoding, but we can't handle it.
|
||||
{ /* looks like infinite length BER encoding, but we can't handle it.
|
||||
* ignore silently, our openssl backend can handle it */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user