security: Set false as default isKsk value in KeyChain::generateEcdsaKeyPairAsDefault
Change-Id: I53162cc73fec9462b1e2ea6832a1041f9b6577e7
Refs: #3439
diff --git a/src/security/key-chain.hpp b/src/security/key-chain.hpp
index 28c026e..d9963cd 100644
--- a/src/security/key-chain.hpp
+++ b/src/security/key-chain.hpp
@@ -190,8 +190,7 @@
* @see generateRsaKeyPair, generateEcdsaKeyPair, generateEcdsaKeyPairAsDefault
*/
Name
- generateRsaKeyPairAsDefault(const Name& identityName, bool isKsk = false,
- uint32_t keySize = 2048);
+ generateRsaKeyPairAsDefault(const Name& identityName, bool isKsk = false, uint32_t keySize = 2048);
/**
* @brief Generate a pair of ECDSA keys for the specified identity and set it as default key for
@@ -204,7 +203,7 @@
* @see generateRsaKeyPair, generateEcdsaKeyPair, generateRsaKeyPairAsDefault
*/
Name
- generateEcdsaKeyPairAsDefault(const Name& identityName, bool isKsk, uint32_t keySize = 256);
+ generateEcdsaKeyPairAsDefault(const Name& identityName, bool isKsk = false, uint32_t keySize = 256);
/**
* @brief prepare an unsigned identity certificate