remove trailing whitespace
This commit is contained in:
@@ -112,7 +112,7 @@ try_decrypt(hx509_context context,
|
||||
EVP_CipherInit_ex(&ctx, c, NULL, key, ivdata, 0);
|
||||
EVP_Cipher(&ctx, clear.data, cipher, len);
|
||||
EVP_CIPHER_CTX_cleanup(&ctx);
|
||||
}
|
||||
}
|
||||
|
||||
ret = _hx509_collector_private_key_add(context,
|
||||
collector,
|
||||
@@ -138,7 +138,7 @@ parse_pkcs8_private_key(hx509_context context, const char *fn,
|
||||
{
|
||||
PKCS8PrivateKeyInfo ki;
|
||||
heim_octet_string keydata;
|
||||
|
||||
|
||||
int ret;
|
||||
|
||||
ret = decode_PKCS8PrivateKeyInfo(data, length, &ki, NULL);
|
||||
@@ -253,7 +253,7 @@ parse_pem_private_key(hx509_context context, const char *fn,
|
||||
"private key file");
|
||||
return HX509_PARSING_KEY_FAILED;
|
||||
}
|
||||
|
||||
|
||||
pw = _hx509_lock_get_passwords(lock);
|
||||
if (pw != NULL) {
|
||||
const void *password;
|
||||
@@ -262,8 +262,8 @@ parse_pem_private_key(hx509_context context, const char *fn,
|
||||
for (i = 0; i < pw->len; i++) {
|
||||
password = pw->val[i];
|
||||
passwordlen = strlen(password);
|
||||
|
||||
ret = try_decrypt(context, c, ai, cipher, ivdata,
|
||||
|
||||
ret = try_decrypt(context, c, ai, cipher, ivdata,
|
||||
password, passwordlen, data, len);
|
||||
if (ret == 0) {
|
||||
decrypted = 1;
|
||||
@@ -284,7 +284,7 @@ parse_pem_private_key(hx509_context context, const char *fn,
|
||||
|
||||
ret = hx509_lock_prompt(lock, &prompt);
|
||||
if (ret == 0)
|
||||
ret = try_decrypt(context, c, ai, cipher, ivdata, password,
|
||||
ret = try_decrypt(context, c, ai, cipher, ivdata, password,
|
||||
strlen(password), data, len);
|
||||
/* XXX add password to lock password collection ? */
|
||||
memset(password, 0, sizeof(password));
|
||||
@@ -340,7 +340,7 @@ pem_func(hx509_context context, const char *type,
|
||||
if (formats[j].ai != NULL)
|
||||
ai = (*formats[j].ai)();
|
||||
|
||||
ret = (*formats[j].func)(context, NULL, pem_ctx->c,
|
||||
ret = (*formats[j].func)(context, NULL, pem_ctx->c,
|
||||
header, data, len, ai);
|
||||
if (ret && (pem_ctx->flags & HX509_CERTS_UNPROTECT_ALL)) {
|
||||
hx509_set_error_string(context, HX509_ERROR_APPEND, ret,
|
||||
@@ -420,7 +420,7 @@ file_init_common(hx509_context context,
|
||||
pnext = strchr(p, ',');
|
||||
if (pnext)
|
||||
*pnext++ = '\0';
|
||||
|
||||
|
||||
|
||||
if ((f = fopen(p, "r")) == NULL) {
|
||||
ret = ENOENT;
|
||||
@@ -432,7 +432,7 @@ file_init_common(hx509_context context,
|
||||
rk_cloexec_file(f);
|
||||
|
||||
ret = hx509_pem_read(context, f, pem_func, &pem_ctx);
|
||||
fclose(f);
|
||||
fclose(f);
|
||||
if (ret != 0 && ret != HX509_PARSING_KEY_FAILED)
|
||||
goto out;
|
||||
else if (ret == HX509_PARSING_KEY_FAILED) {
|
||||
|
Reference in New Issue
Block a user