<div dir="ltr">Hi, <div><br></div><div>I already looked at these examples of conf file.</div><div>The supplicant loads the enginepkcs11.so but doesnt load myengine.so.</div><div>I investigated the code and couldn&#39;t find who suppose to load the module. </div>
<div>In openssl the function ENGINE_init suppose to load it. but in wpa_supplicant no one calls this function. </div><div><br></div><div>Thanks, </div><div>Moran</div><div><br><div class="gmail_quote">On Sat, Jun 23, 2012 at 8:43 PM, Jouni Malinen <span dir="ltr">&lt;<a href="mailto:j@w1.fi" target="_blank">j@w1.fi</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Jun 20, 2012 at 03:07:54PM +0300, moran jacuel wrote:<br>
&gt; I am trying to configure wpa_supplicant on my linux machine to work with<br>
&gt; openssl pkcs11 engine with smartcard. The wpa_supplicant doesn&#39;t load my<br>
&gt; pkcs11 engine.  What do i need to write in my wpa_supplicant.cnf file to<br>
&gt; make it work ?<br>
<br>
</div>wpa_supplicant/examples/openCryptoki.conf has some examples on this:<br>
<a href="http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/openCryptoki.conf;hb=HEAD" target="_blank">http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=blob_plain;f=wpa_supplicant/examples/openCryptoki.conf;hb=HEAD</a><br>

<div class="im"><br>
&gt; I am trying to debug the wpa_supplicant in order to understand how it<br>
&gt; works. I cant find a place where the supplicant loads the pkcs11 engine or<br>
&gt; the pkcs11 module. Can you refer me to the place it happens in the code ?<br>
<br>
</div>Assuming your OpenSSL has engine support defined (i.e., does not define<br>
OPENSSL_NO_ENGINE), you should see related debug messages in<br>
wpa_supplicant -d output with ENGINE: prefix.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Jouni Malinen                                            PGP id EFC895FA<br>
_______________________________________________<br>
HostAP mailing list<br>
<a href="mailto:HostAP@lists.shmoo.com">HostAP@lists.shmoo.com</a><br>
<a href="http://lists.shmoo.com/mailman/listinfo/hostap" target="_blank">http://lists.shmoo.com/mailman/listinfo/hostap</a><br>
</font></span></blockquote></div><br></div></div>