summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/cli_common.h
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 22:52:54 +0100
commitdcacc00e3750300617ba6e16eb346713f91a783a (patch)
tree38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/src/cli_common.h
parent58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff)
downloadcrep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz
Remove testing data
Diffstat (limited to 'examples/redis-unstable/src/cli_common.h')
-rw-r--r--examples/redis-unstable/src/cli_common.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/examples/redis-unstable/src/cli_common.h b/examples/redis-unstable/src/cli_common.h
deleted file mode 100644
index a5b8e44..0000000
--- a/examples/redis-unstable/src/cli_common.h
+++ /dev/null
@@ -1,59 +0,0 @@
-#ifndef __CLICOMMON_H
-#define __CLICOMMON_H
-
-#include <hiredis.h>
-#include <sdscompat.h> /* Use hiredis' sds compat header that maps sds calls to their hi_ variants */
-
-typedef struct cliSSLconfig {
- /* Requested SNI, or NULL */
- char *sni;
- /* CA Certificate file, or NULL */
- char *cacert;
- /* Directory where trusted CA certificates are stored, or NULL */
- char *cacertdir;
- /* Skip server certificate verification. */
- int skip_cert_verify;
- /* Client certificate to authenticate with, or NULL */
- char *cert;
- /* Private key file to authenticate with, or NULL */
- char *key;
- /* Preferred cipher list, or NULL (applies only to <= TLSv1.2) */
- char* ciphers;
- /* Preferred ciphersuites list, or NULL (applies only to TLSv1.3) */
- char* ciphersuites;
-} cliSSLconfig;
-
-
-/* server connection information object, used to describe an ip:port pair, db num user input, and user:pass. */
-typedef struct cliConnInfo {
- char *hostip;
- int hostport;
- int input_dbnum;
- char *auth;
- char *user;
-} cliConnInfo;
-
-int cliSecureConnection(redisContext *c, cliSSLconfig config, const char **err);
-
-ssize_t cliWriteConn(redisContext *c, const char *buf, size_t buf_len);
-
-int cliSecureInit(void);
-
-sds readArgFromStdin(void);
-
-sds *getSdsArrayFromArgv(int argc,char **argv, int quoted);
-
-sds unquoteCString(char *str);
-
-void parseRedisUri(const char *uri, const char* tool_name, cliConnInfo *connInfo, int *tls_flag);
-
-void freeCliConnInfo(cliConnInfo connInfo);
-
-sds escapeJsonString(sds s, const char *p, size_t len);
-
-sds cliVersion(void);
-
-redisContext *redisConnectWrapper(const char *ip, int port, const struct timeval tv);
-redisContext *redisConnectUnixWrapper(const char *path, const struct timeval tv);
-
-#endif /* __CLICOMMON_H */