projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use public domain snprintf() implementation by Patrick Powell to avoid
[oweals/openssl.git]
/
crypto
/
asn1
/
a_type.c
diff --git
a/crypto/asn1/a_type.c
b/crypto/asn1/a_type.c
index 72240a0b2572610178c177dfe661f6a6842fed84..161ef8119737446f4a6cea8d3e4b9a18ffe27eac 100644
(file)
--- a/
crypto/asn1/a_type.c
+++ b/
crypto/asn1/a_type.c
@@
-282,7
+282,7
@@
void ASN1_TYPE_free(ASN1_TYPE *a)
{
if (a == NULL) return;
ASN1_TYPE_component_free(a);
{
if (a == NULL) return;
ASN1_TYPE_component_free(a);
- Free(
(char *)(char *)
a);
+ Free(a);
}
int ASN1_TYPE_get(ASN1_TYPE *a)
}
int ASN1_TYPE_get(ASN1_TYPE *a)
@@
-293,7
+293,7
@@
int ASN1_TYPE_get(ASN1_TYPE *a)
return(0);
}
return(0);
}
-void ASN1_TYPE_set(ASN1_TYPE *a, int type,
char
*value)
+void ASN1_TYPE_set(ASN1_TYPE *a, int type,
void
*value)
{
if (a->value.ptr != NULL)
ASN1_TYPE_component_free(a);
{
if (a->value.ptr != NULL)
ASN1_TYPE_component_free(a);