Use correct pointer types for various functions.
This commit is contained in:
parent
413e0853d7
commit
786aa98da1
@ -120,7 +120,7 @@ static int pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen,
|
|||||||
const unsigned char *tbs, size_t tbslen)
|
const unsigned char *tbs, size_t tbslen)
|
||||||
{
|
{
|
||||||
int ret, type;
|
int ret, type;
|
||||||
size_t sltmp;
|
unsigned int sltmp;
|
||||||
EC_PKEY_CTX *dctx = ctx->data;
|
EC_PKEY_CTX *dctx = ctx->data;
|
||||||
EC_KEY *ec = ctx->pkey->pkey.ec;
|
EC_KEY *ec = ctx->pkey->pkey.ec;
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ static int pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen,
|
|||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
*siglen = sltmp;
|
*siglen = (size_t)sltmp;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -829,7 +829,7 @@ int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si)
|
|||||||
EVP_PKEY_CTX *pctx;
|
EVP_PKEY_CTX *pctx;
|
||||||
unsigned char *abuf = NULL;
|
unsigned char *abuf = NULL;
|
||||||
int alen;
|
int alen;
|
||||||
unsigned int siglen;
|
size_t siglen;
|
||||||
const EVP_MD *md = NULL;
|
const EVP_MD *md = NULL;
|
||||||
|
|
||||||
md = EVP_get_digestbyobj(si->digest_alg->algorithm);
|
md = EVP_get_digestbyobj(si->digest_alg->algorithm);
|
||||||
|
@ -245,7 +245,7 @@ static int pkey_rsa_verifyrecover(EVP_PKEY_CTX *ctx,
|
|||||||
}
|
}
|
||||||
else if (rctx->pad_mode == RSA_PKCS1_PADDING)
|
else if (rctx->pad_mode == RSA_PKCS1_PADDING)
|
||||||
{
|
{
|
||||||
unsigned int sltmp;
|
size_t sltmp;
|
||||||
ret = int_rsa_verify(EVP_MD_type(rctx->md),
|
ret = int_rsa_verify(EVP_MD_type(rctx->md),
|
||||||
NULL, 0, rout, &sltmp,
|
NULL, 0, rout, &sltmp,
|
||||||
sig, siglen, ctx->pkey->pkey.rsa);
|
sig, siglen, ctx->pkey->pkey.rsa);
|
||||||
|
@ -189,7 +189,7 @@ struct X509_name_st
|
|||||||
#else
|
#else
|
||||||
char *bytes;
|
char *bytes;
|
||||||
#endif
|
#endif
|
||||||
unsigned long hash; /* Keep the hash around for lookups */
|
/* unsigned long hash; Keep the hash around for lookups */
|
||||||
unsigned char *canon_enc;
|
unsigned char *canon_enc;
|
||||||
int canon_enclen;
|
int canon_enclen;
|
||||||
} /* X509_NAME */;
|
} /* X509_NAME */;
|
||||||
|
Loading…
Reference in New Issue
Block a user