mirror of https://github.com/yandex/odyssey.git
odissey: move auth_query impl into separate file
This commit is contained in:
parent
897c1c929c
commit
fdd39f76e6
|
@ -21,6 +21,7 @@ set(od_src
|
|||
backend.c
|
||||
reset.c
|
||||
auth.c
|
||||
auth_query.c
|
||||
cancel.c
|
||||
periodic.c
|
||||
tls.c
|
||||
|
|
|
@ -45,16 +45,7 @@
|
|||
#include "sources/frontend.h"
|
||||
#include "sources/backend.h"
|
||||
#include "sources/auth.h"
|
||||
|
||||
static inline int
|
||||
od_auth_frontend_query(od_instance_t *instance, od_schemeroute_t *scheme,
|
||||
shapito_password_t *password)
|
||||
{
|
||||
(void)instance;
|
||||
(void)scheme;
|
||||
(void)password;
|
||||
return 0;
|
||||
}
|
||||
#include "sources/auth_query.h"
|
||||
|
||||
static inline int
|
||||
od_auth_frontend_cleartext(od_client_t *client)
|
||||
|
@ -113,7 +104,7 @@ od_auth_frontend_cleartext(od_client_t *client)
|
|||
shapito_password_init(&client_password);
|
||||
|
||||
if (client->scheme->auth_query) {
|
||||
rc = od_auth_frontend_query(instance, client->scheme, &client_password);
|
||||
rc = od_auth_query(instance, client->scheme, &client_password);
|
||||
if (rc == -1) {
|
||||
od_error(&instance->logger, "auth", client, NULL,
|
||||
"failed to make auth_query");
|
||||
|
@ -208,7 +199,7 @@ od_auth_frontend_md5(od_client_t *client)
|
|||
shapito_password_init(&query_password);
|
||||
|
||||
if (client->scheme->auth_query) {
|
||||
rc = od_auth_frontend_query(instance, client->scheme, &query_password);
|
||||
rc = od_auth_query(instance, client->scheme, &query_password);
|
||||
if (rc == -1) {
|
||||
od_error(&instance->logger, "auth", client, NULL,
|
||||
"failed to make auth_query");
|
||||
|
|
Loading…
Reference in New Issue