<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Perfect. Thanks.</div><div><br></div><div>Cesar<br></div><div><br>On Feb 15, 2015, at 16:14, Alex Afanasyev <<a href="mailto:alexander.afanasyev@ucla.edu">alexander.afanasyev@ucla.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div class="">Hi Cesar,</div><div class=""><br class=""></div><div class="">Yes. There is no longer openssl branch or the need for such branch.  In the new version, you can make full use of CryptoPP library.  Also, many of the security-related tasks can be done using ndn-cxx library directly, which also uses cryptopp library internally.</div><div class=""><br class=""></div><div class="">—</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 15, 2015, at 4:04 PM, Cesar Ghali <<a href="mailto:cghali@uci.edu" class="">cghali@uci.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=windows-1252" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I remember in ndnSIM 1.0 Alex created a branch (feature/with-openssl) to support using openssl with ndnSIM. I can’t see this branch in the latest ndnSIM version and I’m wondering if the feature was merged with the master branch. I didn’t try to use openssl libraries with ndnSIM yet, I just wanted to make sure that I can compile if I do.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Cesar<br class=""><div apple-content-edited="true" class="">
<div style=" font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><div style=" font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; " class=""><span style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: small; background-color: rgb(255, 255, 255); " class=""><br class="Apple-interchange-newline"><font color="#222222" face="arial" class="">-- <br class=""></font></span><span style="color: rgb(89, 89, 89); font-family: Calibri, sans-serif; font-size: small; " class="">PGP Key: <a href="http://www.cesarghali.info/contact.html" class="">http://www.cesarghali.info/contact.html</a><br class=""></span><span style="color: rgb(89, 89, 89); font-family: Calibri, sans-serif; font-size: small; " class="">PGP Key ID: 0x455D8052</span></div></div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On May 11, 2013, at 10:24 PM, Cesar Ghali <<a href="mailto:cghali@uci.edu" class="">cghali@uci.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    <div class="moz-cite-prefix">Thanks Alex, that was the problem. I
      switched the branch but forgot to configure again.<br class="">
      <br class="">
      Regards,<br class="">
      Cesar<br class="">
      <br class="">
      <br class="">
      On 05/10/2013 11:37 AM, Alex Afanasyev wrote:<br class="">
    </div>
    <blockquote cite="mid:77BE09DA-4029-42E8-9B26-D33ECF60E99D@ucla.edu" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1" class="">
      Hi Cesar,
      <div class=""><br class="">
      </div>
      <div class="">Did you reconfigure NS-3/ndnSIM after the merging?  If not,
        then it could be the problem.</div>
      <div class=""><br class="">
      </div>
      <div class="">Here is my output on Linux machine with compilation of the
        same .cc file:</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div class=""><span style="font-size: 12px;" class="">[1019/1763] cxx:
            src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a> ->
            build/src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>.1.o</span></div>
        <div class=""><span style="font-size: 12px;" class="">11:32:15 runner
            ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror',
            '-Wno-error=deprecated-declarations', '-fstrict-aliasing',
            '-Wstrict-aliasing', '-pthread', '-fno-strict-aliasing',
            '-fwrapv', '-fstack-protector', '-fno-strict-aliasing',
            '-I.', '-I..', '-I/usr/include', '-I/usr/include/python2.7',
            '-I/usr/include/x86_64-linux-gnu/python2.7',
            '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE',
            '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1',
            '-DHAVE_PACKET_H=1', '-DHAVE_SSL=1', '-DHAVE_SQLITE3=1',
            '-DHAVE_IF_TUN_H=1', '-DNDEBUG', '-D_FORTIFY_SOURCE=2',
            '../src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>',
            '-c', '-o',
            'src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>.1.o']</span></div>
        <div class=""><span style="font-size: 12px;" class="">[1698/1763] cxxprogram:
            build/src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>.1.o
            ->
            build/src/ndnSIM/tools/ns3-dev-rocketfuel-maps-cch-to-annotaded-debug</span></div>
        <div class=""><span style="font-size: 12px;" class="">11:32:23 runner
            ['/usr/bin/g++', '-pthread', '-Wl,-Bsymbolic-functions',
            '-Wl,-z,relro',
            'src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>.1.o',
            '-o',
            '/home/cawka/ndnSIM/ns-3/build/src/ndnSIM/tools/ns3-dev-rocketfuel-maps-cch-to-annotaded-debug',
            '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed',
            '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
            '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-L/usr/lib',
            '-lns3-dev-ndnSIM-debug', '-lns3-dev-visualizer-debug',
            '-lns3-dev-point-to-point-debug',
            '-lns3-dev-internet-debug', '-lns3-dev-mpi-debug',
            '-lns3-dev-bridge-debug', '-lns3-dev-wifi-debug',
            '-lns3-dev-propagation-debug', '-lns3-dev-mobility-debug',
            '-lns3-dev-topology-read-debug', '-lns3-dev-network-debug',
            '-lns3-dev-core-debug', '-lrt', '-lboost_graph-mt',
            '-lboost_system-mt', '-lboost_signals-mt',
            '-lboost_filesystem-mt', <font color="#e32400" class="">'-lssl',
              '-lcrypto'</font>, '-lpython2.7']</span></div>
      </div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">---</div>
      <div class="">Alex</div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div class="">On May 10, 2013, at 1:34 AM, Cesar Ghali <<a moz-do-not-send="true" href="mailto:cghali@uci.edu" class="">cghali@uci.edu</a>>
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite" class="">
          <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" class="">
          <div bgcolor="#FFFFFF" text="#000000" class="">
            <div class="moz-cite-prefix">Hi Alex,<br class="">
              <br class="">
              I forked
              <meta http-equiv="content-type" content="text/html;
                charset=ISO-8859-1" class="">
              the <a moz-do-not-send="true" href="git://github.com/NDN-Routing/ndnSIM.git" class="">git://github.com/NDN-Routing/ndnSIM.git</a>
              repo and I'm using the feature/with-openssl branch. When I
              build, I am still getting (undefined reference to `SHA1')
              which means that the crypto lib is not being linked. I
              also can't see it in the compile command:<br class="">
              <br class="">
              Build failed<br class="">
               -> task in 'rocketfuel-maps-cch-to-annotaded' failed
              (exit status 1): <br class="">
                  {task 163377036: cxxprogram
              <a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>.1.o ->
              ns3-dev-rocketfuel-maps-cch-to-annotaded-optimized}<br class="">
              ['/usr/bin/g++', '-pthread', '-Wl,-Bsymbolic-functions',
              '-Wl,-z,relro',
              'src/ndnSIM/tools/<a href="http://rocketfuel-maps-cch-to-annotaded.cc/" class="">rocketfuel-maps-cch-to-annotaded.cc</a>.1.o',
              '-o',
              '/home/cesar/Documents/ndnSIM/ns-3/build/src/ndnSIM/tools/ns3-dev-rocketfuel-maps-cch-to-annotaded-optimized',

              '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed',
              '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.',
              '-L.', '-L.', '-L.', '-L.', '-L/usr/lib', '-L/usr/lib',
              '-lns3-dev-ndnSIM-optimized',
              '-lns3-dev-visualizer-optimized',
              '-lns3-dev-point-to-point-optimized',
              '-lns3-dev-internet-optimized', '-lns3-dev-mpi-optimized',
              '-lns3-dev-bridge-optimized', '-lns3-dev-wifi-optimized',
              '-lns3-dev-propagation-optimized',
              '-lns3-dev-mobility-optimized',
              '-lns3-dev-topology-read-optimized',
              '-lns3-dev-network-optimized', '-lns3-dev-core-optimized',
              '-lrt', '-lboost_graph-mt', '-lboost_system-mt',
              '-lboost_signals-mt', '-lboost_filesystem-mt',
              '-lpython2.7']<br class="">
              <br class="">
              I checked the wscript file in the ndnSIM root folder (in
              feature/with-openssl branch) and it includes adding a link
              to crypto lib, but I don't know why it is not showing in
              the g++ command.<br class="">
              <br class="">
              Thanks for the help,<br class="">
              Cesar<br class="">
              <br class="">
              <br class="">
              On 05/09/2013 10:20 AM, Cesar Ghali wrote:<br class="">
            </div>
            <blockquote cite="mid:518BDAC0.30601@uci.edu" type="cite" class="">Thanks

              Alex, <br class="">
              <br class="">
              I will try it and will let you know. <br class="">
              <br class="">
              Cesar <br class="">
              <br class="">
              <br class="">
              On 05/08/2013 07:19 PM, Alex Afanasyev wrote: <br class="">
              <blockquote type="cite" class="">Hi Cesar, <br class="">
                <br class="">
                In waf, adding external dependencies is a little bit
                simpler, though not as obvious. <br class="">
                I pushed a small change to ndnSIM repo to the
                feature/with-openssl branch, which added a dependency
                (necessary compiler and linker flags) for ndnSIM. <br class="">
                <br class="">
                Can you try this branch? <br class="">
                <br class="">
                --- <br class="">
                Alex <br class="">
                <br class="">
                <br class="">
                On May 8, 2013, at 7:03 PM, <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:cghali@uci.edu">cghali@uci.edu</a> wrote:
                <br class="">
                <br class="">
                <blockquote type="cite" class="">Hi all, <br class="">
                  <br class="">
                  I am trying to use openssl with ndnSIM. I spend the
                  last several hours <br class="">
                  trying to link the crypto library with waf and I
                  finally managed to do it. <br class="">
                  Apparently, adding the libray to LINKFLAGS_EXTRA did
                  not help, although <br class="">
                  -lcrypto is added to the g++ build command (which can
                  be verified using <br class="">
                  the verbose mode when running waf). The way how I
                  fixed it is by adding <br class="">
                  this line at the beginning of the build function in
                  wscript <br class="">
                  <br class="">
                  bld.env['LIB_PYEMBED'] = bld.env['LIB_PYEMBED'] +
                  ["crypto"] <br class="">
                  <br class="">
                  For some reason the crypto library should be linked at
                  the end, that's why <br class="">
                  I appended it to LIB_PYEMBED which is being evaluated
                  at the end. Is there <br class="">
                  a clean way to do this? <br class="">
                  <br class="">
                  Thanks for the help, <br class="">
                  Cesar <br class="">
                </blockquote>
              </blockquote>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br class="">
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <pre wrap="" class="">_______________________________________________
ndnSIM mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a>
<a class="moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a>
</pre>
    </blockquote>
    <br class="">
  </div>

_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class=""></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class=""></div></blockquote></div><br class=""></div></blockquote></body></html>