mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Fix compilation for ubuntu 18.04 LTS
Ubuntu 18.04 still ships OpenSSL 1.1.0g which has bugs in BIO API, this commit work around those bugs
This commit is contained in:
parent
d00d0816ff
commit
a3c81e163d
@ -267,17 +267,16 @@ static long tou_socket_ctrl(BIO *b, int cmd, long num, void *ptr)
|
||||
break;
|
||||
case BIO_C_SET_FD:
|
||||
tou_socket_free(b);
|
||||
ret = BIO_meth_get_ctrl(BIO_s_fd())(b,cmd,num,ptr);
|
||||
|
||||
ret = BIO_meth_get_ctrl((BIO_METHOD*)BIO_s_fd())(b,cmd,num,ptr);
|
||||
break;
|
||||
case BIO_C_GET_FD:
|
||||
ret = BIO_meth_get_ctrl(BIO_s_fd())(b,cmd,num,ptr);
|
||||
ret = BIO_meth_get_ctrl((BIO_METHOD*)BIO_s_fd())(b,cmd,num,ptr);
|
||||
break;
|
||||
case BIO_CTRL_GET_CLOSE:
|
||||
ret = BIO_meth_get_ctrl(BIO_s_fd())(b,cmd,num,ptr);
|
||||
ret = BIO_meth_get_ctrl((BIO_METHOD*)BIO_s_fd())(b,cmd,num,ptr);
|
||||
break;
|
||||
case BIO_CTRL_SET_CLOSE:
|
||||
ret = BIO_meth_get_ctrl(BIO_s_fd())(b,cmd,num,ptr);
|
||||
ret = BIO_meth_get_ctrl((BIO_METHOD*)BIO_s_fd())(b,cmd,num,ptr);
|
||||
break;
|
||||
case BIO_CTRL_PENDING:
|
||||
ret = tou_maxread(BIO_get_fd(b,NULL));
|
||||
|
Loading…
Reference in New Issue
Block a user