<!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">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/albrechtd">Albrecht Dreß</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1073">#1073</a>:
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-the-feature" class="anchor" href="#description-of-the-feature" aria-hidden="true"></a>Description of the feature:</h2>
<p dir="auto">In “Echo” mode, <code>gnutls-serv</code> always replaces CRLF line endings by LF by <a href="https://gitlab.com/gnutls/gnutls/-/blob/master/src/serv.c#L1061">unconditionally calling <code>strip()</code></a>.  It would be nice to have an option to switch this off, similar to the cli's <code>--crlf</code> option.</p>
<h2 dir="auto">
<a id="user-content-applications-that-this-feature-may-be-relevant-to" class="anchor" href="#applications-that-this-feature-may-be-relevant-to" aria-hidden="true"></a>Applications that this feature may be relevant to:</h2>
<p dir="auto">I use the Echo server for testing libraries and applications, implementing, inter alia, protocols like SMTP or POP3 which <em>rely</em> upon CRLF line endings according to the standards.  If the CRLF-terminated message sent to the Echo server is returned <em>without</em> the CR, the tests fail.  I hacked <code>gnutls-serv</code> by just commenting out the aforementioned call, but this is no “real” solution IMHO…</p>
<h2 dir="auto">
<a id="user-content-is-this-feature-implemented-in-other-libraries-and-which" class="anchor" href="#is-this-feature-implemented-in-other-libraries-and-which" aria-hidden="true"></a>Is this feature implemented in other libraries (and which)</h2>
<p dir="auto">IIRC, older versions of <code>gnutls-serv</code> (e.g. in Ubuntu 18.04) did <em>not</em> replace the CRLF by LF.</p>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1073">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/dc0fc918b631601fb31f8da7a7156eaf/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/1073"}}</script>


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