MCPcopy Create free account
hub / github.com/acl-dev/acl / auth

Method auth

lib_acl_cpp/src/redis/redis_connection.cpp:41–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool redis_connection::auth(const char* passwd)
42{
43 const char* argv[2];
44 size_t lens[2];
45
46 argv[0] = "AUTH";
47 lens[0] = sizeof("AUTH") - 1;
48
49 argv[1] = passwd;
50 lens[1] = strlen(passwd);
51
52 build_request(2, argv, lens);
53 return check_status();
54}
55
56bool redis_connection::select(int dbnum)
57{

Callers 2

test_authFunction · 0.80
openMethod · 0.80

Calls 1

build_requestFunction · 0.50

Tested by 1

test_authFunction · 0.64