mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 18:15:18 -04:00
Use only BIO_METHOD pointer in openssl >= 1.1.0
The type declaration is hidden so we can't declare variable but only pointers Fix compilation on Android
This commit is contained in:
parent
18e02c9f4a
commit
d00d0816ff
2 changed files with 37 additions and 24 deletions
|
@ -103,11 +103,6 @@ int tou_connect(int sockfd, const struct sockaddr *serv_addr,
|
|||
socklen_t addrlen, uint32_t conn_period);
|
||||
int tou_accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
|
||||
|
||||
/// for relay connections
|
||||
int tou_connect_via_relay( int sockfd, const sockaddr_in& own_addr,
|
||||
const sockaddr_in& proxy_addr,
|
||||
const sockaddr_in& dest_addr );
|
||||
|
||||
/* non-standard bonuses */
|
||||
int tou_connected(int sockfd);
|
||||
int tou_listenfor(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen);
|
||||
|
@ -130,6 +125,14 @@ int tou_maxwrite(int sockfd);
|
|||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
typedef struct sockaddr_in sockaddr_in;
|
||||
|
||||
/// for relay connections
|
||||
int tou_connect_via_relay( int sockfd, const sockaddr_in& own_addr,
|
||||
const sockaddr_in& proxy_addr,
|
||||
const sockaddr_in& dest_addr );
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue