//
// PEM_proc_type from 0x821560 to 0x8215e8 (136 bytes)
//
// 3 xrefs:
// > PEM_ASN1_write_bio @ 0x822168
// > PEM_X509_INFO_write_bio @ 0x8ba634
// > ??> @ 0x652fc
//
// 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; // r5
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, "\n", 0x400u);
}