asn1: Fix check/print type confusion
This commit is contained in:
@@ -72,7 +72,7 @@ static unsigned long indefinite_form_loop;
|
||||
static unsigned long indefinite_form_loop_max = 10000;
|
||||
|
||||
typedef size_t (*lengther)(void *);
|
||||
typedef size_t (*copyer)(const void *, void *);
|
||||
typedef int (*copyer)(const void *, void *);
|
||||
typedef int (*encoder)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (*decoder)(const unsigned char *, size_t, void *, size_t *);
|
||||
typedef char *(*printer)(const void *, int);
|
||||
|
@@ -197,9 +197,9 @@ generic_test (const struct test_case *tests,
|
||||
unsigned ntests,
|
||||
size_t data_size,
|
||||
int (ASN1CALL *encode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (ASN1CALL *length)(void *),
|
||||
size_t (ASN1CALL *length)(void *),
|
||||
int (ASN1CALL *decode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (ASN1CALL *free_data)(void *),
|
||||
void (ASN1CALL *free_data)(void *),
|
||||
int (*cmp)(void *a, void *b),
|
||||
int (ASN1CALL *copy)(const void *from, void *to))
|
||||
{
|
||||
|
@@ -58,9 +58,9 @@ struct test_case {
|
||||
};
|
||||
|
||||
typedef int (ASN1CALL *generic_encode)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (ASN1CALL *generic_length)(void *);
|
||||
typedef size_t (ASN1CALL *generic_length)(void *);
|
||||
typedef int (ASN1CALL *generic_decode)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (ASN1CALL *generic_free)(void *);
|
||||
typedef void (ASN1CALL *generic_free)(void *);
|
||||
typedef int (ASN1CALL *generic_copy)(const void *, void *);
|
||||
|
||||
int
|
||||
@@ -68,9 +68,9 @@ generic_test (const struct test_case *tests,
|
||||
unsigned ntests,
|
||||
size_t data_size,
|
||||
int (ASN1CALL *encode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (ASN1CALL *length)(void *),
|
||||
size_t (ASN1CALL *length)(void *),
|
||||
int (ASN1CALL *decode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (ASN1CALL *free_data)(void *),
|
||||
void (ASN1CALL *free_data)(void *),
|
||||
int (*cmp)(void *a, void *b),
|
||||
int (ASN1CALL *copy)(const void *a, void *b));
|
||||
|
||||
|
Reference in New Issue
Block a user