diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2022-05-16 15:53:39 +0200 |
commit | d1ac67f6d73f24a165ccc008440bb8b208ae140f (patch) | |
tree | 0da0184ec2273ffa6f642ab06e776fcdda9f4ac3 /vchat-ssl.h | |
parent | 43b74147212ddc5e619ac17dd1b5967b6b293d8a (diff) |
Decouple IO openssl's BIO abstraction and split connection and tls handling to allow for other TLS libs
Diffstat (limited to 'vchat-ssl.h')
-rwxr-xr-x | vchat-ssl.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/vchat-ssl.h b/vchat-ssl.h deleted file mode 100755 index 8dc1bfc..0000000 --- a/vchat-ssl.h +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | |||
2 | /* prototypes */ | ||
3 | |||
4 | struct vc_x509store_t; | ||
5 | typedef struct vc_x509store_t vc_x509store_t; | ||
6 | typedef int (*vc_askpass_cb_t)(char *, int, int, void *); | ||
7 | |||
8 | vc_x509store_t *vc_init_x509store(); | ||
9 | void vc_x509store_set_pkeycb(vc_x509store_t *, vc_askpass_cb_t); | ||
10 | void vc_x509store_setflags(vc_x509store_t *, int); | ||
11 | void vc_x509store_setkeyfile(vc_x509store_t *, char *); | ||
12 | void vc_x509store_setcertfile(vc_x509store_t *, char *); | ||
13 | int vc_connect_ssl(BIO **conn, vc_x509store_t * ); | ||
14 | |||
15 | #define VC_X509S_NODEF_CAFILE 0x01 | ||
16 | #define VC_X509S_NODEF_CAPATH 0x02 | ||
17 | #define VC_X509S_USE_CERTIFICATE 0x04 | ||
18 | #define VC_X509S_SSL_VERIFY_NONE 0x10 | ||
19 | #define VC_X509S_SSL_VERIFY_PEER 0x20 | ||
20 | #define VC_X509S_SSL_VERIFY_FAIL_IF_NO_PEER_CERT 0x40 | ||
21 | #define VC_X509S_SSL_VERIFY_CLIENT_ONCE 0x80 | ||
22 | #define VC_X509S_SSL_VERIFY_MASK 0xF0 | ||
23 | |||