Fix calling convention for asn1 tests
This commit is contained in:

committed by
Asanka C. Herath

parent
ba5c014af0
commit
4c6cdf07c2
@@ -40,28 +40,28 @@ struct test_case {
|
||||
char *name;
|
||||
};
|
||||
|
||||
typedef int (*generic_encode)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (*generic_length)(void *);
|
||||
typedef int (*generic_decode)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (*generic_free)(void *);
|
||||
typedef int (*generic_copy)(const void *, void *);
|
||||
typedef int (ASN1CALL *generic_encode)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (ASN1CALL *generic_length)(void *);
|
||||
typedef int (ASN1CALL *generic_decode)(unsigned char *, size_t, void *, size_t *);
|
||||
typedef int (ASN1CALL *generic_free)(void *);
|
||||
typedef int (ASN1CALL *generic_copy)(const void *, void *);
|
||||
|
||||
int
|
||||
generic_test (const struct test_case *tests,
|
||||
unsigned ntests,
|
||||
size_t data_size,
|
||||
int (*encode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (*length)(void *),
|
||||
int (*decode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (*free_data)(void *),
|
||||
int (ASN1CALL *encode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (ASN1CALL *length)(void *),
|
||||
int (ASN1CALL *decode)(unsigned char *, size_t, void *, size_t *),
|
||||
int (ASN1CALL *free_data)(void *),
|
||||
int (*cmp)(void *a, void *b),
|
||||
int (*copy)(const void *a, void *b));
|
||||
int (ASN1CALL *copy)(const void *a, void *b));
|
||||
|
||||
int
|
||||
generic_decode_fail(const struct test_case *tests,
|
||||
unsigned ntests,
|
||||
size_t data_size,
|
||||
int (*decode)(unsigned char *, size_t, void *, size_t *));
|
||||
int (ASN1CALL *decode)(unsigned char *, size_t, void *, size_t *));
|
||||
|
||||
|
||||
struct map_page;
|
||||
|
Reference in New Issue
Block a user