aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--metis/ccnx/forwarder/metis/command-line/metis_control/metisControl_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/metis/ccnx/forwarder/metis/command-line/metis_control/metisControl_main.c b/metis/ccnx/forwarder/metis/command-line/metis_control/metisControl_main.c
index 067ed9c9..7a4ced54 100644
--- a/metis/ccnx/forwarder/metis/command-line/metis_control/metisControl_main.c
+++ b/metis/ccnx/forwarder/metis/command-line/metis_control/metisControl_main.c
@@ -157,11 +157,11 @@ _writeAndReadMessage(void *mainStatePtr, CCNxMetaMessage *msg)
}
static CCNxPortal *
-_createPortalWithKeystore(const char *keystoreName, const char *keystorePassword)
+_createPortalWithKeystore(const char *keystoreName, const char *keystorePassword, PARCCryptoSuite suite)
{
PARCIdentityFile *identityFile = parcIdentityFile_Create(keystoreName, keystorePassword);
PARCIdentity *identity = parcIdentity_Create(identityFile, PARCIdentityFileAsPARCIdentity);
- CCNxPortalFactory *portalFactory = ccnxPortalFactory_Create(identity);
+ CCNxPortalFactory *portalFactory = ccnxPortalFactory_Create(identity, suite);
CCNxPortal *result = ccnxPortalFactory_CreatePortal(portalFactory, ccnxPortalRTA_Message);
@@ -225,7 +225,8 @@ main(int argc, char *argv[])
}
mainState.controlPortal = _createPortalWithKeystore(ccnxKeystoreUtilities_GetFileName(mainState.keystoreParams),
- ccnxKeystoreUtilities_GetPassword(mainState.keystoreParams));
+ ccnxKeystoreUtilities_GetPassword(mainState.keystoreParams),
+ PARCCryptoSuite_RSA_SHA256);
parcSecurity_Fini();
mainState.controlState = metisControlState_Create(&mainState, _writeAndReadMessage);