lots of new stuff

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@299 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-03-17 00:51:52 +00:00
parent 81cbbf7820
commit e40b97b423
21 changed files with 2152 additions and 3 deletions

27
d.h Normal file
View File

@@ -0,0 +1,27 @@
#include <der.h>
struct Buffer {
unsigned char *buf;
unsigned char *p;
unsigned len;
};
typedef struct Buffer Buffer;
int buf_getbyte (Buffer *);
void buf_init (Buffer *, char *, unsigned);
Buffer *buf_derive (Buffer *, Buffer *, int);
int buf_bytesleft (Buffer *b);
void buf_advance (Buffer *b, int n);
int buf_length (Buffer *b);
struct Identifier {
Der_class class;
Der_type type;
unsigned tag;
int len;
};
typedef struct Identifier Identifier;
Identifier *getid (Buffer *b, Identifier *i);