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

Google


Objective Systems, Inc.

Print Values to user specified Stream
[C Runtime Common Functions]


Detailed Description

These functions print the output in a "name=value" format.


Functions

int rtPrintToStreamBoolean (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1BOOL value)
int rtPrintToStreamInteger (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1INT value)
int rtPrintToStreamInt64 (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1INT64 value)
int rtPrintToStreamUnsigned (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1UINT value)
int rtPrintToStreamUInt64 (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1UINT64 value)
int rtPrintToStreamBitStr (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1UINT numbits, ASN1ConstOctetPtr data, ASN1ConstCharPtr conn)
int rtPrintToStreamOctStr (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1UINT numocts, ASN1ConstOctetPtr data, ASN1ConstCharPtr conn)
int rtPrintToStreamCharStr (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1ConstCharPtr cstring)
int rtPrintToStream16BitCharStr (ASN1CTXT *pctxt, ASN1ConstCharPtr name, Asn116BitCharString *bstring, ASN1ConstCharPtr conn)
int rtPrintToStream32BitCharStr (ASN1CTXT *pctxt, ASN1ConstCharPtr name, Asn132BitCharString *bstring, ASN1ConstCharPtr conn)
int rtPrintToStreamReal (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1REAL value)
int rtPrintToStreamOID (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1OBJID *pOID)
int rtPrintToStreamOIDValue (ASN1CTXT *pctxt, ASN1OBJID *pOID)
int rtPrintToStreamOID64 (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1OID64 *pOID)
int rtPrintToStreamOID64Value (ASN1CTXT *pctxt, ASN1OID64 *pOID)
int rtPrintToStreamOpenType (ASN1CTXT *pctxt, ASN1ConstCharPtr name, ASN1UINT numocts, ASN1ConstOctetPtr data, ASN1ConstCharPtr conn)
int rtPrintToStreamOpenTypeExt (ASN1CTXT *pctxt, ASN1ConstCharPtr name, Asn1RTDList *pElemList)


Function Documentation

int rtPrintToStream16BitCharStr ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
Asn116BitCharString *  bstring,
ASN1ConstCharPtr  conn
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
bstring A pointer to the bit string to be printed.
conn A pointer to the connector between the name and the value. This points to either -> or .
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStream32BitCharStr ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
Asn132BitCharString *  bstring,
ASN1ConstCharPtr  conn
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
bstring A pointer to the bit string to be printed.
conn A pointer to the connector between the name and the value. This points to either -> or .
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamBitStr ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1UINT  numbits,
ASN1ConstOctetPtr  data,
ASN1ConstCharPtr  conn
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
numbits The number of bitsto be printed.
data A pointer to the data to be printed.
conn A pointer to the connector between the name and the value. This points to either -> or .
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamBoolean ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1BOOL  value
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
value ASN.1 value to print (note: multiple arguments may be used to represent the value - for example a bit string would be represented by a numbits argument).
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamCharStr ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1ConstCharPtr  cstring
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
cstring A pointer to the character string to be printed.
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamInt64 ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1INT64  value
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
value ASN.1 value to print (note: multiple arguments may be used to represent the value - for example a bit string would be represented by a numbits argument).
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamInteger ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1INT  value
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
value ASN.1 value to print (note: multiple arguments may be used to represent the value - for example a bit string would be represented by a numbits argument).
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOctStr ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1UINT  numocts,
ASN1ConstOctetPtr  data,
ASN1ConstCharPtr  conn
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
numocts The number of octets to be printed.
data A pointer to the data to be printed.
conn A pointer to the connector between the name and the value. This points to either -> or .
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOID ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1OBJID *  pOID
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
pOID A pointer to the OID to be printed.
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOID64 ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1OID64 *  pOID
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
pOID A pointer to the OID to be printed.
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOID64Value ASN1CTXT *  pctxt,
ASN1OID64 *  pOID
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
pOID A pointer to the OID to be printed.
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOIDValue ASN1CTXT *  pctxt,
ASN1OBJID *  pOID
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
pOID A pointer to the OID to be printed.
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOpenType ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1UINT  numocts,
ASN1ConstOctetPtr  data,
ASN1ConstCharPtr  conn
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
numocts The number of octets to be printed.
data The pointer to the data to be printed.
conn A pointer to the connector between the name and the value. This points to either -> or .
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamOpenTypeExt ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
Asn1RTDList *  pElemList
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
pElemList A pointer to an element of a list.
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamReal ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1REAL  value
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
value ASN.1 value to print (note: multiple arguments may be used to represent the value - for example a bit string would be represented by a numbits argument).
Returns:
Completion status, 0 on success and -ve on failure

int rtPrintToStreamUInt64 ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1UINT64  value
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
value ASN.1 value to print (note: multiple arguments may be used to represent the value - for example a bit string would be represented by a numbits argument).
Returns:
Completion status, 0 on success and -ve on failure.

int rtPrintToStreamUnsigned ASN1CTXT *  pctxt,
ASN1ConstCharPtr  name,
ASN1UINT  value
 

Parameters:
pctxt Pointer to an ASN1 context initialized for printing.
name The name of the variable to print.
value ASN.1 value to print (note: multiple arguments may be used to represent the value - for example a bit string would be represented by a numbits argument).
Returns:
Completion status, 0 on success and -ve on failure


Copyright © 1997-2004 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 1 Oct 2004.
ASN1C C/C++ Common Runtime, ASN1C v5.7x