Session.cc File Reference
#include "squid.h"
#include "anyp/PortCfg.h"
#include "base/RunnersRegistry.h"
#include "CachePeer.h"
#include "debug/Stream.h"
#include "fd.h"
#include "fde.h"
#include "ipc/MemMap.h"
#include "security/Session.h"
#include "SquidConfig.h"
#include "ssl/bio.h"
Include dependency graph for Session.cc:

Go to the source code of this file.

Classes

class  SharedSessionCacheRr
 initializes shared memory segments used by MemStore More...
 

Macros

#define SSL_SESSION_ID_SIZE   32
 
#define SSL_SESSION_MAX_SIZE   10*1024
 

Functions

static int tls_read_method (int fd, char *buf, int len)
 
static int tls_write_method (int fd, const char *buf, int len)
 
static bool CreateSession (const Security::ContextPointer &ctx, const Comm::ConnectionPointer &conn, Security::PeerOptions &opts, Security::Io::Type type, const char *squidCtx)
 
static bool isTlsServer ()
 
static int store_session_cb (SSL *, SSL_SESSION *session)
 
static void remove_session_cb (SSL_CTX *, SSL_SESSION *sessionID)
 
static SSL_SESSION * get_session_cb (SSL *, unsigned char *sessionID, int len, int *copy)
 
static void initializeSessionCache ()
 
 DefineRunnerRegistrator (SharedSessionCacheRr)
 

Variables

static Ipc::MemMapSessionCache = nullptr
 
static const char * SessionCacheName = "tls_session_cache"
 

Macro Definition Documentation

◆ SSL_SESSION_ID_SIZE

#define SSL_SESSION_ID_SIZE   32

Definition at line 23 of file Session.cc.

◆ SSL_SESSION_MAX_SIZE

#define SSL_SESSION_MAX_SIZE   10*1024

Definition at line 24 of file Session.cc.

Function Documentation

◆ CreateSession()

◆ DefineRunnerRegistrator()

DefineRunnerRegistrator ( SharedSessionCacheRr  )

◆ get_session_cb()

static SSL_SESSION * get_session_cb ( SSL *  ,
unsigned char *  sessionID,
int  len,
int copy 
)
static

◆ initializeSessionCache()

◆ isTlsServer()

static bool isTlsServer ( )
static

Definition at line 272 of file Session.cc.

References HttpPortList.

Referenced by SharedSessionCacheRr::create(), and SharedSessionCacheRr::useConfig().

◆ remove_session_cb()

static void remove_session_cb ( SSL_CTX *  ,
SSL_SESSION *  sessionID 
)
static

◆ store_session_cb()

◆ tls_read_method()

static int tls_read_method ( int  fd,
char *  buf,
int  len 
)
static

Definition at line 33 of file Session.cc.

References debugs, fd_table, and VALGRIND_MAKE_MEM_DEFINED.

Referenced by CreateSession().

◆ tls_write_method()

static int tls_write_method ( int  fd,
const char *  buf,
int  len 
)
static

Definition at line 63 of file Session.cc.

References debugs, and fd_table.

Referenced by CreateSession().

Variable Documentation

◆ SessionCache

◆ SessionCacheName

const char* SessionCacheName = "tls_session_cache"
static

Definition at line 28 of file Session.cc.

Referenced by SharedSessionCacheRr::create(), and initializeSessionCache().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors