summaryrefslogtreecommitdiff
path: root/src/usr.sbin
diff options
context:
space:
mode:
authortb <>2024-11-12 22:50:06 +0000
committertb <>2024-11-12 22:50:06 +0000
commitcf5b89baef0d059b3a6b4ecd4b49409265157b81 (patch)
tree4090f9fd0252fcc655b896c428e7d97f0418050b /src/usr.sbin
parentd2ed7b4e4d92926fea691e61cefc2508f2384bcf (diff)
downloadopenbsd-cf5b89baef0d059b3a6b4ecd4b49409265157b81.tar.gz
openbsd-cf5b89baef0d059b3a6b4ecd4b49409265157b81.tar.bz2
openbsd-cf5b89baef0d059b3a6b4ecd4b49409265157b81.zip
The subject of a certificate is not optional
A certificate must have a subject, so X509_get_subject_name() cannot return NULL on a correctly parsed certificate, even if the subject is empty (which is allowed). So if X509_get_subject_name() returns NULL, error instead of silently ignoring it in tls_check_common_name(). This is currently no issue. Where it matters, the match against the common name will fail later, so we fail closed anyway. ok jsing
Diffstat (limited to 'src/usr.sbin')
0 files changed, 0 insertions, 0 deletions