<!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=US-ASCII" 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: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: var(--default-regular-font, "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: rgba(255,255,255,.01) 0 0 1px; font-family: var(--default-regular-font, "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">
<p style="color: #777777;">
<a href="https://gitlab.com/peonix">Ajit Singh</a>
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1531#note_1845692160">commented</a>:
</p>
<div class="md" style="color: #333238; word-wrap: break-word;">
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">@ueno any thoughts on this? I think we can go with same function as functionality doesn't differ much?</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in</span>
<span id="LC2" class="line" lang="plaintext">index afecfaa39..97eab2d34 100644</span>
<span id="LC3" class="line" lang="plaintext">--- a/lib/includes/gnutls/gnutls.h.in</span>
<span id="LC4" class="line" lang="plaintext">+++ b/lib/includes/gnutls/gnutls.h.in</span>
<span id="LC5" class="line" lang="plaintext">@@ -1627,6 +1627,10 @@ unsigned gnutls_session_etm_status(gnutls_session_t session);</span>
<span id="LC6" class="line" lang="plaintext"> * @GNUTLS_SFLAGS_CLI_REQUESTED_OCSP: Set when the client has requested OCSP staple during handshake.</span>
<span id="LC7" class="line" lang="plaintext"> * @GNUTLS_SFLAGS_SERV_REQUESTED_OCSP: Set when the server has requested OCSP staple during handshake.</span>
<span id="LC8" class="line" lang="plaintext"> *</span>
<span id="LC9" class="line" lang="plaintext">+ * Session configuration flags:</span>
<span id="LC10" class="line" lang="plaintext">+ * @GNUTLS_SCFLAGS_NO_TICKETS_ENABLED: Set when %NO_TICKET priority string is enabled.</span>
<span id="LC11" class="line" lang="plaintext">+ * @GNUTLS_SCFLAGS_NO_TICKETS_TLS12_ENABLED: Set when %NO_TICKET_TLS12 priority string is enabled.</span>
<span id="LC12" class="line" lang="plaintext">+ *</span>
<span id="LC13" class="line" lang="plaintext"> * Enumeration of different session parameters.</span>
<span id="LC14" class="line" lang="plaintext"> */</span>
<span id="LC15" class="line" lang="plaintext"> typedef enum {</span>
<span id="LC16" class="line" lang="plaintext">@@ -1642,7 +1646,11 @@ typedef enum {</span>
<span id="LC17" class="line" lang="plaintext"> GNUTLS_SFLAGS_EARLY_START = 1 << 9,</span>
<span id="LC18" class="line" lang="plaintext"> GNUTLS_SFLAGS_EARLY_DATA = 1 << 10,</span>
<span id="LC19" class="line" lang="plaintext"> GNUTLS_SFLAGS_CLI_REQUESTED_OCSP = 1 << 11,</span>
<span id="LC20" class="line" lang="plaintext">- GNUTLS_SFLAGS_SERV_REQUESTED_OCSP = 1 << 12</span>
<span id="LC21" class="line" lang="plaintext">+ GNUTLS_SFLAGS_SERV_REQUESTED_OCSP = 1 << 12,</span>
<span id="LC22" class="line" lang="plaintext">+</span>
<span id="LC23" class="line" lang="plaintext">+ /* Configuration flags */</span>
<span id="LC24" class="line" lang="plaintext">+ GNUTLS_SCFLAGS_NO_TICKETS_ENABLED = 1 << 13,</span>
<span id="LC25" class="line" lang="plaintext">+ GNUTLS_SCFLAGS_NO_TICKETS_TLS12_ENABLED = 1 << 14</span>
<span id="LC26" class="line" lang="plaintext"> } gnutls_session_flags_t;</span>
<span id="LC27" class="line" lang="plaintext"></span>
<span id="LC28" class="line" lang="plaintext"> unsigned gnutls_session_get_flags(gnutls_session_t session);</span>
<span id="LC29" class="line" lang="plaintext">diff --git a/lib/state.c b/lib/state.c</span>
<span id="LC30" class="line" lang="plaintext">index ec514c0cd..cfb3239bc 100644</span>
<span id="LC31" class="line" lang="plaintext">--- a/lib/state.c</span>
<span id="LC32" class="line" lang="plaintext">+++ b/lib/state.c</span>
<span id="LC33" class="line" lang="plaintext">@@ -1858,5 +1858,10 @@ unsigned gnutls_session_get_flags(gnutls_session_t session)</span>
<span id="LC34" class="line" lang="plaintext"> if (session->internals.hsk_flags & HSK_CLIENT_OCSP_REQUESTED)</span>
<span id="LC35" class="line" lang="plaintext"> flags |= GNUTLS_SFLAGS_SERV_REQUESTED_OCSP;</span>
<span id="LC36" class="line" lang="plaintext"></span>
<span id="LC37" class="line" lang="plaintext">+ if (session->internals.priorities->no_tickets)</span>
<span id="LC38" class="line" lang="plaintext">+ flags |= GNUTLS_SCFLAGS_NO_TICKETS_ENABLED;</span>
<span id="LC39" class="line" lang="plaintext">+ if (session->internals.priorities->no_tickets_tls12)</span>
<span id="LC40" class="line" lang="plaintext">+ flags |= GNUTLS_SCFLAGS_NO_TICKETS_TLS12_ENABLED;</span>
<span id="LC41" class="line" lang="plaintext">+</span>
<span id="LC42" class="line" lang="plaintext"> return flags;</span>
<span id="LC43" class="line" lang="plaintext"> }</span>
<span id="LC44" class="line" lang="plaintext"> </span></code></pre>
<copy-code></copy-code>
</div>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1531#note_1845692160">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/-/sent_notifications/33f69deeb31c49d84db7879ef74f1b8b/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <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>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1531#note_1845692160"}}</script>
</p>
</div>
</body>
</html>