-
Notifications
You must be signed in to change notification settings - Fork 945
Open
Description
使用这个库连接redis是必须要使用cert/key文件么
-
调用代码如下:
`acl::acl_cpp_init();
acl::log::stdout_open(true);acl::redis_client c("redis:6379");
c.set_password("");acl::polarssl_conf::set_libpath("/usr/loca/lib/libpolarssl.so");
auto conf = new acl::mbedtls_conf;
c.set_ssl_conf(conf);const char *key = "OBD:ALKDJFLAKDJADSK";
acl::redis conn;
conn.set_client(&c);auto ret = conn.set(key, "1", 10, SETFLAG_NX | SETFLAG_EX);`
-
调用返回错误如下:
polarssl_conf.cpp(208), polarssl_dll_load: /usr/local/lib/libpolarssl.so loaded! polarssl_io.cpp(447), handshake: ssl_handshake failed: -0x7200
Metadata
Metadata
Assignees
Labels
No labels