negotiate_wrapper.cc File Reference
#include "squid.h"
#include "base64.h"
#include <cerrno>
#include <cstring>
#include <cstdlib>
#include <ctime>
Include dependency graph for negotiate_wrapper.cc:

Go to the source code of this file.

Macros

#define xmalloc   malloc
 
#define xstrdup   strdup
 
#define xfree   free
 
#define PROGRAM   "negotiate_wrapper"
 
#define VERSION   "1.0.1"
 
#define MAX_AUTHTOKEN_LEN   65535
 

Functions

static const char * LogTime ()
 
void usage (void)
 
static void closeFds (FILE *a, FILE *b, FILE *c, FILE *d)
 
static int processingLoop (FILE *FDKIN, FILE *FDKOUT, FILE *FDNIN, FILE *FDNOUT)
 
int main (int argc, char *const argv[])
 

Variables

static const unsigned char ntlmProtocol [] = {'N', 'T', 'L', 'M', 'S', 'S', 'P', 0}
 

Macro Definition Documentation

#define MAX_AUTHTOKEN_LEN   65535

Definition at line 63 of file negotiate_wrapper.cc.

Referenced by processingLoop().

#define PROGRAM   "negotiate_wrapper"

Definition at line 58 of file negotiate_wrapper.cc.

Referenced by main(), and processingLoop().

#define VERSION   "1.0.1"
#define xfree   free

Definition at line 54 of file negotiate_wrapper.cc.

Referenced by _heap_grow(), Ftp::DataChannel::addr(), allocate_new_swapdir(), asnAddNet(), authDigestNonceEncode(), cacheDestroy(), cacheEntryDestroy(), cacheIndexDestroy(), cbdataInternalFree(), MemPoolMalloc::clean(), StatHist::clear(), Snmp::Var::clearName(), Snmp::Pdu::clearSystemOid(), Snmp::Var::clearValue(), ClientRequestContext::clientAccessCheckDone(), ClientRequestContext::clientRedirectDone(), Fs::Ufs::UFSSwapDir::closeTmpSwapLog(), cxx_xfree(), MemPoolMalloc::deallocate(), decode_pub_auth(), delete_heap(), StatHist::deltaPctile(), destintvoid(), destroyRadixNode(), do_close(), do_subtree(), EvalBoolExpr(), fileIteratorDestroy(), Snmp::Session::free(), free_access_log(), free_node(), StoreMeta::FreeList(), Ip::Address::fromHost(), ftpListParseParts(), ftpReadType(), FileMap::grow(), ClientHttpRequest::handleAdaptedHeader(), hashFreeItems(), hashFreeMemory(), heap_extractlast(), htcpClear(), html_quote(), icpUdpSendQueue(), Ssl::CertValidationHelper::Init(), ipc_thread_1(), ipc_thread_2(), logfile_mod_daemon_close(), logfile_mod_daemon_open(), logfile_mod_stdio_close(), logfile_mod_udp_close(), logfileFreeBuffer(), Eui::Eui48::lookup(), mail_warranty(), main(), mainParseOptions(), make_auth_header(), ACLUrlPathStrategy::match(), ACLUrlStrategy::match(), memFree(), memFreeBuf(), memFreeString(), mimeGetEntry(), munge_action_line(), munge_menu_line(), munge_other_line(), my_free(), netdbDump(), netdbPurgeLRU(), netdbReloadState(), netdbSendPing(), Ident::IdentStateData::notify(), operator delete(), operator delete[](), TextException::operator=(), StatHist::operator=(), Adaptation::Icap::Options::TransferList::parse(), parse_access_log(), parse_objectid(), parse_objecttype(), parse_refreshpattern(), parse_sslproxy_cert_adapt(), parse_sslproxy_cert_sign(), parseCommandline(), Ftp::Gateway::parseListing(), parseOneConfigFile(), Debug::parseOptions(), testRFC1738::PercentZeroNullDecoding(), processingLoop(), read_post_request(), read_reply(), read_request(), Mem::Report(), DebugFile::reset(), rfc1035MessageDestroy(), rfc1035MessageUnpack(), rfc1035NamePack(), rfc1035RRDestroy(), rfc1035RRUnpack(), rfc1738_do_escape(), setLogUri(), MimeIcon::setName(), snmp_free_pdu(), snmp_var_clone(), snmp_var_free(), snmp_var_new(), snmpAgentResponse(), snmpDecodePacket(), snmpHandleUdp(), snmpLookupNodeStr(), squidaio_shutdown(), squidaio_xfree(), squidaio_xstrfree(), Rock::HeaderUpdater::startWriting(), storeRebuildComplete(), storeSwapOutStart(), storeSwapTLVFree(), Ident::IdentStateData::swanSong(), testSBuf::testComparisons(), testHttpRequest::testCreateFromUrl(), testHttpRequest::testIPv6HostColonBug(), testACLMaxUserIP::testParseLine(), testRFC1738::testUrlDecode(), UnloadSecurityDll(), wccp2ConnectionClose(), wccp2HandleUdp(), wccpAssignBuckets(), whoisWriteComplete(), Fs::Ufs::UFSSwapDir::writeCleanStart(), xfree_cppwrapper(), xRefFree(), AclDenyInfoList::~AclDenyInfoList(), ACLExternal::~ACLExternal(), Mgr::ActionPasswordList::~ActionPasswordList(), CacheDigest::~CacheDigest(), CachePeer::~CachePeer(), Ssl::Config::~Config(), Store::Disk::~Disk(), external_acl::~external_acl(), external_acl_data::~external_acl_data(), externalAclState::~externalAclState(), Format::Format::~Format(), fqdncache_entry::~fqdncache_entry(), Ftp::Gateway::~Gateway(), IdleConnList::~IdleConnList(), ipcache_entry::~ipcache_entry(), MemChunk::~MemChunk(), MimeEntry::~MimeEntry(), MimeIcon::~MimeIcon(), net_db_name::~net_db_name(), RegexPattern::~RegexPattern(), Ftp::Relay::~Relay(), REList::~REList(), Helper::Request::~Request(), TextException::~TextException(), TunnelStateData::~TunnelStateData(), Fs::Ufs::UFSSwapDir::~UFSSwapDir(), and Auth::User::~User().

