mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 15:55:07 -05:00
test: check credentials in nts_ke_session test
Make it more clear when the test fails because the credentials could not be created.
This commit is contained in:
@@ -193,6 +193,8 @@ test_unit(void)
|
||||
|
||||
server_cred = NKSN_CreateServerCertCredentials(&cert, &key, 1);
|
||||
client_cred = NKSN_CreateClientCertCredentials(&cert, &cert_id, 1, 0);
|
||||
TEST_CHECK(server_cred);
|
||||
TEST_CHECK(client_cred);
|
||||
|
||||
TEST_CHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, sock_fds) == 0);
|
||||
TEST_CHECK(fcntl(sock_fds[0], F_SETFL, O_NONBLOCK) == 0);
|
||||
|
||||
Reference in New Issue
Block a user