소스 검색

[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 년 전
부모
커밋
1355d9f762
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,