From d2ffe887bed0fb9741e39df1298c3e14eb7383a6 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 27 Aug 2016 11:58:09 +0200 Subject: Adapt to openssl 1.1.0 API --- vchat-ssl.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vchat-ssl.c b/vchat-ssl.c index 2d8c970..adef70d 100755 --- a/vchat-ssl.c +++ b/vchat-ssl.c @@ -351,7 +351,7 @@ int vc_verify_callback(int ok, X509_STORE_CTX *store) { if(!ok) { snprintf(tmpstr, TMPSTRSIZE, "[SSL VERIFY ERROR ] %s", - X509_verify_cert_error_string(store->error)); + X509_verify_cert_error_string(X509_STORE_CTX_get_error(store))); writecf(FS_ERR, tmpstr); } return (ok | getintoption(CF_IGNSSL)); @@ -414,6 +414,17 @@ void vc_x509store_setcertfile(vc_x509store_t *store, char *file) store->use_certfile = ( file ? strdup(file) : 0 ); } +#if 0 +int vc_tls_read() +{ + +} + +int vc_tls_read() +{ + +} +#endif vc_x509store_t *vc_init_x509store() { -- cgit v1.2.3