#define xmalloc   malloc

Definition at line 48 of file negotiate_wrapper.cc.

Referenced by add_User_Group(), MemPoolMalloc::allocate(), AllocStrFromLSAStr(), asnAddNet(), Format::Format::assemble(), build_groups_DN_array(), build_tree(), cbdataInternalInitType(), client_Inst(), ClientInfo::ClientInfo(), decode_pub_auth(), diskCombineWrites(), do_subtree(), Ftp::escapeIAC(), EvalBoolExpr(), StoreMeta::Factory(), Get_primaryGroup(), GetDomainName(), GetLDAPPath(), getoid(), heap_insert(), helperOpenServers(), helperStatefulOpenServers(), LDAPArguments(), ESISegment::listToChar(), load_dict(), logfile_mod_daemon_open(), logfile_mod_stdio_open(), logfile_mod_udp_open(), Eui::Eui48::lookup(), main(), make_auth_header(), make_pub_auth(), memAllocate(), MemChunk::MemChunk(), My_NameTranslate(), new_heap(), operator new(), operator new[](), Format::Token::parse(), parse_objectid(), parse_objecttype(), Ftp::Client::parseControlReply(), Ftp::Gateway::parseListing(), peer_Inst(), process_options(), processingLoop(), read_passwd_file(), read_post_request(), Icmp6::Recv(), Icmp4::Recv(), rfc1035RRUnpack(), SBufToCstring(), setLogUri(), Snmp::Var::setName(), Snmp::Pdu::setSystemOid(), Snmp::Var::setValue(), snmp_parse(), snmp_pdu_clone(), snmp_pdu_create(), snmp_pdu_decode(), snmp_var_clone(), snmp_var_DecodeVarBind(), snmp_var_new(), snmp_var_new_integer(), snmpAddNode(), snmpCreateOid(), snmpHandleUdp(), squidaio_xmalloc(), sslGetUserCertificateChainPEM(), sslGetUserCertificatePEM(), static_Inst(), storeSwapMetaPack(), time_Inst(), Snmp::Session::unpack(), Snmp::Pdu::unpack(), Snmp::Var::unpack(), urlMakeAbsolute(), uudecode(), wccpAssignBuckets(), whoisStart(), WIN32_build_argv(), WIN32_Subsystem_Init(), xstrdup(), and xstrndup().

#define xstrdup   strdup

Definition at line 51 of file negotiate_wrapper.cc.

