1 --- mariadb/include/errmsg.h 2014-04-04 12:21:01.000000000 +0200
2 +++ mariadb/include/errmsg.h 2014-09-17 17:47:25.000000000 +0200
4 #define CR_PARAMS_NOT_BOUND 2031
5 #define CR_INVALID_PARAMETER_NO 2034
6 #define CR_UNSUPPORTED_PARAM_TYPE 2036
7 +#define CR_SECURE_AUTH 2049
8 #define CR_NO_DATA 2051
9 #define CR_NO_STMT_METADATA 2052
10 #define CR_NOT_IMPLEMENTED 2054
11 --- mariadb/libmariadb/errmsg.c 2014-04-04 12:21:01.000000000 +0200
12 +++ mariadb/libmariadb/errmsg.c 2014-09-17 17:48:44.000000000 +0200
18 +/* 2049 */ "Connection with old authentication protocol refused.",
21 /* 2052 */ "Prepared statement contains no metadata",
22 --- mariadb/libmariadb/libmariadb.c 2014-04-04 12:21:01.000000000 +0200
23 +++ mariadb/libmariadb/libmariadb.c 2014-09-17 17:56:13.000000000 +0200
24 @@ -1864,7 +1864,14 @@
25 scramble_plugin= native_password_plugin_name;
29 mysql->server_capabilities&= ~CLIENT_SECURE_CONNECTION;
30 + if (mysql->options.secure_auth)
32 + SET_CLIENT_ERROR(mysql, CR_SECURE_AUTH, unknown_sqlstate, 0);
37 /* Set character set */
38 if (mysql->options.charset_name)
44 + case MYSQL_SECURE_AUTH:
45 + mysql->options.secure_auth= *(my_bool *)arg1;