Lines Matching defs:pData

65  * @param   pData               The dump data structure.
69 static void rtAsn1DumpPrintf(PRTASN1DUMPDATA pData, const char *pszFormat, ...)
73 pData->pfnPrintfV(pData->pvUser, pszFormat, va);
81 * @param pData The dump data structure.
84 static void rtAsn1DumpPrintIdent(PRTASN1DUMPDATA pData, uint32_t uDepth)
91 rtAsn1DumpPrintf(pData, &s_szSpaces[sizeof(s_szSpaces) - 1 - cch]);
100 * @param pData The dump data structure.
104 static void rtAsn1DumpTime(PRTASN1DUMPDATA pData, PCRTASN1CORE pAsn1Core, const char *pszType)
109 rtAsn1DumpPrintf(pData, "%s -- %04u-%02u-%02u %02u:%02u:%02.%09Z\n",
116 rtAsn1DumpPrintf(pData, "%s '%.*s'\n", pszType, (size_t)pAsn1Core->cb, pAsn1Core->uData.pch);
118 rtAsn1DumpPrintf(pData, "%s -- cb=%u\n", pszType, pAsn1Core->cb);
125 * @param pData The dump data structure.
130 static void rtAsn1DumpString(PRTASN1DUMPDATA pData, PCRTASN1CORE pAsn1Core, const char *pszType, uint32_t uDepth)
132 rtAsn1DumpPrintf(pData, "%s", pszType);
148 rtAsn1DumpPrintf(pData, "-- cb=%u\n", pszType, pAsn1Core->cb);
153 rtAsn1DumpPrintf(pData, "\n");
154 rtAsn1DumpPrintIdent(pData, uDepth + 1);
156 rtAsn1DumpPrintf(pData, " '");
168 rtAsn1DumpPrintf(pData, "%.*s", pch - pchStart, pchStart);
175 rtAsn1DumpPrintf(pData, "\\x%02x", *pch);
181 rtAsn1DumpPrintf(pData, pszPostfix);
573 * @param pData The dumper data.
577 static bool rtAsn1DumpUniversalTypeAndValue(PRTASN1DUMPDATA pData, PCRTASN1CORE pAsn1Core, uint32_t uDepth)
592 rtAsn1DumpPrintf(pData, "BOOLEAN %s %RTbool\n", pszValuePrefix, ((PCRTASN1BOOLEAN)pAsn1Core)->fValue);
594 rtAsn1DumpPrintf(pData, "BOOLEAN %s %u\n", pszValuePrefix, *pAsn1Core->uData.pu8);
596 rtAsn1DumpPrintf(pData, "BOOLEAN -- cb=%u\n", pAsn1Core->cb);
601 rtAsn1DumpPrintf(pData, "INTEGER %s %llu / %#llx\n", pszValuePrefix,
604 rtAsn1DumpPrintf(pData, "INTEGER -- cb=%u\n", pAsn1Core->cb);
606 rtAsn1DumpPrintf(pData, "INTEGER %s %.*Rhxs\n", pszValuePrefix, (size_t)pAsn1Core->cb, pAsn1Core->uData.pu8);
608 rtAsn1DumpPrintf(pData, "INTEGER %s\n%.*Rhxd\n", pszValuePrefix, (size_t)pAsn1Core->cb, pAsn1Core->uData.pu8);
615 rtAsn1DumpPrintf(pData, "BIT STRING %s-- cb=%u cBits=%#x cMaxBits=%#x",
618 rtAsn1DumpPrintf(pData, " value=%#llx\n", RTAsn1BitString_GetAsUInt64(pBitString));
620 rtAsn1DumpPrintf(pData, "\n");
623 rtAsn1DumpPrintf(pData, "BIT STRING %s-- cb=%u\n", pszDefault, pAsn1Core->cb);
628 rtAsn1DumpPrintf(pData, "OCTET STRING %s-- cb=%u\n", pszDefault, pAsn1Core->cb);
633 rtAsn1DumpPrintf(pData, "NULL\n");
641 rtAsn1DumpPrintf(pData, "OBJECT IDENTIFIER %s%s ('%s')\n",
644 rtAsn1DumpPrintf(pData, "OBJECT IDENTIFIER %s'%s'\n", pszDefault, ((PCRTASN1OBJID)pAsn1Core)->szObjId);
647 rtAsn1DumpPrintf(pData, "OBJECT IDENTIFIER %s -- cb=%u\n", pszDefault, pAsn1Core->cb);
651 rtAsn1DumpPrintf(pData, "OBJECT DESCRIPTOR -- cb=%u TODO\n", pAsn1Core->cb);
655 rtAsn1DumpPrintf(pData, "EXTERNAL -- cb=%u TODO\n", pAsn1Core->cb);
659 rtAsn1DumpPrintf(pData, "REAL -- cb=%u TODO\n", pAsn1Core->cb);
663 rtAsn1DumpPrintf(pData, "ENUMERATED -- cb=%u TODO\n", pAsn1Core->cb);
667 rtAsn1DumpPrintf(pData, "EMBEDDED PDV -- cb=%u TODO\n", pAsn1Core->cb);
671 rtAsn1DumpString(pData, pAsn1Core, "UTF8 STRING", uDepth);
675 rtAsn1DumpPrintf(pData, "RELATIVE OBJECT IDENTIFIER -- cb=%u TODO\n", pAsn1Core->cb);
679 rtAsn1DumpPrintf(pData, "SEQUENCE -- cb=%u\n", pAsn1Core->cb);
683 rtAsn1DumpPrintf(pData, "SET -- cb=%u\n", pAsn1Core->cb);
688 rtAsn1DumpString(pData, pAsn1Core, "NUMERIC STRING", uDepth);
692 rtAsn1DumpString(pData, pAsn1Core, "PRINTABLE STRING", uDepth);
696 rtAsn1DumpString(pData, pAsn1Core, "T61 STRING", uDepth);
700 rtAsn1DumpString(pData, pAsn1Core, "VIDEOTEX STRING", uDepth);
704 rtAsn1DumpString(pData, pAsn1Core, "IA5 STRING", uDepth);
708 rtAsn1DumpString(pData, pAsn1Core, "GRAPHIC STRING", uDepth);
712 rtAsn1DumpString(pData, pAsn1Core, "VISIBLE STRING", uDepth);
716 rtAsn1DumpString(pData, pAsn1Core, "GENERAL STRING", uDepth);
720 rtAsn1DumpString(pData, pAsn1Core, "UNIVERSAL STRING", uDepth);
724 rtAsn1DumpString(pData, pAsn1Core, "BMP STRING", uDepth);
728 rtAsn1DumpTime(pData, pAsn1Core, "UTC TIME");
732 rtAsn1DumpTime(pData, pAsn1Core, "GENERALIZED TIME");
736 rtAsn1DumpPrintf(pData, "CHARACTER STRING -- cb=%u TODO\n", pAsn1Core->cb);
740 rtAsn1DumpPrintf(pData, "[UNIVERSAL %u]\n", pAsn1Core->uTag);
750 PRTASN1DUMPDATA pData = (PRTASN1DUMPDATA)pvUser;
755 rtAsn1DumpPrintIdent(pData, uDepth);
759 rtAsn1DumpPrintf(pData, "%-16s ", pszName);
760 fOpen = rtAsn1DumpUniversalTypeAndValue(pData, pAsn1Core, uDepth);
766 rtAsn1DumpPrintf(pData, "%-16s [%u] ", pszName, pAsn1Core->uTag);
767 fOpen = rtAsn1DumpUniversalTypeAndValue(pData, pAsn1Core, uDepth);
771 rtAsn1DumpPrintf(pData, "%-16s [%u]\n", pszName, pAsn1Core->uTag);
779 rtAsn1DumpPrintf(pData, "%-16s [APPLICATION %u] ", pszName, pAsn1Core->uTag);
780 fOpen = rtAsn1DumpUniversalTypeAndValue(pData, pAsn1Core, uDepth);
784 rtAsn1DumpPrintf(pData, "%-16s [APPLICATION %u]\n", pszName, pAsn1Core->uTag);
791 rtAsn1DumpPrintf(pData, "%-16s DUMMY\n", pszName);
794 rtAsn1DumpPrintf(pData, "%-16s [PRIVATE %u]\n", pszName, pAsn1Core->uTag);
806 pAsn1Core->pOps->pfnEnum(pAsn1Core, rtAsn1DumpEnumCallback, uDepth, pData);