A brief file description. More...
#include "P_Net.h"
#include "I_Layout.h"
#include <ts/IpMapConf.h>
Go to the source code of this file.
Functions | |
void | loadSocksConfiguration (socks_conf_struct *socks_conf_stuff) |
int | loadSocksAuthInfo (int fd, socks_conf_struct *socks_stuff) |
int | socks5BasicAuthHandler (int event, unsigned char *p, void(**h_ptr)(void)) |
int | socks5PasswdAuthHandler (int event, unsigned char *p, void(**h_ptr)(void)) |
Variables | |
socks_conf_struct * | g_socks_conf_stuff = 0 |
ClassAllocator< SocksEntry > | socksAllocator ("socksAllocator") |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file Socks.cc.
int loadSocksAuthInfo | ( | int | fd, | |
socks_conf_struct * | socks_stuff | |||
) |
Definition at line 558 of file Socks.cc.
References ats_malloc(), Debug, memcpy, socks_conf_struct::user_name_n_passwd, socks_conf_struct::user_name_n_passwd_len, and Warning.
Referenced by loadSocksConfiguration().
void loadSocksConfiguration | ( | socks_conf_struct * | socks_conf_stuff | ) |
Definition at line 463 of file Socks.cc.
References socks_conf_struct::accept_enabled, socks_conf_struct::accept_port, ats_free(), socks_conf_struct::connection_attempts, Debug, socks_conf_struct::default_version, Error, Layout::get(), socks_conf_struct::http_port, socks_conf_struct::ip_map, Load_IpMap_From_File(), loadSocksAuthInfo(), PATH_NAME_MAX, socks_conf_struct::per_server_connection_attempts, REC_ConfigReadInteger(), REC_ConfigReadString(), Layout::relative_to(), socks_conf_struct::server_connect_timeout, socks_conf_struct::socks_needed, socks_conf_struct::socks_timeout, and SocksServerConfig::startup().
Referenced by UnixNetProcessor::start().
int socks5BasicAuthHandler | ( | int | event, | |
unsigned char * | p, | |||
void(**)(void) | h_ptr | |||
) |
Definition at line 605 of file Socks.cc.
References Debug, ink_assert, netProcessor, SOCKS5_VERSION, socks5PasswdAuthHandler(), SOCKS_AUTH_OPEN, SOCKS_AUTH_READ_COMPLETE, SOCKS_AUTH_WRITE_COMPLETE, NetProcessor::socks_conf_stuff, and socks_conf_struct::user_name_n_passwd.
int socks5PasswdAuthHandler | ( | int | event, | |
unsigned char * | p, | |||
void(**)(void) | h_ptr | |||
) |
Definition at line 677 of file Socks.cc.
References Debug, ink_assert, memcpy, netProcessor, SOCKS_AUTH_OPEN, SOCKS_AUTH_READ_COMPLETE, SOCKS_AUTH_WRITE_COMPLETE, NetProcessor::socks_conf_stuff, socks_conf_struct::user_name_n_passwd, and socks_conf_struct::user_name_n_passwd_len.
Referenced by socks5BasicAuthHandler().
ClassAllocator<SocksEntry> socksAllocator("socksAllocator") |
Referenced by UnixNetProcessor::connect_re_internal(), and SocksEntry::free().