| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#ifndef _asn_relative_oid_h_ |
| 23 |
#define _asn_relative_oid_h_ |
| 24 |
|
| 25 |
#include "asn-octs.h" |
| 26 |
|
| 27 |
#ifdef __cplusplus |
| 28 |
extern "C" { |
| 29 |
#endif |
| 30 |
|
| 31 |
|
| 32 |
typedef AsnOcts AsnRelativeOid; |
| 33 |
|
| 34 |
|
| 35 |
#define ASNRELATIVE_OID_PRESENT( aoid) ASNOCTS_PRESENT (aoid) |
| 36 |
|
| 37 |
AsnLen BEncAsnRelativeOid PROTO ((GenBuf *b, AsnRelativeOid *data)); |
| 38 |
|
| 39 |
void BDecAsnRelativeOid PROTO ((GenBuf *b, AsnRelativeOid *result, AsnLen *bytesDecoded, ENV_TYPE env)); |
| 40 |
|
| 41 |
#define BEncAsnRelativeOidContent( b, oid) BEncAsnOctsContent (b, oid) |
| 42 |
|
| 43 |
|
| 44 |
void BDecAsnRelativeOidContent PROTO ((GenBuf *b, AsnTag tag, AsnLen len, AsnRelativeOid *result, AsnLen *bytesDecoded, ENV_TYPE env)); |
| 45 |
|
| 46 |
|
| 47 |
#define FreeAsnRelativeOid FreeAsnOcts |
| 48 |
|
| 49 |
void PrintAsnRelativeOid PROTO ((FILE *f, AsnRelativeOid *b, unsigned int indent)); |
| 50 |
|
| 51 |
#define AsnRelativeOidsEquiv( o1, o2) AsnOctsEquiv (o1, o2) |
| 52 |
|
| 53 |
|
| 54 |
#define NULL_RELATIVE_OID_ARCNUM -1 |
| 55 |
typedef struct RELATIVE_OID |
| 56 |
{ |
| 57 |
struct RELATIVE_OID *next; |
| 58 |
long arcNum; |
| 59 |
#if COMPILER || TTBL |
| 60 |
struct Value *valueRef; |
| 61 |
#endif |
| 62 |
} RELATIVE_OID; |
| 63 |
|
| 64 |
AsnLen EncodedRelativeOidLen PROTO ((RELATIVE_OID *oid)); |
| 65 |
|
| 66 |
void BuildEncodedRelativeOid PROTO ((RELATIVE_OID *oid, AsnRelativeOid *result)); |
| 67 |
|
| 68 |
void UnbuildEncodedRelativeOid PROTO ((AsnRelativeOid *eoid, RELATIVE_OID **result)); |
| 69 |
|
| 70 |
#ifdef __cplusplus |
| 71 |
} |
| 72 |
#endif |
| 73 |
#endif |
| 74 |
|