Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Open Source
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

asn1xer.h File Reference


Detailed Description

ASN.1 runtime constants, data structure definitions, and functions to support the XML Encoding Rules (XER) as defined in the ITU-T X.693 standard.

#include "rtsrc/asn1type.h"
#include "rtSAXDefs.h"

Go to the source code of this file.

Classes

struct  XerElemInfo
struct  XmlNamedBitsDict
struct  OSXMLNamespace

Defines

#define XERINDENT   3
#define XERBYTECNT(pctxt)   (pctxt)->buffer.byteIndex
#define EXTERNXER

Typedefs

typedef XmlNamedBitsDict XmlNamedBitsDict
typedef OSXMLNamespace OSXMLNamespace

Enumerations

enum  ASN1XERState {
  XERINIT, XERSTART, XERDATA, XEREND,
  XERSTART0, XEREND0
}

Functions

int xerDecBMPStr (ASN1CTXT *pctxt, ASN1BMPString *outdata)
int xerDecBase64Str (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnocts, ASN1INT bufsize)
int xerDecBigInt (ASN1CTXT *pctxt, char **ppvalue, int radix)
int xerDecBitStr (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnbits, ASN1INT bufsize)
int xerDecBitStrMemBuf (ASN1MemBuf *pMemBuf, ASN1Const XMLCHAR *inpdata, int length, ASN1BOOL skipWhitespaces)
int xerDecBool (ASN1CTXT *pctxt, ASN1BOOL *pvalue)
int xerDecCopyBitStr (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnbits, ASN1INT bufsize, int lastBitOffset)
int xerDecCopyDynBitStr (ASN1CTXT *pctxt, ASN1DynBitStr *pvalue, int lastBitOffset)
int xerDecCopyDynOctStr (ASN1CTXT *pctxt, ASN1DynOctStr *pvalue, int lastBitOffset)
int xerDecCopyOctStr (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnocts, ASN1INT bufsize, int lastBitOffset)
int xerDecDynAscCharStr (ASN1CTXT *pctxt, ASN1ConstCharPtr *outdata)
int xerDecDynBase64Str (ASN1CTXT *pctxt, ASN1DynOctStr *pvalue)
int xerDecDynBitStr (ASN1CTXT *pctxt, ASN1DynBitStr *pvalue)
int xerDecDynOctStr (ASN1CTXT *pctxt, ASN1DynOctStr *pvalue)
int xerDecDynUTF8Str (ASN1CTXT *pctxt, ASN1UTF8String *outdata)
int xerDecInt (ASN1CTXT *pctxt, ASN1INT *pvalue)
int xerDecInt8 (ASN1CTXT *pctxt, ASN1INT8 *pvalue)
int xerDecInt16 (ASN1CTXT *pctxt, ASN1SINT *pvalue)
int xerDecInt64 (ASN1CTXT *pctxt, ASN1INT64 *pvalue)
int xerDecObjId (ASN1CTXT *pctxt, ASN1OBJID *pvalue)
int xerDecObjId64 (ASN1CTXT *pctxt, ASN1OID64 *pvalue)
int xerDecOctStr (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnocts, ASN1INT bufsize)
int xerDecOctStrMemBuf (ASN1MemBuf *pMemBuf, ASN1Const XMLCHAR *inpdata, int length, ASN1BOOL skipWhitespaces)
int xerDecOpenType (ASN1CTXT *pctxt, ASN1OpenType *pvalue)
int xerDecReal (ASN1CTXT *pctxt, ASN1REAL *pvalue)
int xerDecRelativeOID (ASN1CTXT *pctxt, ASN1OBJID *pvalue)
int xerDecUInt (ASN1CTXT *pctxt, ASN1UINT *pvalue)
int xerDecUInt8 (ASN1CTXT *pctxt, ASN1UINT8 *pvalue)
int xerDecUInt16 (ASN1CTXT *pctxt, ASN1USINT *pvalue)
int xerDecUInt64 (ASN1CTXT *pctxt, ASN1UINT64 *pvalue)
int xerDecUnivStr (ASN1CTXT *pctxt, ASN1UniversalString *outdata)
int xerSetDecBufPtr (ASN1CTXT *pCtxt, ASN1ConstOctetPtr bufaddr, size_t bufsiz)
int xerSetEncBufPtr (ASN1CTXT *pCtxt, ASN1OCTET *bufaddr, size_t bufsiz, ASN1BOOL canonical)
int xerEncAscCharStr (ASN1CTXT *pctxt, ASN1ConstCharPtr value, ASN1ConstCharPtr elemName)
int xerEncBase64Str (ASN1CTXT *pctxt, ASN1UINT nocts, ASN1ConstOctetPtr data, ASN1ConstCharPtr elemName)
int xerEncBigInt (ASN1CTXT *pctxt, ASN1ConstCharPtr value, ASN1ConstCharPtr elemName)
int xerEncBitStr (ASN1CTXT *pctxt, ASN1UINT nbits, ASN1ConstOctetPtr data, ASN1ConstCharPtr elemName, ASN1StrType outputType)
int xerEncBoolValue (ASN1CTXT *pctxt, ASN1BOOL value)
int xerEncBool (ASN1CTXT *pctxt, ASN1BOOL value, ASN1ConstCharPtr elemName)
int xerEncEndDocument (ASN1CTXT *pctxt)
int xerEncEndElement (ASN1CTXT *pctxt, ASN1ConstCharPtr elemName)
int xerEncIndent (ASN1CTXT *pctxt)
int xerEncInt (ASN1CTXT *pctxt, ASN1INT value, ASN1ConstCharPtr elemName)
int xerEncInt64 (ASN1CTXT *pctxt, ASN1INT64 value, ASN1ConstCharPtr elemName)
int xerEncNewLine (ASN1CTXT *pctxt)
int xerEncObjId (ASN1CTXT *pctxt, const ASN1OBJID *pvalue, ASN1ConstCharPtr elemName)
int xerEncObjId64 (ASN1CTXT *pctxt, const ASN1OID64 *pvalue, ASN1ConstCharPtr elemName)
int xerEncRelativeOID (ASN1CTXT *pctxt, const ASN1OBJID *pvalue, ASN1ConstCharPtr elemName)
int xerEncOctStr (ASN1CTXT *pctxt, ASN1UINT nocts, ASN1ConstOctetPtr data, ASN1ConstCharPtr elemName)
int xerEncReal (ASN1CTXT *pctxt, ASN1REAL value, ASN1ConstCharPtr elemName)
int xerEncStartDocument (ASN1CTXT *pctxt)
int xerEncStartElement (ASN1CTXT *pctxt, ASN1ConstCharPtr elemName, ASN1ConstCharPtr attributes)
int xerEncEmptyElement (ASN1CTXT *pctxt, ASN1ConstCharPtr elemName, ASN1ConstCharPtr attributes)
int xerEncNamedValue (ASN1CTXT *pctxt, ASN1ConstCharPtr value, ASN1ConstCharPtr elemName, ASN1ConstCharPtr attributes)
int xerEncUInt (ASN1CTXT *pctxt, ASN1UINT value, ASN1ConstCharPtr elemName)
int xerEncUInt64 (ASN1CTXT *pctxt, ASN1UINT64 value, ASN1ConstCharPtr elemName)
int xerEncBMPStr (ASN1CTXT *pctxt, const ASN1BMPString *value, ASN1ConstCharPtr elemName)
int xerEncUnivStr (ASN1CTXT *pctxt, const ASN1UniversalString *value, ASN1ConstCharPtr elemName)
int xerEncUniCharData (ASN1CTXT *pctxt, ASN1Const16BitCharPtr value, ASN1UINT nchars)
int xerEncUniCharStr (ASN1CTXT *pctxt, ASN116BITCHAR *value, ASN1ConstCharPtr elemName)
int xerEncOpenType (ASN1CTXT *pctxt, ASN1UINT nocts, ASN1ConstOctetPtr data, ASN1ConstCharPtr elemName)
int xerEncNull (ASN1CTXT *pctxt, ASN1ConstCharPtr elemName)
int xerEncXmlCharData (ASN1CTXT *pctxt, ASN1Const XMLCHAR *pvalue, int length)
ASN1BOOL xerCmpText (ASN1Const XMLCHAR *text1, ASN1ConstCharPtr text2)
int xerCopyText (ASN1CTXT *pctxt, ASN1ConstCharPtr text)
int xerTextLength (ASN1Const XMLCHAR *text)
ASN1ConstCharPtr xerTextToCStr (ASN1CTXT *pctxt, ASN1Const XMLCHAR *text)
size_t xerGetMsgLen (ASN1CTXT *pctxt)
ASN1OCTET * xerGetMsgPtr (ASN1CTXT *pctxt)
int xerGetElemIdx (ASN1Const XMLCHAR *elemName, XerElemInfo *pElemInfo, int numElems)
int xerGetSeqElemIdx (ASN1Const XMLCHAR *elemName, XerElemInfo *pElemInfo, int numElems, int startIndex)
int xerFinalizeMemBuf (ASN1MemBuf *pMemBuf)
int xmlDecBitStr (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnbits, ASN1INT bufsize)
int xmlDecBool (ASN1CTXT *pctxt, ASN1BOOL *pvalue)
int xmlDecDynBitStr (ASN1CTXT *pctxt, ASN1DynBitStr *pvalue)
int xmlDecDynNamedBitStr (ASN1CTXT *pctxt, ASN1DynBitStr *pvalue, ASN1Const XmlNamedBitsDict *pBitDict)
int xmlDecDynOctStr (ASN1CTXT *pctxt, ASN1DynOctStr *pvalue)
int xmlDecGeneralizedTime (ASN1CTXT *pctxt, ASN1ConstCharPtr *outdata)
int xmlDecNamedBitStr (ASN1MemBuf *pMemBuf, ASN1OCTET *pData, int dataSize, ASN1UINT *pNumbits, ASN1Const XmlNamedBitsDict *pBitDict, ASN1Const XMLCHAR *chars, int length)
int xmlDecOctStr (ASN1CTXT *pctxt, ASN1OCTET *pvalue, ASN1UINT *pnocts, ASN1INT bufsize)
int xmlDecReal (ASN1CTXT *pctxt, ASN1REAL *pvalue)
int xmlDecUTCTime (ASN1CTXT *pctxt, ASN1ConstCharPtr *outdata)
int xmlEncBitStr (ASN1CTXT *pctxt, XmlNamedBitsDict *namedbits, ASN1UINT noofnamedbits, ASN1UINT nbits, ASN1ConstOctetPtr data, ASN1ConstCharPtr elemName, ASN1StrType outputType)
int xmlEncBoolValue (ASN1CTXT *pctxt, ASN1BOOL value)
int xmlEncBool (ASN1CTXT *pctxt, ASN1BOOL value, ASN1ConstCharPtr elemName)
int xmlEncEnum (ASN1CTXT *pctxt, ASN1ConstCharPtr value)
int xmlEncGeneralizedTime (ASN1CTXT *pctxt, ASN1ConstCharPtr value, ASN1ConstCharPtr elemName)
int xmlEncNamedValue (ASN1CTXT *pctxt, ASN1ConstCharPtr value, ASN1ConstCharPtr elemName, ASN1ConstCharPtr attributes)
int xerEncOpenTypeExt (ASN1CTXT *pctxt, Asn1RTDList *pElemList)
int xmlEncReal (ASN1CTXT *pctxt, ASN1REAL value, ASN1ConstCharPtr elemName)
int xmlEncUTCTime (ASN1CTXT *pctxt, ASN1ConstCharPtr value, ASN1ConstCharPtr elemName)


Copyright © 1997-2005 Objective Systems,Inc.
All Rights Reserved.
This document may be distributed in any form, electronic
or otherwise, provided that it is distributed in its entirety
and that the copyright and this notice are included.

This file was last modified on 8 Sep 2005.
ASN1C XER Runtime, ASN1C v5.8x