From: Peter P. <no...@gi...> - 2022-01-07 13:16:59
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 86b5f94c3bdd4fba8aa416675d7f2888d401ed14 https://github.com/OpenSC/OpenSC/commit/86b5f94c3bdd4fba8aa416675d7f2888d401ed14 Author: Peter Popovec <pop...@gm...> Date: 2022-01-07 (Fri, 07 Jan 2022) Changed paths: M src/tools/pkcs11-tool.c Log Message: ----------- The hex_to_bin() is replaced by sc_hex_to_bin() It is not advisable to have two functions that perform the same operation. The hex_to_bin() is used only in pkcs11-tool, but some cases generates wrong output. This function is removed in favor of the sc_hex_to_bin() function. Fixes: #2465 Commit: 8672660ca784ca1cea868b1f6d75c9449da67782 https://github.com/OpenSC/OpenSC/commit/8672660ca784ca1cea868b1f6d75c9449da67782 Author: Peter Popovec <pop...@gm...> Date: 2022-01-07 (Fri, 07 Jan 2022) Changed paths: M src/libopensc/sc.c Log Message: ----------- sc_hex_to_bin(): Disallow odd number of chars between separators. Commit: 7870a8653d7e4e29fa9c583e134a47b71d4f370f https://github.com/OpenSC/OpenSC/commit/7870a8653d7e4e29fa9c583e134a47b71d4f370f Author: Peter Popovec <pop...@gm...> Date: 2022-01-07 (Fri, 07 Jan 2022) Changed paths: M src/tests/unittests/Makefile.am A src/tests/unittests/hextobin.c Log Message: ----------- unittests: test for sc_hex_to_bin() new file: src/tests/unittests/hextobin.c Compare: https://github.com/OpenSC/OpenSC/compare/7dc966b56183...7870a8653d7e |