ASN1C C/C++ Common Runtime  ASN1C v7.3.x
rtCompare.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1997-2019 Objective Systems, Inc.
3  *
4  * This software is furnished under a license and may be used and copied
5  * only in accordance with the terms of such license and with the
6  * inclusion of the above copyright notice. This software or any other
7  * copies thereof may not be provided or otherwise made available to any
8  * other person. No title to and ownership of the software is hereby
9  * transferred.
10  *
11  * The information in this software is subject to change without notice
12  * and should not be construed as a commitment by Objective Systems, Inc.
13  *
14  * PROPRIETARY NOTICE
15  *
16  * This software is an unpublished work subject to a confidentiality agreement
17  * and is protected by copyright and trade secret law. Unauthorized copying,
18  * redistribution or other use of this work is prohibited.
19  *
20  * The above notice of copyright on this source code product does not indicate
21  * any actual or intended publication of such source code.
22  *
23  *****************************************************************************/
24 
30 #ifndef _RTCOMPARE_H_
31 #define _RTCOMPARE_H_
32 #include "asn1type.h"
33 #include "rtconv.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
53 /* Compare function to Buffer */
54 
71 EXTERNRT OSBOOL rtCmpBoolean (const char* name, OSBOOL value,
72  OSBOOL compValue, char* errBuff,
73  OSSIZE errBuffSize);
74 
91 EXTERNRT OSBOOL rtCmpInt8 (const char* name, OSINT8 value,
92  OSINT8 compValue, char* errBuff,
93  OSSIZE errBuffSize);
94 
111 EXTERNRT OSBOOL rtCmpSInt (const char* name, OSINT16 value,
112  OSINT16 compValue, char* errBuff,
113  OSSIZE errBuffSize);
114 
131 EXTERNRT OSBOOL rtCmpUInt8 (const char* name, OSUINT8 value,
132  OSUINT8 compValue, char* errBuff,
133  OSSIZE errBuffSize);
134 
151 EXTERNRT OSBOOL rtCmpUSInt (const char* name, OSUINT16 value,
152  OSUINT16 compValue, char* errBuff,
153  OSSIZE errBuffSize);
154 
170 EXTERNRT OSBOOL rtCmpInteger (const char* name, OSINT32 value,
171  OSINT32 compValue, char* errBuff,
172  OSSIZE errBuffSize);
173 
189 EXTERNRT OSBOOL rtCmpUnsigned (const char* name, OSUINT32 value,
190  OSUINT32 compValue, char* errBuff,
191  OSSIZE errBuffSize);
192 
208 EXTERNRT OSBOOL rtCmpInt64 (const char* name, OSINT64 value,
209  OSINT64 compValue, char* errBuff,
210  OSSIZE errBuffSize);
211 
227 EXTERNRT OSBOOL rtCmpUInt64 (const char* name, OSUINT64 value,
228  OSUINT64 compValue, char* errBuff,
229  OSSIZE errBuffSize);
230 
248 EXTERNRT OSBOOL rtCmpBitStr (const char* name, OSSIZE numbits,
249  const OSOCTET* data, OSSIZE compNumbits,
250  const OSOCTET* compData, char* errBuff,
251  OSSIZE errBuffSize);
252 
274 EXTERNRT OSBOOL rtCmpBitStrExt (const char* name, OSSIZE numbits,
275  const OSOCTET* data, OSSIZE dataSize,
276  const OSOCTET* extdata,
277  OSSIZE compNumbits, const OSOCTET* compData,
278  const OSOCTET* compExtdata,
279  char* errBuff, OSSIZE errBuffSize);
280 
298 EXTERNRT OSBOOL rtCmpOctStr (const char* name, OSSIZE numocts,
299  const OSOCTET* data, OSSIZE compNumocts,
300  const OSOCTET* compData, char* errBuff,
301  OSSIZE errBuffSize);
302 
319 EXTERNRT OSBOOL rtCmpCharStr (const char* name, const char* cstring,
320  const char* compCstring, char* errBuff,
321  OSSIZE errBuffSize);
322 
341 EXTERNRT OSBOOL rtCmp16BitCharStr (const char* name,
342  Asn116BitCharString* bstring,
343  Asn116BitCharString* compBstring,
344  char* errBuff, OSSIZE errBuffSize);
345 
364 EXTERNRT OSBOOL rtCmp32BitCharStr (const char* name,
365  Asn132BitCharString* bstring,
366  Asn132BitCharString* compBstring,
367  char* errBuff, OSSIZE errBuffSize);
368 
384 EXTERNRT OSBOOL rtCmpReal (const char* name, OSREAL value,
385  OSREAL compValue, char* errBuff,
386  OSSIZE errBuffSize);
387 
404 EXTERNRT OSBOOL rtCmpOIDValue (const char* name, ASN1OBJID* pOID,
405  ASN1OBJID* pcompOID, char* errBuff,
406  OSSIZE errBuffSize);
407 
412 #define rtCmpOID rtCmpOIDValue
413 
430 EXTERNRT OSBOOL rtCmpOID64Value (const char* name, ASN1OID64* pOID,
431  ASN1OID64* pcompOID, char* errBuff,
432  OSSIZE errBuffSize);
433 
438 #define rtCmpOID64 rtCmpOID64Value
439 
460 EXTERNRT OSBOOL rtCmpOpenType (const char* name,
461  OSSIZE numocts, const OSOCTET* data,
462  OSSIZE compNumocts, const OSOCTET* compData,
463  char* errBuff, OSSIZE errBuffSize);
464 
489 EXTERNRT OSBOOL rtCmpOpenTypeExt (const char* name,
490  OSRTDList* pElemList,
491  OSRTDList* pCompElemList,
492  char* errBuff, OSSIZE errBuffSize);
493 
510 EXTERNRT OSBOOL rtCmpTag (const char* name, int tag, int compTag,
511  char* errBuff, OSSIZE errBuffSize);
512 
529 EXTERNRT OSBOOL rtCmpSeqOfElements (const char* name, OSSIZE noOfElems,
530  OSSIZE compNoOfElems, char* errBuff,
531  OSSIZE errBuffSize);
532 
549 EXTERNRT OSBOOL rtCmpOptional (const char* name, unsigned presentBit,
550  unsigned compPresentBit, char* errBuff,
551  OSSIZE errBuffSize);
556 /* Compare function To StdOut */
557 
574 EXTERNRT OSBOOL rtCmpToStdoutBoolean (const char* name, OSBOOL value,
575  OSBOOL compValue);
576 
582 EXTERNRT OSBOOL rtCmpToStdoutInteger (const char* name, OSINT32 value,
583  OSINT32 compValue);
584 
590 EXTERNRT OSBOOL rtCmpToStdoutInt64 (const char* name, OSINT64 value,
591  OSINT64 compValue);
592 
598 EXTERNRT OSBOOL rtCmpToStdoutUnsigned (const char* name, OSUINT32 value,
599  OSUINT32 compValue);
600 
606 EXTERNRT OSBOOL rtCmpToStdoutUInt64 (const char* name, OSUINT64 value,
607  OSUINT64 compValue);
608 
616 EXTERNRT OSBOOL rtCmpToStdoutBitStr (const char* name, OSSIZE numbits,
617  const OSOCTET* data,
618  OSSIZE compNumbits,
619  const OSOCTET* compData);
627 EXTERNRT OSBOOL rtCmpToStdoutOctStr (const char* name, OSSIZE numocts,
628  const OSOCTET* data,
629  OSSIZE compNumocts,
630  const OSOCTET* compData);
636 EXTERNRT OSBOOL rtCmpToStdoutCharStr (const char* name,
637  const char* cstring,
638  const char* compCstring);
644 EXTERNRT OSBOOL rtCmpToStdout16BitCharStr (const char* name,
645  Asn116BitCharString* bstring,
646  Asn116BitCharString* compBstring);
652 EXTERNRT OSBOOL rtCmpToStdout32BitCharStr (const char* name,
653  Asn132BitCharString* bstring,
654  Asn132BitCharString* compBstring);
660 EXTERNRT OSBOOL rtCmpToStdoutReal (const char* name,
661  OSREAL value, OSREAL compValue);
667 EXTERNRT OSBOOL rtCmpToStdoutOID (const char* name,
668  ASN1OBJID* pOID, ASN1OBJID* pcompOID);
674 EXTERNRT OSBOOL rtCmpToStdoutOIDValue (const char* name,
675  ASN1OBJID* pOID, ASN1OBJID* pcompOID);
681 EXTERNRT OSBOOL rtCmpToStdoutOID64 (const char* name,
682  ASN1OID64* pOID, ASN1OID64* pcompOID);
688 EXTERNRT OSBOOL rtCmpToStdoutOID64Value (const char* name,
689  ASN1OID64* pOID,
690  ASN1OID64* pcompOID);
698 EXTERNRT OSBOOL rtCmpToStdoutOpenType (const char* name,
699  OSSIZE numocts,
700  const OSOCTET* data,
701  OSSIZE compNumocts,
702  const OSOCTET* compData);
708 EXTERNRT OSBOOL rtCmpToStdoutOpenTypeExt (const char* name,
709  OSRTDList* pElemList,
710  OSRTDList* pCompElemList);
716 EXTERNRT OSBOOL rtCmpToStdoutTag (const char* name, int tag,
717  int compTag);
723 EXTERNRT OSBOOL rtCmpToStdoutSeqOfElements (const char* name,
724  OSSIZE noOfElems,
725  OSSIZE compNoOfElems);
731 EXTERNRT OSBOOL rtCmpToStdoutOptional (const char* name,
732  unsigned presentBit,
733  unsigned compPresentBit);
739 #ifdef __cplusplus
740 }
741 #endif
742 #endif
743 
OSBOOL rtCmpToStdoutOpenType(const char *name, OSSIZE numocts, const OSOCTET *data, OSSIZE compNumocts, const OSOCTET *compData)
OSBOOL rtCmpInt64(const char *name, OSINT64 value, OSINT64 compValue, char *errBuff, OSSIZE errBuffSize)
Definition: asn1type.h:686
OSBOOL rtCmpToStdoutBitStr(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE compNumbits, const OSOCTET *compData)
OSBOOL rtCmp16BitCharStr(const char *name, Asn116BitCharString *bstring, Asn116BitCharString *compBstring, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdout16BitCharStr(const char *name, Asn116BitCharString *bstring, Asn116BitCharString *compBstring)
OSBOOL rtCmpUSInt(const char *name, OSUINT16 value, OSUINT16 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpUInt8(const char *name, OSUINT8 value, OSUINT8 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpReal(const char *name, OSREAL value, OSREAL compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpUnsigned(const char *name, OSUINT32 value, OSUINT32 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpOptional(const char *name, unsigned presentBit, unsigned compPresentBit, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutBoolean(const char *name, OSBOOL value, OSBOOL compValue)
Definition: rtxDList.h:64
OSBOOL rtCmpOIDValue(const char *name, ASN1OBJID *pOID, ASN1OBJID *pcompOID, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutCharStr(const char *name, const char *cstring, const char *compCstring)
Definition: asn1type.h:275
OSBOOL rtCmpOpenTypeExt(const char *name, OSRTDList *pElemList, OSRTDList *pCompElemList, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpBoolean(const char *name, OSBOOL value, OSBOOL compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutSeqOfElements(const char *name, OSSIZE noOfElems, OSSIZE compNoOfElems)
OSBOOL rtCmpToStdoutOID64Value(const char *name, ASN1OID64 *pOID, ASN1OID64 *pcompOID)
OSBOOL rtCmpCharStr(const char *name, const char *cstring, const char *compCstring, char *errBuff, OSSIZE errBuffSize)
Definition: asn1type.h:285
OSBOOL rtCmpOpenType(const char *name, OSSIZE numocts, const OSOCTET *data, OSSIZE compNumocts, const OSOCTET *compData, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpInteger(const char *name, OSINT32 value, OSINT32 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpInt8(const char *name, OSINT8 value, OSINT8 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutOID(const char *name, ASN1OBJID *pOID, ASN1OBJID *pcompOID)
OSBOOL rtCmpUInt64(const char *name, OSUINT64 value, OSUINT64 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutUnsigned(const char *name, OSUINT32 value, OSUINT32 compValue)
OSBOOL rtCmpToStdoutReal(const char *name, OSREAL value, OSREAL compValue)
OSBOOL rtCmpSInt(const char *name, OSINT16 value, OSINT16 compValue, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpOctStr(const char *name, OSSIZE numocts, const OSOCTET *data, OSSIZE compNumocts, const OSOCTET *compData, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdout32BitCharStr(const char *name, Asn132BitCharString *bstring, Asn132BitCharString *compBstring)
OSBOOL rtCmpToStdoutOptional(const char *name, unsigned presentBit, unsigned compPresentBit)
Definition: asn1type.h:698
OSBOOL rtCmpBitStrExt(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE dataSize, const OSOCTET *extdata, OSSIZE compNumbits, const OSOCTET *compData, const OSOCTET *compExtdata, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpSeqOfElements(const char *name, OSSIZE noOfElems, OSSIZE compNoOfElems, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutTag(const char *name, int tag, int compTag)
OSBOOL rtCmpToStdoutInteger(const char *name, OSINT32 value, OSINT32 compValue)
OSBOOL rtCmpBitStr(const char *name, OSSIZE numbits, const OSOCTET *data, OSSIZE compNumbits, const OSOCTET *compData, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutOpenTypeExt(const char *name, OSRTDList *pElemList, OSRTDList *pCompElemList)
OSBOOL rtCmpToStdoutOctStr(const char *name, OSSIZE numocts, const OSOCTET *data, OSSIZE compNumocts, const OSOCTET *compData)
OSBOOL rtCmpToStdoutOIDValue(const char *name, ASN1OBJID *pOID, ASN1OBJID *pcompOID)
OSBOOL rtCmpToStdoutOID64(const char *name, ASN1OID64 *pOID, ASN1OID64 *pcompOID)
OSBOOL rtCmpTag(const char *name, int tag, int compTag, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmp32BitCharStr(const char *name, Asn132BitCharString *bstring, Asn132BitCharString *compBstring, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutInt64(const char *name, OSINT64 value, OSINT64 compValue)
OSBOOL rtCmpOID64Value(const char *name, ASN1OID64 *pOID, ASN1OID64 *pcompOID, char *errBuff, OSSIZE errBuffSize)
OSBOOL rtCmpToStdoutUInt64(const char *name, OSUINT64 value, OSUINT64 compValue)