[ndnSIM] Error message : 'variable' has not been declared

Russo Peter russope0625 at gmail.com
Mon Aug 30 22:15:48 PDT 2021


Dear Spyridon,

Thanks for your reply.

It still showed the error message:
error: cannot convert 'int' to 'const ndn::KeyParams&'
auto id = keyChain.createIdentity("p1",(::ndn::KeyType::RSA,1));

 ~~~~~~~~~~~~~~~^~~

                  int

My best regards.
Peter

Spyridon Mastorakis <smastorakis at unomaha.edu> 於 2021年8月30日 週一 下午9:31寫道:

> Maybe try ::ndn::KeyType::RSA?
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis, Ph.D.
> Assistant Professor
> Computer Science Department
> University of Nebraska, Omaha
> Peter Kiewit Institute Room 175A
> Associate Editor, IEEE Internet of Things Journal
> Website: https://sites.google.com/site/spyridonmastorakis
>
> On Aug 30, 2021, at 6:07 AM, Russo Peter via ndnSIM <
> ndnsim at lists.cs.ucla.edu> wrote:
>
> Non-NU Email
> ------------------------------
> Dear members,
>
> I'm trying to generate a identity for the producer to create key.
>
> These are the extra code of my ndn-producer.cpp:
> #include "ndn-cxx/security/v2/key-chain.hpp"
> #include "ndn-cxx/security/key-params.hpp"
> #include "ndn-cxx/security/security-common.hpp"
> ...
> ndn::KeyChain keyChain;
> auto id = key.chain.createIdentity("p1",(RSA,1))
>
> When I run ./waf, I received an error message:
> error: 'RSA' was not declared in this scope; did you mean
> 'ndn::KeyType::RSA' ?
>
> However, when I replaced RSA with ndn::KeyType::RSA :
> error: 'ns3::ndn::KeyType' has not been declared
> auto id = key.chain.createIdentity("p1",(ndn::KeyType::RSA,1))
>
>  ^~~~~~~
>
> Could anyone help me with this? Any help will be appreciated.
>
> My best regards.
> Peter
>
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
>
> https://urldefense.com/v3/__http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim__;!!PvXuogZ4sRB2p-tU!XVd6DSgJSFr7AKCacJrrvMERzuNidsYYUS-KwEdd5TIIslAhAq_qohDPonoOoCEnOZjo$
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210831/48d5ffb9/attachment.html>


More information about the ndnSIM mailing list