mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Merge remote-tracking branch 'origin/maint-0.2.2'
This commit is contained in:
commit
33f058a5ba
@ -280,7 +280,7 @@ dnsserv_resolved(edge_connection_t *conn,
|
|||||||
conn->socks_request->command == SOCKS_COMMAND_RESOLVE) {
|
conn->socks_request->command == SOCKS_COMMAND_RESOLVE) {
|
||||||
evdns_server_request_add_a_reply(req,
|
evdns_server_request_add_a_reply(req,
|
||||||
name,
|
name,
|
||||||
1, (char*)answer, ttl);
|
1, answer, ttl);
|
||||||
} else if (answer_type == RESOLVED_TYPE_HOSTNAME &&
|
} else if (answer_type == RESOLVED_TYPE_HOSTNAME &&
|
||||||
answer_len < 256 &&
|
answer_len < 256 &&
|
||||||
conn->socks_request->command == SOCKS_COMMAND_RESOLVE_PTR) {
|
conn->socks_request->command == SOCKS_COMMAND_RESOLVE_PTR) {
|
||||||
|
@ -1668,7 +1668,7 @@ evdns_server_request_add_reply(struct evdns_server_request *_req, int section, c
|
|||||||
|
|
||||||
/* exported function */
|
/* exported function */
|
||||||
int
|
int
|
||||||
evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl)
|
evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, const void *addrs, int ttl)
|
||||||
{
|
{
|
||||||
return evdns_server_request_add_reply(
|
return evdns_server_request_add_reply(
|
||||||
req, EVDNS_ANSWER_SECTION, name, TYPE_A, CLASS_INET,
|
req, EVDNS_ANSWER_SECTION, name, TYPE_A, CLASS_INET,
|
||||||
@ -1677,7 +1677,7 @@ evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *n
|
|||||||
|
|
||||||
/* exported function */
|
/* exported function */
|
||||||
int
|
int
|
||||||
evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl)
|
evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, const void *addrs, int ttl)
|
||||||
{
|
{
|
||||||
return evdns_server_request_add_reply(
|
return evdns_server_request_add_reply(
|
||||||
req, EVDNS_ANSWER_SECTION, name, TYPE_AAAA, CLASS_INET,
|
req, EVDNS_ANSWER_SECTION, name, TYPE_AAAA, CLASS_INET,
|
||||||
|
@ -323,8 +323,8 @@ struct evdns_server_port *evdns_add_server_port(int socket, int is_tcp, evdns_re
|
|||||||
void evdns_close_server_port(struct evdns_server_port *port);
|
void evdns_close_server_port(struct evdns_server_port *port);
|
||||||
|
|
||||||
int evdns_server_request_add_reply(struct evdns_server_request *req, int section, const char *name, int type, int class, int ttl, int datalen, int is_name, const char *data);
|
int evdns_server_request_add_reply(struct evdns_server_request *req, int section, const char *name, int type, int class, int ttl, int datalen, int is_name, const char *data);
|
||||||
int evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl);
|
int evdns_server_request_add_a_reply(struct evdns_server_request *req, const char *name, int n, const void *addrs, int ttl);
|
||||||
int evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, void *addrs, int ttl);
|
int evdns_server_request_add_aaaa_reply(struct evdns_server_request *req, const char *name, int n, const void *addrs, int ttl);
|
||||||
int evdns_server_request_add_ptr_reply(struct evdns_server_request *req, struct in_addr *in, const char *inaddr_name, const char *hostname, int ttl);
|
int evdns_server_request_add_ptr_reply(struct evdns_server_request *req, struct in_addr *in, const char *inaddr_name, const char *hostname, int ttl);
|
||||||
int evdns_server_request_add_cname_reply(struct evdns_server_request *req, const char *name, const char *cname, int ttl);
|
int evdns_server_request_add_cname_reply(struct evdns_server_request *req, const char *name, const char *cname, int ttl);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user