<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — DTLS 1.0 "forced" instead of 1.2]]></title>
		<link>https://www.wolfssl.com/forums/topic818-dtls-10-forced-instead-of-12.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic818.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in DTLS 1.0 "forced" instead of 1.2.]]></description>
		<lastBuildDate>Tue, 12 Jul 2016 21:23:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: DTLS 1.0 "forced" instead of 1.2]]></title>
			<link>https://www.wolfssl.com/forums/post2596.html#p2596</link>
			<description><![CDATA[<p>Hi Michael,</p><p>It sounds like this issue has been fixed, can you confirm?</p><p>Thanks,<br />Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrisc)]]></author>
			<pubDate>Tue, 12 Jul 2016 21:23:16 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2596.html#p2596</guid>
		</item>
		<item>
			<title><![CDATA[Re: DTLS 1.0 "forced" instead of 1.2]]></title>
			<link>https://www.wolfssl.com/forums/post2586.html#p2586</link>
			<description><![CDATA[<p>Issue still isn&#039;t fixed.&nbsp; Grabbed the latest out of Github and can still reproduce the issue.</p><p>Looks like the issue is that idx is != 0, so whatever offset its modifying isn&#039;t the correct one.</p>]]></description>
			<author><![CDATA[null@example.com (MichaelMann)]]></author>
			<pubDate>Fri, 08 Jul 2016 16:09:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2586.html#p2586</guid>
		</item>
		<item>
			<title><![CDATA[Re: DTLS 1.0 "forced" instead of 1.2]]></title>
			<link>https://www.wolfssl.com/forums/post2578.html#p2578</link>
			<description><![CDATA[<p>This was due to a misreading of RFC 6347 section 4.2.2. This has been recently fixed in our GitHub repository, <a href="https://github.com/wolfSSL/wolfssl/commit/6d520e0da9164e6fd27889be21d1b491d37c9c0a">commit 6d520e0</a>.</p>]]></description>
			<author><![CDATA[null@example.com (john)]]></author>
			<pubDate>Tue, 05 Jul 2016 20:28:08 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2578.html#p2578</guid>
		</item>
		<item>
			<title><![CDATA[DTLS 1.0 "forced" instead of 1.2]]></title>
			<link>https://www.wolfssl.com/forums/post2577.html#p2577</link>
			<description><![CDATA[<p>I am writing an application that using TLS and DTLS.&nbsp; I set it up to use DTLS v1.2 via wolfDTLSv1_2_client_method().&nbsp; For testing purposes (in house), I created both a client and server side for the application and also tested it against the sample client and server test apps provided in WolfSSL (verifying handshake since application layer is obviously different).&nbsp; All looked good.</p><p>Then I set up the client side of that application to talk to server side with a different implementation of DTLS.&nbsp; Communication failed.&nbsp; The reason for the communication failure was that the server side was dropping the ClientHello because it contained version 1.0 in the message.</p><p>I looked through the wolfSSL library (SendClientHello), and it initially does populate the record with the correct 1.2 version, but then has the following lines of code (within SendClientHello, internal.c):</p><p>#ifdef WOLFSSL_DTLS<br />&nbsp; &nbsp; &nbsp; &nbsp; if (ssl-&gt;options.dtls) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DtlsRecordLayerHeader* rh = (DtlsRecordLayerHeader*)output;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rh-&gt;pvMajor = DTLS_MAJOR;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rh-&gt;pvMinor = DTLS_MINOR;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />#endif /* WOLFSSL_DTLS */</p><p>which will always hardcode the version to 1.0.</p><p>I don&#039;t see how this could be anything but a bug.&nbsp; Is there something I&#039;m not configuring correctly (build option?) so that this doesn&#039;t happen?<br />Should I be able to safety remove those lines of code?</p>]]></description>
			<author><![CDATA[null@example.com (MichaelMann)]]></author>
			<pubDate>Tue, 05 Jul 2016 18:22:46 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post2577.html#p2577</guid>
		</item>
	</channel>
</rss>
