recinfo Struct Reference

#include <asn.h>


Detailed Description

Lowest level data type used to process ASN.1 data.


Public Member Functions

Initializers
int load (const str &x)
 Load entire PDU into this object.
int scan (int n, const char *x)
 Parse data buffer into this object.
Inspectors
double length () const
 Get the total length in bytes of the PDU in this object.
int ilength () const
 Get total length of PDU in this object as an integer.
int ibody () const
 Get size of PDU body in this object.
Predicates
bool isNullTerminator () const
 Predicate used to determine whether this PDU is a null terminator.


Member Function Documentation

int ibody (  )  const [inline]

Get size of PDU body in this object.

Returns:
length of PDU body (truncated to an integer)

int ilength (  )  const [inline]

Get total length of PDU in this object as an integer.

Returns:
total length of PDU as an int (i.e., possibly truncated)

double length (  )  const [inline]

Get the total length in bytes of the PDU in this object.

Returns:
total length of PDU

int load ( const str x  ) 

Load entire PDU into this object.

Parameters:
x the PDU to be loaded
Returns:
0 success
1 cannot parse PDU
2 inconsistent header info
3 parsing error

int scan ( int  n,
const char *  x 
)

Parse data buffer into this object.

Parameters:
n the length in bytes of the input buffer
x a pointer to the input buffer
Returns:
0 (success)
2 if PDU header is incomplete
3 if PDU cannot be parsed or is longer than the 2^48 byte limit


The documentation for this struct was generated from the following file:
ISC Cryptographic Development Kit - User's Guide
ISC website
Questions? E-mail ISC technical support
Copyright© 2002-2006 Information Security Corp. All rights reserved.