ASN1C C/C++ Common Runtime  ASN1C v7.5.x
Public Member Functions | List of all members
ASN1Context Class Reference

#include <ASN1Context.h>

Inheritance diagram for ASN1Context:
OSRTContext

Public Member Functions

EXTRTMETHOD ASN1Context ()
 
virtual EXTRTMETHOD int setRunTimeKey (const OSOCTET *key, size_t keylen)
 
OSCTXTGetPtr ()
 
void PrintErrorInfo ()
 
- Public Member Functions inherited from OSRTContext
EXTRTMETHOD OSRTContext ()
 
virtual EXTRTMETHOD ~OSRTContext ()
 
OSCTXTgetPtr ()
 
const OSCTXTgetPtr () const
 
EXTRTMETHOD OSUINT32 getRefCount ()
 
int getStatus () const
 
OSBOOL isInitialized ()
 
EXTRTMETHOD void _ref ()
 
EXTRTMETHOD void _unref ()
 
EXTRTMETHOD char * getErrorInfo ()
 
EXTRTMETHOD char * getErrorInfo (size_t *pBufSize)
 
EXTRTMETHOD char * getErrorInfo (char *pBuf, size_t &bufSize)
 
void * memAlloc (size_t numocts)
 
void * memAllocZ (size_t numocts)
 
void memFreeAll ()
 
void memFreePtr (void *ptr)
 
void * memRealloc (void *ptr, size_t numocts)
 
void memReset ()
 
void printErrorInfo ()
 
void resetErrorInfo ()
 
OSBOOL setDiag (OSBOOL value=TRUE)
 
int setStatus (int stat)
 

Additional Inherited Members

- Protected Attributes inherited from OSRTContext
OSCTXT mCtxt
 
OSUINT32 mCount
 
OSBOOL mbInitialized
 
int mStatus
 

Detailed Description

Reference counted ASN.1 context class. This keeps track of all encode/decode function variables between function invocations. It is reference counted to allow a message buffer and type class to share access to it.

Constructor & Destructor Documentation

◆ ASN1Context()

EXTRTMETHOD ASN1Context::ASN1Context ( )

The default constructor initializes the mCtxt member variable for ASN.1 encoding/decoding.

Member Function Documentation

◆ setRunTimeKey()

virtual EXTRTMETHOD int ASN1Context::setRunTimeKey ( const OSOCTET *  key,
size_t  keylen 
)
virtual

This method sets run-time key in the context. When using an unlimited runtime, this method will still set the key, but the runtime does not actually check it.

Parameters
key- array of octets with the key
keylen- number of octets in key array.
Returns
Completion status of operation:
  • 0 = success,
  • negative return value is error.

Reimplemented from OSRTContext.


The documentation for this class was generated from the following file: