extern "C" ASN1_STRING* CryptoNative_DecodeAsn1TypeBytes(const uint8_t* buf, int32_t len, Asn1StringTypeFlags type) { if (!buf || !len) { return nullptr; } return d2i_ASN1_type_bytes(nullptr, &buf, len, type); }
ASN1_STRING* CryptoNative_DecodeAsn1TypeBytes(const uint8_t* buf, int32_t len, Asn1StringTypeFlags type) { if (!buf || !len) { return NULL; } return d2i_ASN1_type_bytes(NULL, &buf, len, (int32_t)type); }