<div dir="ltr">Sorry to follow up on my own email:<br><div><br>On Fri, May 17, 2013 at 3:21 PM, Avesh Agarwal <span dir="ltr"><<a href="mailto:avesh.ncsu@gmail.com" target="_blank">avesh.ncsu@gmail.com</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hello,<br>
<br></div>I am using OS and Attestation IMVs with Freeradius (with patch from TNC@FHH). However while loading these IMVs, I notice following issues:<br><br></div>1. OS IMV gets loaded but shows following errors:<br>
<br> [HSR] plugin 'random' failed to load: /usr/lib64/strongswan/plugins/libstrongswan-random.so: undefined symbol: dbg<br>[HSR] plugin 'nonce' failed to load: /usr/lib64/strongswan/plugins/libstrongswan-nonce.so: undefined symbol: rng_quality_names<br>
[HSR] plugin 'gmp' failed to load: /usr/lib64/strongswan/plugins/libstrongswan-gmp.so: undefined symbol: private_key_equals<br>[HSR] plugin 'pubkey' failed to load: /usr/lib64/strongswan/plugins/libstrongswan-pubkey.so: undefined symbol: chunk_empty<br>
[HSR] plugin 'x509' failed to load: /usr/lib64/strongswan/plugins/libstrongswan-x509.so: undefined symbol: chunk_empty<br><br></div>I have checked and all the above plugins are available.<br><br></div></div></div>
</div></blockquote><div>The above issue seems to get solved and the reason was that libstrongswan was not being loaded with RTLD_GLOBAL by the tnc-fhh's tncs module, and due to this, plugins were not able to resolve symbols. However, somehow I do not see the debug messages saying that "plugin XXX loaded successfully", even though I have following conf file:<br>
<br>libimcv {<br> debug_level = 3<br>} <br><br></div><div>Any help is appreciated with this.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><div></div>2. When loading attestation IMV, it segfaults at following location:<br>
<br>Program received signal SIGSEGV, Segmentation fault.<br>pts_meas_algo_probe (algorithms=algorithms@entry=0x7ff49dc9c2f0 <supported_algorithms>)<br> at pts/pts_meas_algo.c:49<br>49 enumerator = lib->crypto->create_hasher_enumerator(lib->crypto);<br>
(gdb) bt<br>#0 pts_meas_algo_probe (algorithms=algorithms@entry=0x7ff49dc9c2f0 <supported_algorithms>)<br> at pts/pts_meas_algo.c:49<br>#1 0x00007ff49da97eda in TNC_IMV_Initialize (imv_id=0, min_version=1, max_version=1, <br>
actual_version=<optimized out>) at imv_attestation.c:93<br>#2 0x00007ff4a19bbc42 in tncfhh::iel::IMVProperties::call_TNC_IMV_Initialize (this=this@entry=0x7ff4aa83f5c0)<br> at /usr/src/debug/tncfhh-0.8.3/tncs/src/tncs/iel/IMVProperties.cpp:431<br>
#3 0x00007ff4a19be5a5 in tncfhh::iel::IMVProperties::IMVProperties (this=0x7ff4aa83f5c0, id=0, name=..., <br> file=...) at /usr/src/debug/tncfhh-0.8.3/tncs/src/tncs/iel/IMVProperties.cpp:100<br><br><br></div></div></div>
</blockquote><div><br></div><div>The above issue still persists, so any help is appreciated again.<br><br></div><div>Regards<br>Avesh<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div></div>I compiled strongswan with following flags:<br>
<br> --disable-charon \<br> --disable-aes \<br> --disable-des \<br> --disable-md5 \<br> --disable-pgp \<br> --disable-dnskey \<br> --disable-fips-prf \<br> --disable-xcbc \<br> --disable-stroke \<br>
--disable-tools \<br> --disable-updown \<br> --disable-resolve \<br> --disable-kernel-netlink \<br> --enable-openssl \<br> --enable-sqlite \<br> --enable-imc-test \<br> --enable-imv-test \<br> --enable-imc-scanner \<br>
--enable-imv-scanner \<br> --enable-imc-attestation \<br> --enable-imv-attestation \<br> --enable-imv-os \<br> --enable-imc-os<br><br>I am not sure what I am missing or where is the error, so any help would be appreciated. When using attestation IMV and OS IMV with charon daemon, things work fine.<br>
<br></div>Thanks<span class=""><font color="#888888"><br>Avesh<br></font></span></div>
</blockquote></div><br></div></div></div>