}
header += 11;
if (*header != '4')
- return(0);
+ return (0);
header++;
if (*header != ',')
- return(0);
+ return (0);
header++;
if (strncmp(header, "ENCRYPTED", 9) != 0) {
PEMerr(PEM_F_PEM_GET_EVP_CIPHER_INFO, PEM_R_NOT_ENCRYPTED);
ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);
if (!ameth || !ameth->old_priv_decode)
goto p8err;
- ret = d2i_PrivateKey(ameth->pkey_id, x,&p, len);
+ ret = d2i_PrivateKey(ameth->pkey_id, x, &p, len);
}
p8err:
(void) snprintf(pem_str, sizeof(pem_str), "%s PRIVATE KEY",
x->ameth->pem_str);
return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
- pem_str, bp, x,enc, kstr, klen, cb, u);
+ pem_str, bp, x, enc, kstr, klen, cb, u);
}
EVP_PKEY *
(void) snprintf(pem_str, sizeof(pem_str), "%s PARAMETERS",
x->ameth->pem_str);
return PEM_ASN1_write_bio((i2d_of_void *)x->ameth->param_encode,
- pem_str, bp, x,NULL, NULL, 0,0, NULL);
+ pem_str, bp, x, NULL, NULL, 0, 0, NULL);
}
#ifndef OPENSSL_NO_FP_API
return (0);
}
BIO_set_fp(b, fp, BIO_NOCLOSE);
- ret = PEM_read_bio_PrivateKey(b, x,cb, u);
+ ret = PEM_read_bio_PrivateKey(b, x, cb, u);
BIO_free(b);
return (ret);
}
EVP_EncodeFinal(&ctx->encode, out, &j);
*outl += j;
- if (!EVP_SignFinal(&ctx->md, s,&i, priv))
+ if (!EVP_SignFinal(&ctx->md, s, &i, priv))
goto err;
*sigl = EVP_EncodeBlock(sig, s, i);
goto err;
}
- if (EVP_SignFinal(ctx, m,&m_len, pkey) <= 0)
+ if (EVP_SignFinal(ctx, m, &m_len, pkey) <= 0)
goto err;
i = EVP_EncodeBlock(sigret, m, m_len);
}
header += 11;
if (*header != '4')
- return(0);
+ return (0);
header++;
if (*header != ',')
- return(0);
+ return (0);
header++;
if (strncmp(header, "ENCRYPTED", 9) != 0) {
PEMerr(PEM_F_PEM_GET_EVP_CIPHER_INFO, PEM_R_NOT_ENCRYPTED);
ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen);
if (!ameth || !ameth->old_priv_decode)
goto p8err;
- ret = d2i_PrivateKey(ameth->pkey_id, x,&p, len);
+ ret = d2i_PrivateKey(ameth->pkey_id, x, &p, len);
}
p8err:
(void) snprintf(pem_str, sizeof(pem_str), "%s PRIVATE KEY",
x->ameth->pem_str);
return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
- pem_str, bp, x,enc, kstr, klen, cb, u);
+ pem_str, bp, x, enc, kstr, klen, cb, u);
}
EVP_PKEY *
(void) snprintf(pem_str, sizeof(pem_str), "%s PARAMETERS",
x->ameth->pem_str);
return PEM_ASN1_write_bio((i2d_of_void *)x->ameth->param_encode,
- pem_str, bp, x,NULL, NULL, 0,0, NULL);
+ pem_str, bp, x, NULL, NULL, 0, 0, NULL);
}
#ifndef OPENSSL_NO_FP_API
return (0);
}
BIO_set_fp(b, fp, BIO_NOCLOSE);
- ret = PEM_read_bio_PrivateKey(b, x,cb, u);
+ ret = PEM_read_bio_PrivateKey(b, x, cb, u);
BIO_free(b);
return (ret);
}
EVP_EncodeFinal(&ctx->encode, out, &j);
*outl += j;
- if (!EVP_SignFinal(&ctx->md, s,&i, priv))
+ if (!EVP_SignFinal(&ctx->md, s, &i, priv))
goto err;
*sigl = EVP_EncodeBlock(sig, s, i);
goto err;
}
- if (EVP_SignFinal(ctx, m,&m_len, pkey) <= 0)
+ if (EVP_SignFinal(ctx, m, &m_len, pkey) <= 0)
goto err;
i = EVP_EncodeBlock(sigret, m, m_len);