tree-wide: fix typo
This commit is contained in:
@@ -112,7 +112,7 @@ int openssl_digest_many(
|
||||
return log_openssl_errors("Failed to create new EVP_MD_CTX");
|
||||
|
||||
if (!EVP_DigestInit_ex(ctx, md, NULL))
|
||||
return log_openssl_errors("Failed to initializate EVP_MD_CTX");
|
||||
return log_openssl_errors("Failed to initialize EVP_MD_CTX");
|
||||
|
||||
for (size_t i = 0; i < n_data; i++)
|
||||
if (!EVP_DigestUpdate(ctx, data[i].iov_base, data[i].iov_len))
|
||||
@@ -188,7 +188,7 @@ int openssl_hmac_many(
|
||||
return log_openssl_errors("Failed to build HMAC OSSL_PARAM");
|
||||
|
||||
if (!EVP_MAC_init(ctx, key, key_size, params))
|
||||
return log_openssl_errors("Failed to initializate EVP_MAC_CTX");
|
||||
return log_openssl_errors("Failed to initialize EVP_MAC_CTX");
|
||||
#else
|
||||
_cleanup_(HMAC_CTX_freep) HMAC_CTX *ctx = HMAC_CTX_new();
|
||||
if (!ctx)
|
||||
|
||||
@@ -391,7 +391,7 @@ int pkcs11_token_login(
|
||||
if (r != -ENOLCK)
|
||||
return r;
|
||||
|
||||
/* Referesh the token info, so that we can prompt knowing the new flags if they changed. */
|
||||
/* Refresh the token info, so that we can prompt knowing the new flags if they changed. */
|
||||
rv = m->C_GetTokenInfo(slotid, &updated_token_info);
|
||||
if (rv != CKR_OK)
|
||||
return log_error_errno(SYNTHETIC_ERRNO(EIO),
|
||||
|
||||
@@ -53,7 +53,7 @@ int serialize_item_escaped(FILE *f, const char *key, const char *value) {
|
||||
|
||||
int serialize_item_format(FILE *f, const char *key, const char *format, ...) {
|
||||
_cleanup_free_ char *allocated = NULL;
|
||||
char buf[256]; /* Something resonably short that fits nicely on any stack (i.e. is considerably less
|
||||
char buf[256]; /* Something reasonably short that fits nicely on any stack (i.e. is considerably less
|
||||
* than LONG_LINE_MAX (1MiB!) */
|
||||
const char *b;
|
||||
va_list ap;
|
||||
|
||||
@@ -670,7 +670,7 @@ int tpm2_context_new(const char *device, Tpm2Context **ret_context) {
|
||||
|
||||
r = tpm2_cache_capabilities(context);
|
||||
if (r < 0)
|
||||
return log_debug_errno(r, "Failed to cache TPM capbilities: %m");
|
||||
return log_debug_errno(r, "Failed to cache TPM capabilities: %m");
|
||||
|
||||
/* We require AES and CFB support for session encryption. */
|
||||
if (!tpm2_supports_alg(context, TPM2_ALG_AES))
|
||||
@@ -862,7 +862,7 @@ int tpm2_index_from_handle(Tpm2Context *c, const Tpm2Handle *handle, TPM2_HANDLE
|
||||
*
|
||||
* Returns 1 if the object was successfully persisted, or 0 if there is already a key at the requested
|
||||
* handle, or < 0 on error. Theoretically, this would also return 0 if no specific persistent handle is
|
||||
* requiested but all persistent handles are used, but it is extremely unlikely the TPM has enough internal
|
||||
* requested but all persistent handles are used, but it is extremely unlikely the TPM has enough internal
|
||||
* memory to store the entire persistent range, in which case an error will be returned if the TPM is out of
|
||||
* memory for persistent storage. The persistent handle is only provided when returning 1. */
|
||||
static int tpm2_persist_handle(
|
||||
@@ -4636,7 +4636,7 @@ int tpm2_extend_bytes(
|
||||
values.count++;
|
||||
}
|
||||
|
||||
/* Open + lock the log file *before* we start measuring, so that noone else can come between our log
|
||||
/* Open + lock the log file *before* we start measuring, so that no one else can come between our log
|
||||
* and our measurement and change either */
|
||||
log_fd = tpm2_userspace_log_open();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user