<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>

<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>


<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: hsla(0,0%,100%,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">

<h3 style="margin-top: 20px; margin-bottom: 10px;">
Matt Selsky pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a>
</h3>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
Commits:
</h4>
<ul>
<li>
<strong style="font-weight: 600;"><a href="https://gitlab.com/NTPsec/ntpsec/-/commit/66aba586b59d05fa9d3deecf653f609a1f5f02a3">66aba586</a></strong>
<div>
<span> by Matt Selsky </span> <i> at 2026-11-07T17:06:14+00:00 </i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #f7f7f5; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dcdbd9;'>ntpd/nts_client.c: don't match the CN when SANs exist

RFC 8915 section 3 requires clients to follow RFC 6125 when checking
the NTS-KE server's identity, and RFC 6125 section 6.4.4 forbids
matching the subject Common Name when the certificate has DNS names
in its Subject Alternative Name. "Fix derecation warning from OpenSSL
4.1.0-alpha1" set X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT so that a
self-signed test certificate would match by CN, which makes OpenSSL
accept a certificate whose CN, but none of whose DNS SANs, names the
server.

Drop the flag. Without it, X509_check_host(3) documents that the CN
is still checked when a certificate has no DNS SANs. A test
certificate that relies on its CN needs the name added as a DNS SAN,
or the client's server line needs noval.
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
1 changed file:
</h4>
<ul>
<li class="file-stats">
<a href="#4188e892f41c12f300287a7e79074f6da4611f73">
ntpd/nts_client.c
</a>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
Changes:
</h4>
<li id="4188e892f41c12f300287a7e79074f6da4611f73">
<a href="https://gitlab.com/NTPsec/ntpsec/-/commit/66aba586b59d05fa9d3deecf653f609a1f5f02a3#4188e892f41c12f300287a7e79074f6da4611f73"><strong style="font-weight: 600;">ntpd/nts_client.c</strong></a>
<hr style="overflow: hidden; border: 1px solid #dcdbd9;">
<table class="code white" style="border-spacing: 0; border-collapse: collapse; width: auto; font-family: monospace; font-size: 90%;" bgcolor="#ffffff" width="100%" cellpadding="0" cellspacing="0">
<tr class="line_holder match" style="line-height: 1.6;">
<td class="diff-line-num unfold js-unfold old_line" data-linenumber="497" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">...</td>
<td class="diff-line-num unfold js-unfold new_line" data-linenumber="497" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">...</td>
<td class="line_content match" style="color: rgba(5,5,6,.24); padding: inherit;" bgcolor="#f7f7f5">@@ -497,7 +497,7 @@ void set_hostname(SSL *ssl, const char *hostname) {</td>
</tr>
<tr class="line_holder" style="line-height: 1.6;">
<td class="old_line diff-line-num" data-linenumber="497" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
497
</td>
<td class="new_line diff-line-num" data-linenumber="497" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
497
</td>
<td class="line_content" style="padding: inherit;"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'> <span class="line" data-lang="c"><span class="cm" style="color: #999988; font-style: italic;"> * of wildcards to make it clear that they're permitted unless specifically</span></span>
</pre></td>
</tr>
<tr class="line_holder" style="line-height: 1.6;">
<td class="old_line diff-line-num" data-linenumber="498" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
498
</td>
<td class="new_line diff-line-num" data-linenumber="498" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
498
</td>
<td class="line_content" style="padding: inherit;"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'> <span class="line" data-lang="c"><span class="cm" style="color: #999988; font-style: italic;"> * prohibited in an RFC</span></span>
</pre></td>
</tr>
<tr class="line_holder" style="line-height: 1.6;">
<td class="old_line diff-line-num" data-linenumber="499" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
499
</td>
<td class="new_line diff-line-num" data-linenumber="499" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
499
</td>
<td class="line_content" style="padding: inherit;"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'> <span class="line" data-lang="c"><span class="cm" style="color: #999988; font-style: italic;"> */</span></span>
</pre></td>
</tr>
<tr class="line_holder old" style="line-height: 1.6;">
<td class="old_line diff-line-num old" data-linenumber="500" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f9d7dc">
500
</td>
<td class="new_line diff-line-num old" data-linenumber="500" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #fac5cd; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f9d7dc">
 
</td>
<td class="line_content old" style="padding: inherit;" bgcolor="#fbe9eb"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'>-<span class="line" data-lang="c">        <span class="n" style="color: #333333;">SSL_set_hostflags</span><span class="p">(</span><span class="n" style="color: #333333;">ssl</span><span class="p">,</span> <span class="n" style="color: #333333;">X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS</span><span class="idiff left deletion" style="background-color: #fac5cd;"> </span><span class="o" style="font-weight: 600;"><span class="idiff deletion" style="background-color: #fac5cd;">|</span></span><span class="idiff deletion" style="background-color: #fac5cd;"> </span><span class="n" style="color: #333333;"><span class="idiff right deletion" style="background-color: #fac5cd;">X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT</span></span><span class="p">);</span></span>
</pre></td>
</tr>
<tr class="line_holder new" style="line-height: 1.6;">
<td class="old_line diff-line-num new" data-linenumber="501" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: inherit;" align="right" bgcolor="#ddfbe6">
 
</td>
<td class="new_line diff-line-num new" data-linenumber="500" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #c7f0d2; border-right-style: solid; padding: inherit;" align="right" bgcolor="#ddfbe6">
500
</td>
<td class="line_content new" style="padding: inherit;" bgcolor="#ecfdf0"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'>+<span class="line" data-lang="c">        <span class="n" style="color: #333333;">SSL_set_hostflags</span><span class="p">(</span><span class="n" style="color: #333333;">ssl</span><span class="p">,</span> <span class="n" style="color: #333333;">X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS</span><span class="p">);</span></span>
</pre></td>
</tr>
<tr class="line_holder" style="line-height: 1.6;">
<td class="old_line diff-line-num" data-linenumber="501" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
501
</td>
<td class="new_line diff-line-num" data-linenumber="501" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
501
</td>
<td class="line_content" style="padding: inherit;"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'> <span class="line" data-lang="c"><span class="cp" style="color: #999999; font-weight: 600;">#if OPENSSL_VERSION_NUMBER >= 0x40000000L</span></span>
</pre></td>
</tr>
<tr class="line_holder" style="line-height: 1.6;">
<td class="old_line diff-line-num" data-linenumber="502" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
502
</td>
<td class="new_line diff-line-num" data-linenumber="502" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
502
</td>
<td class="line_content" style="padding: inherit;"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'> <span class="line" data-lang="c"><span class="p">{</span></span>
</pre></td>
</tr>
<tr class="line_holder" style="line-height: 1.6;">
<td class="old_line diff-line-num" data-linenumber="503" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
503
</td>
<td class="new_line diff-line-num" data-linenumber="503" style="width: 35px; color: rgba(5,5,6,.24); border-right-width: 1px; border-right-color: #ecebea; border-right-style: solid; padding: inherit;" align="right" bgcolor="#f7f7f5">
503
</td>
<td class="line_content" style="padding: inherit;"><pre style='display: block; font-size: 14px; color: #3a383d; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: inherit; border-radius: 2px; margin: 0; padding: 0; border: inherit solid #dcdbd9;'> <span class="line" data-lang="c">        <span class="n" style="color: #333333;">sockaddr_u</span> <span class="n" style="color: #333333;">addr</span><span class="p">;</span></span>
</pre></td>
</tr>

</table>
<br>
</li>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #646163;">
—
<br>
<a href="https://gitlab.com/NTPsec/ntpsec/-/commit/66aba586b59d05fa9d3deecf653f609a1f5f02a3">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">Notification message regarding https://gitlab.com/NTPsec/ntpsec/-/commit/66aba586b59d05fa9d3deecf653f609a1f5f02a3 at cef2135541998c8a63e4aa202e04ee53</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/-/commit/66aba586b59d05fa9d3deecf653f609a1f5f02a3"}}</script>


</p>
</div>
</body>
</html>