named-data-iot / ndn-lite

A lightweight NDN protocol stack with high-level application support including security bootstrapping, access control, trust management, etc.
https://ndn-lite.named-data.net
GNU Lesser General Public License v3.0
44 stars 16 forks source link

ndn_sig_verifier_verify_data: accept certificate name in KeyLocator.Name #81

Open yoursunny opened 4 years ago

yoursunny commented 4 years ago

Currently, ndn_sig_verifier_verify_data can only accept key name in KeyLocator.Name field. https://github.com/named-data-iot/ndn-lite/blob/d60a114a4c4e8422577ab8ae3817f79eed948254/app-support/ndn-sig-verifier.c#L292

It should be changed to accept either key name or certificate name. See #72.