summaryrefslogtreecommitdiff
path: root/vchat-tls.h
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2022-05-21 14:13:28 +0200
committerDirk Engling <erdgeist@erdgeist.org>2022-05-21 14:13:28 +0200
commit24effe857346411aa6b92c7d238441ce0e6cd861 (patch)
tree20abb0897453f67c53176398601a5434d6ad7efe /vchat-tls.h
parentdc6e13b39ba2190d7f11378be48f8ccfe10d47f6 (diff)
Reformatted using clang-format -format llvm
Diffstat (limited to 'vchat-tls.h')
-rwxr-xr-xvchat-tls.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/vchat-tls.h b/vchat-tls.h
index 440d08e..17d2687 100755
--- a/vchat-tls.h
+++ b/vchat-tls.h
@@ -4,13 +4,13 @@
4 4
5typedef int (*vc_askpass_cb_t)(char *, int, int, void *); 5typedef int (*vc_askpass_cb_t)(char *, int, int, void *);
6struct vc_x509store_t { 6struct vc_x509store_t {
7 char *cafile; 7 char *cafile;
8 char *capath; 8 char *capath;
9 char *crlfile; 9 char *crlfile;
10 vc_askpass_cb_t askpass_callback; 10 vc_askpass_cb_t askpass_callback;
11 char *certfile; 11 char *certfile;
12 char *keyfile; 12 char *keyfile;
13 int flags; 13 int flags;
14}; 14};
15typedef struct vc_x509store_t vc_x509store_t; 15typedef struct vc_x509store_t vc_x509store_t;
16 16
@@ -25,7 +25,7 @@ void vc_x509store_setcapath(vc_x509store_t *, char *);
25void vc_x509store_setcrlfile(vc_x509store_t *, char *); 25void vc_x509store_setcrlfile(vc_x509store_t *, char *);
26void vc_cleanup_x509store(vc_x509store_t *s); 26void vc_cleanup_x509store(vc_x509store_t *s);
27 27
28int vc_tls_connect(int serverfd, vc_x509store_t * ); 28int vc_tls_connect(int serverfd, vc_x509store_t *);
29ssize_t vc_tls_sendmessage(const void *buf, size_t size); 29ssize_t vc_tls_sendmessage(const void *buf, size_t size);
30ssize_t vc_tls_receivemessage(void *buf, size_t size); 30ssize_t vc_tls_receivemessage(void *buf, size_t size);
31void vc_tls_cleanup(); 31void vc_tls_cleanup();