<br>
<div><span class="gmail_quote">On 30/07/06, <b class="gmail_sendername">Jouni Malinen</b> &lt;<a href="mailto:jkmaline@cc.hut.fi">jkmaline@cc.hut.fi</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Wed, Jul 26, 2006 at 04:48:41PM +0200, Paul-Henri Gauzence de Lastours wrote:<br><br>&gt; I'm using wpa_supplicant-
0.4.8.<br>&gt; The version of OpenSSL is 0.9.7j, the latest for branch 0-9-7 (4th may<br>&gt; 2006), and I'm working on ARM9 with a 2.6.10 kernel.<br><br>Is this using uClinux? Which C library are you using?</blockquote>
<div>&nbsp;</div>
<div>I'm using uclibc926.</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&gt; According to what you say, the problem should come from OpenSSL, so I'm<br>&gt; gonna have a look on it.
<br><br>Either something goes wrong in the way OpenSSL library is being called<br>or something odd happens in OpenSSL. Have you used OpenSSL on that<br>board with anything else?<br><br>I haven't tested OpenSSL 0.9.7j, but I would not expect it to be that
<br>different from earlier 0.9.7 versions that I have tested. It looks like<br>this issue may require adding some more debug code in eap_tls_common.c<br>or tls_openssl.c to figure out what exactly is happening when OpenSSL
<br>library gets called.</blockquote>
<div>&nbsp;</div>
<div>Actually, I'm using exactly the same OpenSSL files for hostapd, and it works perfectly.</div>
<div>So, I made a few more tests, and here is what I could find out :</div>
<div>&nbsp;</div>
<div>- in the <em>eap_tls_common</em> file, in the function <em>eap_tls_process_helper</em>, the function&nbsp;<em>tls_connection_handshake </em>is never called, because <em>eap_tls_data_reassemble</em> returns a NULL, and so, we quit 
<em>eap_tls_process_helper</em>. I tried to force the call of <em>eap_tls_handshake</em> by commenting out the test on msg value. Then, the <em>client hello</em> message was correctly sent, but then, there&nbsp;were&nbsp;lots and lots of strange characters on debug output, and the authentication failed. But the 
<em>Client_hello</em> and <em>Response_EAP-TTLS</em> packets were correctly sent.</div>
<div>&nbsp;</div>
<div>So it seems that OpenSSL is correctly working, and that the problem comes from <em>eap_tls_data_reassemble</em>. I'm continuing to work on that, but would you have any idea&nbsp;of what could provok&nbsp;getting a NULL from this function ?
</div>
<div>&nbsp;</div>
<div>Thanks for your help.<br>&nbsp;</div></div>