<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<div style="">
<p dir="auto">I applied this hack to OpenSSL 1.1.0 to make it <em>not</em> do EtM even when it's negotiated it:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">--- a/ssl/ssl_locl.h</span>
<span id="LC2" class="line" lang="plaintext">+++ b/ssl/ssl_locl.h</span>
<span id="LC3" class="line" lang="plaintext">@@ -370,7 +370,7 @@</span>
<span id="LC4" class="line" lang="plaintext"> # define GET_MAX_FRAGMENT_LENGTH(session) \</span>
<span id="LC5" class="line" lang="plaintext">     (512U << (session->ext.max_fragment_len_mode - 1))</span>
<span id="LC6" class="line" lang="plaintext"> </span>
<span id="LC7" class="line" lang="plaintext">-# define SSL_READ_ETM(s) (s->s3->flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_READ)</span>
<span id="LC8" class="line" lang="plaintext">+# define SSL_READ_ETM(s) (0 && s->s3->flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_READ)</span>
<span id="LC9" class="line" lang="plaintext"> # define SSL_WRITE_ETM(s) (s->s3->flags & TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE)</span>
<span id="LC10" class="line" lang="plaintext"> </span>
<span id="LC11" class="line" lang="plaintext"> /* Mostly for SSLv3 */</span></code></pre>
<p dir="auto">Now it talks to GnuTLS just fine.</p>
</div>


</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/139#note_180412842">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/4bfd82abb55168eb7f056a6507039d1b/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/139#note_180412842"}}</script>


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