summaryrefslogtreecommitdiff
path: root/vchat-ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-ssl.c')
-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{