Browse Source

[FIX] Add support for reading multiple CRL files to server_ctt

 - At present only the first CRL file is taken
 - server_ctt enabled to take multiple CRL files in place of
   one CRL file
 - Test case 038.js and 047.js in Security Certificate
   Validation passes simultaneously unlike before

Change-Id: Ib2aebaec73b80d6e35cbf7ca5fc65c62f52d1521
Signed-off-by: Asish Ganesh <asish.g@kalycito.com>
Asish Ganesh 5 years ago
parent
commit
1355d9f762
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/server_ctt.c

+ 1 - 1
examples/server_ctt.c

@@ -490,7 +490,7 @@ int main(int argc, char **argv) {
         size_t revocationListSize = (size_t)strtol(argv[REVOCATIONLISTCOUNT], &pBuffer, BASEVALUE);
         UA_STACKARRAY(UA_ByteString, revocationList, revocationListSize);
         for(size_t iteratorValue = 0; iteratorValue < revocationListSize; iteratorValue++) {
-            revocationList[iteratorValue] = loadFile(argv[trustListSize + STARTOFLIST]);
+            revocationList[iteratorValue] = loadFile(argv[iteratorValue + trustListSize + STARTOFLIST]);
         }
 
         UA_ServerConfig_setDefaultWithSecurityPolicies(config, 4840,