Lines Matching defs:pThis

41 RTDECL(int) RTAsn1String_DecodeAsn1(PRTASN1CURSOR pCursor, uint32_t fFlags, PRTASN1STRING pThis, const char *pszErrorTag)
43 RT_ZERO(*pThis);
46 int rc = RTAsn1CursorReadHdr(pCursor, &pThis->Asn1Core, pszErrorTag);
52 switch (pThis->Asn1Core.uTag)
71 pszErrorTag, pThis->Asn1Core.fClass, pThis->Asn1Core.uTag);
78 if (pThis->Asn1Core.fClass == (ASN1_TAGCLASS_UNIVERSAL | ASN1_TAGFLAG_PRIMITIVE))
83 RTAsn1CursorSkip(pCursor, pThis->Asn1Core.cb);
84 pThis->Asn1Core.pOps = &g_RTAsn1String_Vtable;
85 pThis->Asn1Core.fFlags |= RTASN1CORE_F_PRIMITE_TAG_STRUCT;
86 RTAsn1CursorInitAllocation(pCursor, &pThis->Allocation);
92 if (pThis->Asn1Core.fClass == (ASN1_TAGCLASS_UNIVERSAL | ASN1_TAGFLAG_CONSTRUCTED))
100 pszErrorTag, pThis->Asn1Core.cb, pThis->Asn1Core.uTag, pThis->Asn1Core.fClass);
103 if (pThis->Asn1Core.cb > 1000)
108 pszErrorTag, pThis->Asn1Core.cb,
109 pThis->Asn1Core.uTag, pThis->Asn1Core.fClass);
119 pszErrorTag, pThis->Asn1Core.fClass, pThis->Asn1Core.uTag);
122 RT_ZERO(*pThis);
134 * @param pThis The output object.
138 static int rtAsn1XxxString_DecodeAsn1(PRTASN1CURSOR pCursor, uint32_t fFlags, uint8_t uTag, PRTASN1STRING pThis,
141 pThis->cchUtf8 = 0;
142 pThis->pszUtf8 = NULL;
144 int rc = RTAsn1CursorReadHdr(pCursor, &pThis->Asn1Core, pszErrorTag);
147 rc = RTAsn1CursorMatchTagClassFlagsString(pCursor, &pThis->Asn1Core, uTag,
152 if (!(pThis->Asn1Core.fClass & ASN1_TAGFLAG_CONSTRUCTED))
154 RTAsn1CursorSkip(pCursor, pThis->Asn1Core.cb);
155 pThis->Asn1Core.pOps = &g_RTAsn1String_Vtable;
156 pThis->Asn1Core.fFlags |= RTASN1CORE_F_PRIMITE_TAG_STRUCT;
157 RTAsn1CursorInitAllocation(pCursor, &pThis->Allocation);
165 RT_ZERO(*pThis);
175 PRTASN1STRING pThis, const char *pszErrorTag) \
177 return rtAsn1XxxString_DecodeAsn1(pCursor, fFlags, a_uTag, pThis, pszErrorTag, a_szTag); \