//
// PEM_proc_type from 0xdc6f14 to 0xdc6fa8 (148 bytes)
//
// 3 xrefs:
// > PEM_ASN1_write_bio @ 0xdc7b44
// > PEM_X509_INFO_write_bio @ 0xe64a68
// > ??> @ 0x2fd78
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
size_t __fastcall PEM_proc_type(char *a1, int a2)
{
const char *v3; // x20
switch ( a2 )
{
case 10:
v3 = "ENCRYPTED";
break;
case 30:
v3 = "MIC-CLEAR";
break;
case 20:
v3 = "MIC-ONLY";
break;
default:
v3 = "BAD-TYPE";
break;
}
OPENSSL_strlcat(a1, "Proc-Type: 4,", 0x400u);
OPENSSL_strlcat(a1, v3, 0x400u);
return OPENSSL_strlcat(a1, &byte_F1AB78, 0x400u);
}