- Fix bug with SSL
This commit is contained in:
parent
6795afec25
commit
564b184631
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=402455
2 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= sx
|
||||
PORTVERSION= 1.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= http://cdn.skylable.com/source/
|
||||
|
||||
|
|
11
net-mgmt/sx/files/patch-libsxclient_src_openssl.c
Normal file
11
net-mgmt/sx/files/patch-libsxclient_src_openssl.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- libsxclient/src/openssl.c.orig 2015-07-24 14:26:43 UTC
|
||||
+++ libsxclient/src/openssl.c
|
||||
@@ -98,6 +98,8 @@ int sxi_sslctxfun(sxc_client_t *sx, curl
|
||||
return -1;
|
||||
}
|
||||
SSL_CTX *ctx = (SSL_CTX*)info->internals;
|
||||
+ if (!ctx)
|
||||
+ return -EAGAIN;
|
||||
SSL_CTX_set_cert_verify_callback(ctx, ssl_verify_hostname, ev);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue