#include <mysql/plugin_auth_common.h>
#include <sspi.h>
#include <windows.h>
#include "my_dbug.h"
Go to the source code of this file.
◆ DBUG_DUMP
#define DBUG_DUMP |
( |
|
A, |
|
|
|
B, |
|
|
|
C |
|
) |
| |
◆ DBUG_ENTER
◆ DBUG_PRINT
◆ DBUG_PRINT_DO
#define DBUG_PRINT_DO |
( |
|
Keyword, |
|
|
|
Msg |
|
) |
| |
Value: do { \
fprintf(stderr, "winauth: %s: ", Keyword); \
} while (0)
void debug_msg(const char *fmt,...)
Definition: common.h:109
unsigned int get_log_level(void)
Definition: log_client.cc:61
break
Definition: sslopt-case.h:35
◆ DBUG_RETURN
#define DBUG_RETURN |
( |
|
X | ) |
return (X) |
◆ ERROR_LOG
#define ERROR_LOG |
( |
|
Level, |
|
|
|
Msg |
|
) |
| error_log_print<error_log_level::Level> Msg |
◆ MAX_SERVICE_NAME_LENGTH
#define MAX_SERVICE_NAME_LENGTH 1024 |
Maximum length of the target service name.
◆ byte
typedef unsigned char byte |
◆ Error_message_buf
typedef char Error_message_buf[1024] |
◆ debug_msg()
void debug_msg |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inline |
◆ error_log_print()
void error_log_print |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ error_log_vprint()
◆ get_last_error_message()
Error handling.
Returns error message corresponding to the last Windows error given by GetLastError().
- Note
- Error message is overwritten by next call to
get_last_error_message()
.
◆ get_log_level()
unsigned int get_log_level |
( |
void |
| ) |
|
◆ set_log_level()
void set_log_level |
( |
unsigned int |
level | ) |
|
◆ utf8_to_wchar()
wchar_t * utf8_to_wchar |
( |
const char * |
string, |
|
|
size_t * |
len |
|
) |
| |
Convert an utf8 string to a wide-char string.
- Parameters
-
[in] | string | null-terminated utf8 string to be converted |
[in,out] | len | length of the string to be converted or 0; on return length (in chars) of the converted string |
If len is 0 then the length of the string will be computed by this function.
- Returns
- Pointer to a buffer containing wide-char representation or NULL in case of error.
- Note
- The returned buffer must be freed with
free()
call.
◆ wchar_to_utf8()
char * wchar_to_utf8 |
( |
const wchar_t * |
string, |
|
|
size_t * |
len |
|
) |
| |
Convert a wide-char string to utf8 representation.
- Parameters
-
[in] | string | null-terminated wide-char string to be converted |
[in,out] | len | length of the string to be converted or 0; on return length (in bytes, excluding terminating null character) of the converted string |
If len is 0 then the length of the string will be computed by this function.
- Returns
- Pointer to a buffer containing utf8 representation or NULL in case of error.
- Note
- The returned buffer must be freed with
free()
call.
◆ opt_auth_win_log_level
int opt_auth_win_log_level |