Now uses generated ASN1-code.

kinit should be able to get a initial message from FOO.SE.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@844 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-13 21:13:38 +00:00
parent 10f3cd6dbf
commit b55aed018f
43 changed files with 19385 additions and 157 deletions

49
lib/asn1/symbol.h Normal file
View File

@@ -0,0 +1,49 @@
/* $Id$ */
#ifndef _SYMBOL_H
#define _SYMBOL_H
enum typetype { TInteger, TOctetString, TBitString, TSequence, TSequenceOf,
TGeneralizedTime, TGeneralString, TApplication, TType };
typedef enum typetype Typetype;
struct type;
struct member {
char *name;
char *gen_name;
int val;
int optional;
struct type *type;
struct member *next, *prev;
};
typedef struct member Member;
struct symbol;
struct type {
Typetype type;
int application;
Member *members;
struct type *subtype;
struct symbol *symbol;
};
typedef struct type Type;
struct symbol {
char *name;
char *gen_name;
enum { SUndefined, SConstant, Stype } stype;
int constant;
Type *type;
};
typedef struct symbol Symbol;
void initsym ();
Symbol *addsym (char *);
void output_name (char *);
#endif