Home > Support > Documentation

asn1xml.h

00001 /*
00002  * Copyright (c) 1997-2006 Objective Systems, Inc.
00003  *
00004  * This software is furnished under a license and may be used and copied
00005  * only in accordance with the terms of such license and with the
00006  * inclusion of the above copyright notice. This software or any other
00007  * copies thereof may not be provided or otherwise made available to any
00008  * other person. No title to and ownership of the software is hereby
00009  * transferred.
00010  *
00011  * The information in this software is subject to change without notice
00012  * and should not be construed as a commitment by Objective Systems, Inc.
00013  *
00014  * PROPRIETARY NOTICE
00015  *
00016  * This software is an unpublished work subject to a confidentiality agreement
00017  * and is protected by copyright and trade secret law.  Unauthorized copying,
00018  * redistribution or other use of this work is prohibited.
00019  *
00020  * The above notice of copyright on this source code product does not indicate
00021  * any actual or intended publication of such source code.
00022  *
00023  *****************************************************************************/
00024 
00025 #ifndef _ASN1XML_H_
00026 #define _ASN1XML_H_
00027 
00028 #include "rtsrc/asn1type.h"
00029 #include "rtxmlsrc/osrtxml.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00051 EXTERNXML int rtAsn1XmlpDecObjId (OSCTXT* pctxt, ASN1OBJID* pvalue);
00052 
00067 EXTERNXML int rtAsn1XmlpDecUnivStr 
00068 (OSCTXT* pctxt, const OS32BITCHAR** ppdata, OSUINT32* pnchars);
00069 
00090 EXTERNXML int rtAsn1XmlEncGenTime 
00091 (OSCTXT *pctxt, const char* value, const OSUTF8CHAR* elemName, 
00092  const OSUTF8CHAR* nsPrefix);
00093 
00113 EXTERNXML int rtAsn1XmlEncUTCTime 
00114 (OSCTXT *pctxt, const char* value, const OSUTF8CHAR* elemName, 
00115  const OSUTF8CHAR* nsPrefix);
00116 
00137 EXTERNXML int rtAsn1XmlEncObjId 
00138 (OSCTXT *pctxt, const ASN1OBJID *pvalue, const OSUTF8CHAR* elemName, 
00139  const OSUTF8CHAR* nsPrefix);
00140 
00161 EXTERNXML int rtAsn1XmlEncRelOID 
00162 (OSCTXT *pctxt, const ASN1OBJID *pvalue, const OSUTF8CHAR* elemName, 
00163  const OSUTF8CHAR* nsPrefix);
00164 
00184 EXTERNXML int rtAsn1XmlEncOpenType 
00185 (OSCTXT *pctxt, const OSOCTET* data, OSUINT32 nocts, 
00186  const OSUTF8CHAR* elemName, const OSUTF8CHAR* nsPrefix);
00187 
00202 EXTERNXML int rtAsn1XmlEncOpenTypeExt (OSCTXT* pctxt, OSRTDList* pElemList);
00203 
00223 EXTERNXML int rtAsn1XmlEncUnivStr 
00224 (OSCTXT* pctxt, const OS32BITCHAR* value, OSUINT32 nchars, 
00225  const OSUTF8CHAR* elemName, const OSUTF8CHAR* nsPrefix);
00226 
00243 EXTERNXML int rtAsn1XmlFmtAttrStr 
00244 (OSCTXT* pctxt, const OSUTF8CHAR* name, const OSUTF8CHAR* value, 
00245  OSUTF8CHAR** pAttrStr);
00246 
00261 EXTERNXML int rtAsn1XmlParseAttrStr
00262 (OSCTXT* pctxt, const OSUTF8CHAR* pAttrStr, OSUTF8NVP* pNVPair);
00263 
00278 EXTERNXML int rtAsn1XmlAddAnyAttr 
00279  (OSCTXT* pctxt, const OSUTF8CHAR *name, const OSUTF8CHAR *value, 
00280   OSRTDList* plist);
00281 
00295 EXTERNXML int rtAsn1XmlpDecDynBitStr (OSCTXT* pctxt, ASN1DynBitStr* pvalue);
00296 
00314 EXTERNXML int rtXmlpDecListOfASN1DynBitStr (OSCTXT* pctxt, OSRTDList* plist);
00315 
00328 EXTERNXML int rtAsn1XmlpDecRelOID (OSCTXT* pctxt, ASN1OBJID *pvalue);
00329 
00333 #ifdef __cplusplus
00334 }
00335 #endif
00336 
00337 #endif