dbus/test/test-utils-auth.h
Руслан Ижбулатов f6e593b896 DBUS_WINDOWS_SSPI_NTLM custom test
This is a simple socket client that connects to a dbus test server daemon
and tries to authenticate using the DBUS_WINDOWS_SSPI_NTLM mechanism. The
code that does authentication is completely independent from libdbus,
and is completely bare.

The test is explicitly Windows-only, as it drops all platform-independent
abstractions that libdbus would have provided (not to mention the fact
that DBUS_WINDOWS_SSPI_NTLM itself is Windows-only...).

The code will try to authenticate multiple times, changing a different
byte in a different buffer each time, and then expecting the authentication
to success or fail depending on what is changed (the test has limited,
hardcoded awareness of the NTLM message structure for that purpose).

https://bugs.freedesktop.org/show_bug.cgi?id=96577
2026-01-07 08:51:59 +01:00

13 lines
No EOL
275 B
C
Executable file

#ifndef TEST_UTILS_AUTH_H
#define TEST_UTILS_AUTH_H
#include <dbus/dbus.h>
#include "test-utils.h"
#include <dbus/dbus-transport.h>
#include <glib.h>
DBusSocket
test_connect_to_bus_simple (TestMainContext *ctx,
const gchar *address);
#endif