00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
00055 EXTERNXML int rtAsn1XmlpDecGenTime
00056 (OSCTXT* pctxt, const char** outdata);
00057
00072 EXTERNXML int rtAsn1XmlpDecReal (OSCTXT* pctxt, OSREAL* pvalue);
00073
00086 EXTERNXML int rtAsn1XmlpDecObjId (OSCTXT* pctxt, ASN1OBJID* pvalue);
00087
00102 EXTERNXML int rtAsn1XmlpDecUnivStr
00103 (OSCTXT* pctxt, const OS32BITCHAR** ppdata, OSUINT32* pnchars);
00104
00105
00120 EXTERNXML int rtAsn1XmlpDecUTCTime
00121 (OSCTXT* pctxt, const char** outdata);
00122
00143 EXTERNXML int rtAsn1XmlEncGenTime
00144 (OSCTXT *pctxt, const char* value, const OSUTF8CHAR* elemName,
00145 const OSUTF8CHAR* nsPrefix);
00146
00166 EXTERNXML int rtAsn1XmlEncUTCTime
00167 (OSCTXT *pctxt, const char* value, const OSUTF8CHAR* elemName,
00168 const OSUTF8CHAR* nsPrefix);
00169
00190 EXTERNXML int rtAsn1XmlEncObjId
00191 (OSCTXT *pctxt, const ASN1OBJID *pvalue, const OSUTF8CHAR* elemName,
00192 const OSUTF8CHAR* nsPrefix);
00193
00212 EXTERNXML int rtAsn1XmlEncReal
00213 (OSCTXT *pctxt, OSREAL value, const OSUTF8CHAR* elemName,
00214 const OSUTF8CHAR* nsPrefix);
00215
00216
00237 EXTERNXML int rtAsn1XmlEncRelOID
00238 (OSCTXT *pctxt, const ASN1OBJID *pvalue, const OSUTF8CHAR* elemName,
00239 const OSUTF8CHAR* nsPrefix);
00240
00260 EXTERNXML int rtAsn1XmlEncOpenType
00261 (OSCTXT *pctxt, const OSOCTET* data, OSUINT32 nocts,
00262 const OSUTF8CHAR* elemName, const OSUTF8CHAR* nsPrefix);
00263
00278 EXTERNXML int rtAsn1XmlEncOpenTypeExt (OSCTXT* pctxt, OSRTDList* pElemList);
00279
00298 EXTERNXML int rtAsn1XmlEncUnivStr
00299 (OSCTXT* pctxt, const OS32BITCHAR* value, OSUINT32 nchars,
00300 const OSUTF8CHAR* elemName, OSXMLNamespace* pNS);
00301
00302
00303
00320 EXTERNXML int rtAsn1XmlFmtAttrStr
00321 (OSCTXT* pctxt, const OSUTF8CHAR* name, const OSUTF8CHAR* value,
00322 OSUTF8CHAR** pAttrStr);
00323
00338 EXTERNXML int rtAsn1XmlParseAttrStr
00339 (OSCTXT* pctxt, const OSUTF8CHAR* pAttrStr, OSUTF8NVP* pNVPair);
00340
00355 EXTERNXML int rtAsn1XmlAddAnyAttr
00356 (OSCTXT* pctxt, const OSUTF8CHAR *name, const OSUTF8CHAR *value,
00357 OSRTDList* plist);
00358
00372 EXTERNXML int rtAsn1XmlpDecDynBitStr (OSCTXT* pctxt, ASN1DynBitStr* pvalue);
00373
00391 EXTERNXML int rtXmlpDecListOfASN1DynBitStr (OSCTXT* pctxt, OSRTDList* plist);
00392
00405 EXTERNXML int rtAsn1XmlpDecRelOID (OSCTXT* pctxt, ASN1OBJID *pvalue);
00406
00410 #ifdef __cplusplus
00411 }
00412 #endif
00413
00414 #endif