Commit much improved ASN.1 compiler from joda-choice-branch.
Highlighs for the compiler is support for CHOICE and in general better support for tags. This compiler support most of what is needed for PK-INIT, LDAP, X.509, PKCS-12 and many other protocols. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15617 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999 - 2003 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1999 - 2005 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -41,6 +41,7 @@ struct test_case {
|
||||
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 *);
|
||||
|
||||
int
|
||||
generic_test (const struct test_case *tests,
|
||||
@@ -49,5 +50,21 @@ generic_test (const struct test_case *tests,
|
||||
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 (*cmp)(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 *));
|
||||
|
||||
|
||||
struct map_page;
|
||||
|
||||
enum map_type { OVERRUN, UNDERRUN };
|
||||
|
||||
struct map_page;
|
||||
|
||||
void * map_alloc(enum map_type, const void *, size_t, struct map_page **);
|
||||
void map_free(struct map_page *, const char *, const char *);
|
||||
|
Reference in New Issue
Block a user