From 0db99d66c00c8225703703a7360d5c1497404bba Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Fri, 14 Mar 2014 17:05:23 +0200 Subject: [PATCH] algorithm: add nfactor aliases "adaptive-n-factor" and "nscrypt". Also change whitespace back to "4 spaces". --- algorithm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/algorithm.c b/algorithm.c index bafb1dcb..cf09f60c 100644 --- a/algorithm.c +++ b/algorithm.c @@ -16,10 +16,12 @@ void set_algorithm(algorithm_t* algo, const char* newname) { strncpy(algo->name, newname, sizeof(algo->name)); algo->name[sizeof(algo->name) - 1] = '\0'; - if (strcmp(algo->name, "adaptive-nfactor") == 0) { - set_algorithm_nfactor(algo, 11); + if ((strcmp(algo->name, "adaptive-n-factor") == 0) || + (strcmp(algo->name, "adaptive-nfactor") == 0) || + (strcmp(algo->name, "nscrypt") == 0) ) { + set_algorithm_nfactor(algo, 11); } else { - set_algorithm_nfactor(algo, 10); + set_algorithm_nfactor(algo, 10); } return;