summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2016-08-27 11:58:09 +0200
committerDirk Engling <erdgeist@erdgeist.org>2016-08-27 11:58:09 +0200
commitd2ffe887bed0fb9741e39df1298c3e14eb7383a6 (patch)
treee99fafbb6ae5d771aff65274006d867a8a95583b
parenta5ec5af96fc0e91ddc86087b4c8c73774c2320e4 (diff)
Adapt to openssl 1.1.0 API
-rwxr-xr-xvchat-ssl.c13
1 files changed, 12 insertions, 1 deletions
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)
351{ 351{
352 if(!ok) { 352 if(!ok) {
353 snprintf(tmpstr, TMPSTRSIZE, "[SSL VERIFY ERROR ] %s", 353 snprintf(tmpstr, TMPSTRSIZE, "[SSL VERIFY ERROR ] %s",
354 X509_verify_cert_error_string(store->error)); 354 X509_verify_cert_error_string(X509_STORE_CTX_get_error(store)));
355 writecf(FS_ERR, tmpstr); 355 writecf(FS_ERR, tmpstr);
356 } 356 }
357 return (ok | getintoption(CF_IGNSSL)); 357 return (ok | getintoption(CF_IGNSSL));
@@ -414,6 +414,17 @@ void vc_x509store_setcertfile(vc_x509store_t *store, char *file)
414 store->use_certfile = ( file ? strdup(file) : 0 ); 414 store->use_certfile = ( file ? strdup(file) : 0 );
415} 415}
416 416
417#if 0
418int vc_tls_read()
419{
420
421}
422
423int vc_tls_read()
424{
425
426}
427#endif
417 428
418vc_x509store_t *vc_init_x509store() 429vc_x509store_t *vc_init_x509store()
419{ 430{