You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* master:
Implement TR31_USE_SSCANF_DATETIME
Update to latest libargp
Fix various typos
Fix ISO 8601 parsing using sscanf() when strptime() is unavailable
Fix ASCII decimal to binary integer conversion
Fix and improve parsing of IBM proprietary optional blocks
Update Gentoo ebuild
Update tr31-tool to use GPLv3
Update to latest libargp
Improve readability of optional block PB export
Fix ISO 8601 delimiter validation
This merge is to confirm that the master branch resolves the remaining
CodeQL items in the hardening branch.
# option to use sscanf() for date/time parsing even when strptime() is
120
+
# available
121
+
option(TR31_USE_SSCANF_DATETIME "Use sscanf() for date/time parsing")
122
+
if(HAVE_STRPTIME ANDNOT TR31_USE_SSCANF_DATETIME)
123
+
message(STATUS"Using strptime() for date/time parsing")
124
+
else()
125
+
message(STATUS"Using sscanf() for date/time parsing")
126
+
endif()
119
127
120
128
include(GNUInstallDirs) # provides CMAKE_INSTALL_* variables and good defaults for install()
121
129
@@ -905,7 +913,7 @@ if(TARGET tr31-tool AND BUILD_TESTING)
905
913
)
906
914
907
915
# test IBM proprietary key block
908
-
# NOTE: the input was hand crafted based on https://www.ibm.com/docs/en/zos/3.1.0?topic=ktf-x9143-tr-31-key-block-header-optional-block-data and https://www.ibm.com/docs/en/linux-on-systems?topic=data-tr-31-optional-block
916
+
# NOTE: the input was hand crafted based on https://www.ibm.com/docs/en/zos/3.2.0?topic=ktf-x9143-tr-31-key-block-header-optional-block-data and https://www.ibm.com/docs/en/linux-on-systems?topic=data-tr-31-optional-block
{ "export-opt-block-KC", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_KC, NULL, 0, "Add optional block KC (KCV of wrapped key) during key block export. May be used with either --export-template or --export-header." },
163
162
{ "export-opt-block-KP", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_KP, NULL, 0, "Add optional block KP (KCV of KBPK) during key block export. May be used with either --export-template or --export-header." },
164
163
{ "export-opt-block-KS", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_KS, "IKSN", 0, "Add optional block KS (Initial Key Serial Number) during key block export. May be used with either --export-template or --export-header." },
165
-
{ "export-opt-block-LB", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_LB, "ASCII", 0, "Add optinal block LB (Label) during key block export. May be used with either --export-template or --export-header." },
164
+
{ "export-opt-block-LB", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_LB, "ASCII", 0, "Add optional block LB (Label) during key block export. May be used with either --export-template or --export-header." },
166
165
{ "export-opt-block-PK", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_PK, "KCV", 0, "Add optional block PK (Protection Key Check Value) during key block export. May be used with either --export-template or --export-header." },
167
166
{ "export-opt-block-TC", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_TC, "ISO8601", 0, "Add optional block TC (Time of Creation in ISO 8601 UTC format) during key block export. May be used with either --export-template or --export-header. Specify \"now\" for current date/time." },
168
167
{ "export-opt-block-TS", TR31_TOOL_OPTION_EXPORT_OPT_BLOCK_TS, "ISO8601", 0, "Add optional block TS (Time Stamp in ISO 8601 UTC format) during key block export. May be used with either --export-template or --export-header. Specify \"now\" for current date/time." },
0 commit comments