Commit bb3143dd authored by Simon Morlat's avatar Simon Morlat

Add support for x509 "otherName" of SAN.

parent 8c66a5b2
......@@ -760,10 +760,12 @@ int tls_post_connection_check(tport_t *self, tls_t *tls)
value = sk_CONF_VALUE_value(values, j);
if (strcmp(value->name, "DNS") == 0)
su_strlst_dup_append(tls->subjects, value->value);
if (strcmp(value->name, "IP") == 0)
else if (strcmp(value->name, "IP") == 0)
su_strlst_dup_append(tls->subjects, value->value);
else if (strcmp(value->name, "URI") == 0)
su_strlst_dup_append(tls->subjects, value->value);
else if (strcasecmp(value->name, "otherName") == 0)
su_strlst_dup_append(tls->subjects, value->value);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment