lib/asn1: all exported functions must use ASN1CALL convention

Otherwise, on 32-bit Windows there is a mismatch that and the
ESP register will not be populated correctly.

Prior to this change some exports were ASN1CALL and others
were not.   All of the tests assume ASN1CALL.

Change-Id: Icecff44aed4726b86100c939f64628d121bbd7ee
This commit is contained in:
Jeffrey Altman
2021-11-16 17:21:57 -05:00
committed by Jeffrey Altman
parent e27e056b45
commit d269c30b2b
11 changed files with 171 additions and 171 deletions

View File

@@ -37,7 +37,7 @@
RCSID("$Id$");
int
int ASN1CALL
der_copy_general_string (const heim_general_string *from,
heim_general_string *to)
{
@@ -47,55 +47,55 @@ der_copy_general_string (const heim_general_string *from,
return 0;
}
int
int ASN1CALL
der_copy_integer (const int *from, int *to)
{
*to = *from;
return 0;
}
int
int ASN1CALL
der_copy_integer64 (const int64_t *from, int64_t *to)
{
*to = *from;
return 0;
}
int
int ASN1CALL
der_copy_unsigned (const unsigned *from, unsigned *to)
{
*to = *from;
return 0;
}
int
int ASN1CALL
der_copy_unsigned64 (const uint64_t *from, uint64_t *to)
{
*to = *from;
return 0;
}
int
int ASN1CALL
der_copy_generalized_time (const time_t *from, time_t *to)
{
*to = *from;
return 0;
}
int
int ASN1CALL
der_copy_utctime (const time_t *from, time_t *to)
{
*to = *from;
return 0;
}
int
int ASN1CALL
der_copy_utf8string (const heim_utf8_string *from, heim_utf8_string *to)
{
return der_copy_general_string(from, to);
}
int
int ASN1CALL
der_copy_printable_string (const heim_printable_string *from,
heim_printable_string *to)
{
@@ -108,14 +108,14 @@ der_copy_printable_string (const heim_printable_string *from,
return 0;
}
int
int ASN1CALL
der_copy_ia5_string (const heim_ia5_string *from,
heim_ia5_string *to)
{
return der_copy_printable_string(from, to);
}
int
int ASN1CALL
der_copy_bmp_string (const heim_bmp_string *from, heim_bmp_string *to)
{
to->length = from->length;
@@ -126,7 +126,7 @@ der_copy_bmp_string (const heim_bmp_string *from, heim_bmp_string *to)
return 0;
}
int
int ASN1CALL
der_copy_universal_string (const heim_universal_string *from,
heim_universal_string *to)
{
@@ -138,14 +138,14 @@ der_copy_universal_string (const heim_universal_string *from,
return 0;
}
int
int ASN1CALL
der_copy_visible_string (const heim_visible_string *from,
heim_visible_string *to)
{
return der_copy_general_string(from, to);
}
int
int ASN1CALL
der_copy_octet_string (const heim_octet_string *from, heim_octet_string *to)
{
to->length = from->length;
@@ -156,7 +156,7 @@ der_copy_octet_string (const heim_octet_string *from, heim_octet_string *to)
return 0;
}
int
int ASN1CALL
der_copy_heim_integer (const heim_integer *from, heim_integer *to)
{
to->length = from->length;
@@ -168,7 +168,7 @@ der_copy_heim_integer (const heim_integer *from, heim_integer *to)
return 0;
}
int
int ASN1CALL
der_copy_oid (const heim_oid *from, heim_oid *to)
{
to->length = from->length;
@@ -180,7 +180,7 @@ der_copy_oid (const heim_oid *from, heim_oid *to)
return 0;
}
int
int ASN1CALL
der_copy_bit_string (const heim_bit_string *from, heim_bit_string *to)
{
size_t len;