Fix some warnings.

This commit is contained in:
Dr. Stephen Henson
2008-03-16 20:59:10 +00:00
parent 7e8481afd1
commit 7c337e00d2
5 changed files with 9 additions and 5 deletions

View File

@@ -87,7 +87,8 @@ int ASN1_TYPE_set1(ASN1_TYPE *a, int type, const void *value)
{
if (!value || (type == V_ASN1_BOOLEAN))
{
ASN1_TYPE_set(a, type, (void *)value);
void *p = (void *)value;
ASN1_TYPE_set(a, type, p);
}
else if (type == V_ASN1_OBJECT)
{

View File

@@ -309,6 +309,8 @@ static int cms_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it,
CMS_ContentInfo *cms;
if (pval)
cms = (CMS_ContentInfo *)*pval;
else
return 1;
switch(operation)
{

View File

@@ -206,8 +206,9 @@ static int pkey_hmac_ctrl_str(EVP_PKEY_CTX *ctx,
}
if (!strcmp(type, "key"))
{
void *p = (void *)value;
return pkey_hmac_ctrl(ctx, EVP_PKEY_CTRL_SET_MAC_KEY,
-1, (void *)value);
-1, p);
}
if (!strcmp(type, "hexkey"))
{