diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-01-06 16:13:37 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-01-06 16:13:37 -0800 |
commit | 2ee6c591dc1c59f38c8f924c81250f8df4764735 (patch) | |
tree | b815b9bcc6446493d63f310bda0549f3cacec596 /pcap-rpcap.c | |
parent | 5ae573eafe9f322371f45f0d9e993f204506f744 (diff) |
Unbreak source and binary compatibility.
We can't change the signature of pcap_remoteact_accept(); add
pcap_remoteact_accept_ex() with the new signature, and have
pcap_remoteact_accept() as a wrapper with the old signature.
Diffstat (limited to 'pcap-rpcap.c')
-rw-r--r-- | pcap-rpcap.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pcap-rpcap.c b/pcap-rpcap.c index 6e45c433..61a73957 100644 --- a/pcap-rpcap.c +++ b/pcap-rpcap.c @@ -2826,7 +2826,7 @@ error_nodiscard: * to implement; we provide some APIs for it that work only with rpcap. */ -SOCKET pcap_remoteact_accept(const char *address, const char *port, const char *hostlist, char *connectinghost, struct pcap_rmtauth *auth, int uses_ssl, char *errbuf) +SOCKET pcap_remoteact_accept_ex(const char *address, const char *port, const char *hostlist, char *connectinghost, struct pcap_rmtauth *auth, int uses_ssl, char *errbuf) { /* socket-related variables */ struct addrinfo hints; /* temporary struct to keep settings needed to open the new socket */ @@ -2998,6 +2998,11 @@ SOCKET pcap_remoteact_accept(const char *address, const char *port, const char * return sockctrl; } +SOCKET pcap_remoteact_accept(const char *address, const char *port, const char *hostlist, char *connectinghost, struct pcap_rmtauth *auth, char *errbuf) +{ + return pcap_remoteact_accept_ex(address, port, hostlist, connectinghost, auth, 0, errbuf); +} + int pcap_remoteact_close(const char *host, char *errbuf) { struct activehosts *temp, *prev; /* temp var needed to scan the host list chain */ |