https://github.com/open62541/open62541/pull/5935 test(plugin) test server login callback with password Setup server with username and password hashes. Use custom login callback that checks the salted and encrypted passwords with methods of the operating system. Fallback to clear text passwords. Index: tests/CMakeLists.txt --- tests/CMakeLists.txt.orig +++ tests/CMakeLists.txt @@ -277,6 +277,14 @@ add_executable(check_server_callbacks server/check_ser target_link_libraries(check_server_callbacks ${LIBS}) add_test_valgrind(server_callbacks ${TESTS_BINARY_DIR}/check_server_callbacks) +add_executable(check_server_password server/check_server_password.c $ $) +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") +target_link_libraries(check_server_password ${LIBS} -lcrypt) +else() +target_link_libraries(check_server_password ${LIBS}) +endif() +add_test_valgrind(server_password ${TESTS_BINARY_DIR}/check_server_password) + if (UA_MULTITHREADING GREATER_EQUAL 100) add_executable(check_mt_addVariableNode multithreading/check_mt_addVariableNode.c $ $) target_link_libraries(check_mt_addVariableNode ${LIBS})