Referenced by ConnStateData::abortRequestParsing(), ACLCertificateData::ACLCertificateData(), AclDenyInfoList::AclDenyInfoList(), Ftp::DataChannel::addr(), Snmp::Session::assign(), BlockingFile::BlockingFile(), ErrorState::BuildContent(), Downloader::buildRequest(), Fs::Ufs::UFSSwapDir::changeIO(), ConnStateData::checkLogging(), Ftp::Client::Client(), clientBeginRequest(), clientBuildError(), ClientRequestContext::clientRedirectDone(), AnyP::PortCfg::clone(), Fs::Ufs::UFSSwapDir::closeTmpSwapLog(), testUfs::commonInit(), testRock::commonInit(), commonInit(), Ftp::Gateway::completedListing(), configDoConfigure(), Ftp::Client::connectDataChannel(), ACL::context(), decode_pub_auth(), DiskdFile::DiskdFile(), DiskThreadsDiskFile::DiskThreadsDiskFile(), doV2Query(), doV3Query(), errorDynamicPageInfoCreate(), errorInitialize(), ESIInclude::ESIInclude(), ESIVariableQuery::ESIVariableQuery(), ESIVariableUserAgent::ESIVariableUserAgent(), esiWhen::esiWhen(), external_acl_cache_add(), Ftp::Client::failed(), Adaptation::Icap::ModXact::finalizeLogInfo(), Format::Format::Format(), fqdncache_entry::fqdncache_entry(), fqdncacheAddEntryFromHosts(), fqdncacheParse(), Ip::Address::fromHost(), ftpListParseParts(), ftpSendReply(), GetOSVersion(), getpassword(), ESIVariableUserAgent::getProductVersion(), gopherSendComplete(), gopherToHTML(), Ftp::Gateway::hackShortcut(), helperOpenServers(), helperStatefulOpenServers(), ClientRequestContext::hostHeaderVerify(), htcpClear(), htcpTstReply(), Ftp::Gateway::htmlifyListEntry(), IdleConnList::IdleConnList(), Ssl::Helper::Init(), Ssl::CertValidationHelper::Init(), ipc_thread_1(), ipc_thread_2(), ipcache_entry::ipcache_entry(), ipcache_entry::latestError(), LDAPArguments(), Acl::InnerNode::lineParse(), LoadSecurityDll(), logfile_mod_udp_open(), main(), mainParseOptions(), makeExternalAclKey(), ACLDestinationDomainStrategy::match(), mimeGetEntry(), MmappedFile::MmappedFile(), munge_action_line(), munge_menu_line(), munge_other_line(), net_db_name::net_db_name(), netdbPingSite(), Log::TcpLogger::Open(), Fs::Ufs::UFSSwapDir::openTmpSwapLog(), TextException::operator=(), OutOfBoundsException::OutOfBoundsException(), ACLDomainData::parse(), ACLCertificateData::parse(), Format::Token::parse(), Rock::SwapDir::parse(), ACLExternal::parse(), Fs::Ufs::UFSSwapDir::parse(), parse_access_log(), parse_eol(), parse_externalAclHelper(), parse_hostdomaintype(), parse_peer(), parse_port_option(), parse_refreshpattern(), parse_sslproxy_cert_adapt(), parse_string(), parse_TokenOrQuotedString(), parse_UrlHelperTimeout(), parseCommandline(), Ftp::Client::parseControlReply(), parseHttpRequest(), Ftp::Server::parseOneRequest(), Debug::parseOptions(), parsePortSpecification(), password_conversation(), peerDigestRequest(), testRFC1738::PercentZeroNullDecoding(), ConnStateData::pinConnection(), prepareLogWithRequestDetails(), process_options(), process_request(), read_get_request(), read_passwd_file(), read_request(), readConfigFile(), readSecret(), request(), DebugFile::reset(), rfc1035NamePack(), send_request(), Auth::UserRequest::setDenyMessage(), ESIContext::setErrorMessage(), Comm::ConnOpener::setHost(), MimeIcon::setName(), HeaderManglers::setReplacement(), clientReplyContext::setReplyToError(), testRock::setUp(), setup_scheme(), UrnState::setUriResFromRequest(), snmp_confFn(), snmp_meshCtblFn(), snmp_meshPtblFn(), SquidMain(), Ident::Start(), CacheManager::Start(), ACLFilledChecklist::syncAle(), testSBuf::testComparisons(), testHttpRequest::testCreateFromUrl(), testHdrVisit(), testHttpRequest::testIPv6HostColonBug(), testLowAndHigh(), testACLMaxUserIP::testParseLine(), testUfs::testUfsDefaultEngine(), testUfs::testUfsSearch(), testRFC1738::testUrlDecode(), ConfigParser::TokenParse(), TunnelStateData::TunnelStateData(), urnHandleReply(), urnParseReply(), Auth::User::username(), WIN32_build_argv(), WIN32_InstallService(), WIN32_Subsystem_Init(), Fs::Ufs::UFSSwapDir::writeCleanStart(), and Ftp::Client::writeCommand().

Function Documentation

static void closeFds ( FILE *  a,
FILE *  b,
FILE *  c,
FILE *  d 
)
static

Definition at line 96 of file negotiate_wrapper.cc.

Referenced by main().

static const char* LogTime ( void  )
static

Definition at line 69 of file negotiate_wrapper.cc.

References buf, and NULL.

Referenced by main(), and processingLoop().

int main ( int  argc,
char *const  argv[] 
)
static int processingLoop ( FILE *  FDKIN,
FILE *  FDKOUT,
FILE *  FDNIN,
FILE *  FDNOUT 
)
static
void usage ( void  )

Definition at line 85 of file negotiate_wrapper.cc.

Referenced by main().

Variable Documentation

const unsigned char ntlmProtocol[] = {'N', 'T', 'L', 'M', 'S', 'S', 'P', 0}
static

Definition at line 66 of file negotiate_wrapper.cc.

Referenced by processingLoop().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors