File tree Expand file tree Collapse file tree
xFindObjectWithLabelAndClass Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -261,8 +261,7 @@ jobs:
261261 - name : Set up CBMC runner
262262 uses : FreeRTOS/CI-CD-Github-Actions/set_up_cbmc_runner@main
263263 with :
264- cbmc_version : " 5.61.0"
265- cbmc_viewer_version : " 3.5"
264+ cbmc_version : " 6.3.1"
266265 - name : Install cmake
267266 run : |
268267 sudo apt-get install -y cmake
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ HARNESS_FILE = C_CloseSession_harness
99PROOF_UID = C_CloseSession
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
1414
1515REMOVE_FUNCTION_BODY += C_Finalize
1616REMOVE_FUNCTION_BODY += C_GetFunctionList
Original file line number Diff line number Diff line change @@ -25,11 +25,14 @@ MAX_LABEL_SIZE=32
2525# Should be one more than the total number of objects in the PKCS stack.
2626MAX_OBJECT_NUM =2
2727
28+ CBMC_OBJECT_BITS = 9
29+
2830DEFINES += -DTEMPLATE_SIZE=$(TEMPLATE_SIZE )
2931DEFINES += -DTEMPLATE_ATTRIBUTE_MAX_SIZE=$(TEMPLATE_ATTRIBUTE_MAX_SIZE )
3032
31- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
3233INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
34+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
35+ INCLUDES += -I$(SRCDIR ) /source/portable/os
3336
3437REMOVE_FUNCTION_BODY += C_Initialize
3538REMOVE_FUNCTION_BODY += C_Finalize
@@ -61,5 +64,6 @@ PROOF_SOURCES += $(PROOFDIR)/$(HARNESS_FILE).c
6164PROOF_SOURCES += $(SRCDIR ) /test/cbmc/stubs/mbedtls_stubs.c
6265PROOF_SOURCES += $(SRCDIR ) /test/cbmc/stubs/core_pkcs11_pal_stubs.c
6366PROJECT_SOURCES += $(SRCDIR ) /source/portable/mbedtls/core_pkcs11_mbedtls.c
67+ PROJECT_SOURCES += $(SRCDIR ) /source/portable/os/posix/core_pkcs11_pal.c
6468
6569include ../Makefile.common
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ MAX_LABEL_SIZE=32
1616
1717DEFINES += -DMAX_OBJECT_NUM=$(MAX_OBJECT_NUM )
1818
19- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
2019INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
20+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
2121
2222REMOVE_FUNCTION_BODY += C_Finalize
2323REMOVE_FUNCTION_BODY += C_GetFunctionList
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ HARNESS_FILE = C_DigestFinal_harness
99PROOF_UID = C_DigestFinal
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
1414
1515REMOVE_FUNCTION_BODY +=
1616UNWINDSET +=
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ HARNESS_FILE = C_DigestInit_harness
99PROOF_UID = C_DigestInit
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
1414
1515REMOVE_FUNCTION_BODY +=
1616UNWINDSET +=
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ HARNESS_FILE = C_DigestUpdate_harness
99PROOF_UID = C_DigestUpdate
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
1414
1515REMOVE_FUNCTION_BODY +=
1616UNWINDSET +=
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ HARNESS_FILE = C_Finalize_harness
99PROOF_UID = C_Finalize
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
1414
1515REMOVE_FUNCTION_BODY +=
1616UNWINDSET +=
Original file line number Diff line number Diff line change @@ -9,20 +9,24 @@ HARNESS_FILE = C_FindObjects_harness
99PROOF_UID = C_FindObjects
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
14+ INCLUDES += -I$(SRCDIR ) /source/portable/os
1415
1516REMOVE_FUNCTION_BODY += C_Finalize
1617REMOVE_FUNCTION_BODY += C_GetFunctionList
1718
1819# This should be similar to the dummy data length in "core_pkcs11_pal_stubs.c" PKCS11_PAL_GetObjectValue
1920UNWINDSET += __CPROVER_file_local_core_pkcs11_mbedtls_c_prvFindObjectInListByLabel.0:13
21+ UNWINDSET += strncmp.0:20
2022# This should align with the max object count configured in core_pkcs11_config.h
2123UNWINDSET += __CPROVER_file_local_core_pkcs11_mbedtls_c_prvAddObjectToList.0:2
2224
2325PROOF_SOURCES += $(PROOFDIR ) /$(HARNESS_FILE ) .c
2426PROOF_SOURCES += $(SRCDIR ) /test/cbmc/stubs/core_pkcs11_pal_stubs.c
2527PROOF_SOURCES += $(SRCDIR ) /test/cbmc/stubs/mbedtls_stubs.c
2628PROJECT_SOURCES += $(SRCDIR ) /source/portable/mbedtls/core_pkcs11_mbedtls.c
29+ PROJECT_SOURCES += $(SRCDIR ) /source/portable/os/posix/core_pkcs11_pal.c
30+ PROJECT_SOURCES += $(SRCDIR ) /source/portable/os/core_pkcs11_pal_utils.c
2731
2832include ../Makefile.common
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ HARNESS_FILE = C_FindObjectsFinal_harness
99PROOF_UID = C_FindObjectsFinal
1010
1111DEFINES +=
12- INCLUDES += -I$(SRCDIR ) /test/build/_deps/mbedtls_2-src/include
1312INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls_utils
13+ INCLUDES += -I$(SRCDIR ) /source/dependency/3rdparty/mbedtls/include
1414
1515REMOVE_FUNCTION_BODY +=
1616UNWINDSET +=
You can’t perform that action at this time.
0 commit comments