management: Fix regression with the prefix registration using the default certificate
This commit re-introduces a no longer deprecated feature in
ndn::nfd::Controller::start(ControlParameter,
CommandSuccessCallback, CommandFailCallback,
IdentityCertificate,
time::milliseconds),
which treats IdentityCertificate() (an invalid certificate that has an empty
name) as the default certificate.
Change-Id: I3f147260d649e82c6bd1927ff5998be79a37d0dc
Refs: #2080
diff --git a/src/face.hpp b/src/face.hpp
index 9f11b0a..d95d04a 100644
--- a/src/face.hpp
+++ b/src/face.hpp
@@ -251,6 +251,10 @@
*
* @return Opaque registered prefix ID which can be used with unsetInterestFilter or
* removeRegisteredPrefix
+ *
+ * @note IdentityCertificate() creates a certificate with an empty name, which is an invalid
+ * certificate. A valid IdentityCertificate has at least 4 name components, as it follows
+ * `<...>/KEY/<...>/<key-id>/ID-CERT/<version>` naming model.
*/
const RegisteredPrefixId*
setInterestFilter(const InterestFilter& interestFilter,
@@ -280,6 +284,10 @@
*
* @return Opaque registered prefix ID which can be used with unsetInterestFilter or
* removeRegisteredPrefix
+ *
+ * @note IdentityCertificate() creates a certificate with an empty name, which is an invalid
+ * certificate. A valid IdentityCertificate has at least 4 name components, as it follows
+ * `<...>/KEY/<...>/<key-id>/ID-CERT/<version>` naming model.
*/
const RegisteredPrefixId*
setInterestFilter(const InterestFilter& interestFilter,
@@ -375,6 +383,10 @@
* @param flags (optional) RIB flags (not used when direct FIB management is requested)
*
* @return The registered prefix ID which can be used with unregisterPrefix
+ *
+ * @note IdentityCertificate() creates a certificate with an empty name, which is an invalid
+ * certificate. A valid IdentityCertificate has at least 4 name components, as it follows
+ * `<...>/KEY/<...>/<key-id>/ID-CERT/<version>` naming model.
*/
const RegisteredPrefixId*
registerPrefix(const Name& prefix,