Displaying 1 result from an estimated 1 matches for "asn1_string_to_utf8".
2023 Aug 22
0
Quick patch for updated NL-ips
...s not something supported (yet) in Asterisk.
Below is a quick fix/patch to tcptls.c for Asterisk 18 against this particular provider.
Dw
static int check_tcptls_cert_name(ASN1_STRING *cert_str, const char *hostname, const char *desc)
{
unsigned char *str;
int ret;
ret = ASN1_STRING_to_UTF8(&str, cert_str);
if (ret < 0 || !str) {
return -1;
}
if (strlen((char *) str) != ret) {
ast_log(LOG_WARNING, "Invalid certificate %s length (contains NULL bytes?)\n", desc);
ret = -1;
} else if (!strc...