diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-14 13:39:31 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-14 13:39:31 +0000 |
commit | 4aa5d5b7dcf6dcca35590f4a3c8714e32a7be8fe (patch) | |
tree | e352329679a4ff3602cbebc2ad5b23a3fda09c00 /epan/asn1.h | |
parent | e6f18702fe7236995e813b2dc01e14307af76a86 (diff) |
- more variants of dissect_per_open_type_*()
- move asn1_get_real() to asn1.c/.h
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21757 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/asn1.h')
-rw-r--r-- | epan/asn1.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/epan/asn1.h b/epan/asn1.h index 5dd491f8b1..baad3a91cf 100644 --- a/epan/asn1.h +++ b/epan/asn1.h @@ -33,7 +33,10 @@ typedef enum { ASN1_ENC_XER /* X.693 - XER */ } asn1_enc_e; +#define ASN1_CTX_SIGNATURE 0x41435458 /* "ACTX" */ + typedef struct _asn1_ctx_t { + guint32 signature; asn1_enc_e encoding; gboolean aligned; packet_info *pinfo; @@ -67,7 +70,18 @@ typedef struct _asn1_ctx_t { } asn1_ctx_t; extern void asn1_ctx_init(asn1_ctx_t *actx, asn1_enc_e encoding, gboolean aligned, packet_info *pinfo); +extern gboolean asn1_ctx_check_signature(asn1_ctx_t *actx); extern void asn1_ctx_clean_external(asn1_ctx_t *actx); +extern double asn1_get_real(const guint8 *real_ptr, gint real_len); + +/* flags */ +#define ASN1_EXT_ROOT 0x01 +#define ASN1_EXT_EXT 0x02 +#define ASN1_OPT 0x04 +#define ASN1_DFLT 0x08 + +#define ASN1_HAS_EXT(f) ((f)&(ASN1_EXT_ROOT|ASN1_EXT_EXT)) + #endif /* __ASN1_H__ */ |