Session.cc File Reference
#include "squid.h"
#include "anyp/PortCfg.h"
#include "base/RunnersRegistry.h"
#include "CachePeer.h"
#include "Debug.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::Io::Type type, const char *squidCtx)
 
static bool isTlsServer ()
 
static int store_session_cb (SSL *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)
 
void initializeSessionCache ()
 
 RunnerRegistrationEntry (SharedSessionCacheRr)
 

Variables

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

Macro Definition Documentation

#define SSL_SESSION_ID_SIZE   32

Definition at line 23 of file Session.cc.

Referenced by initializeSessionCache().

#define SSL_SESSION_MAX_SIZE   10*1024

Definition at line 24 of file Session.cc.

Referenced by initializeSessionCache().

Function Documentation

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

Definition at line 270 of file Session.cc.

References HttpPortList.

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

static void remove_session_cb ( SSL_CTX *  ,
SSL_SESSION *  sessionID 
)
static
RunnerRegistrationEntry ( SharedSessionCacheRr  )
static int store_session_cb ( SSL *  ssl,
SSL_SESSION *  session 
)
static
static int tls_read_method ( int  fd,
char *  buf,
int  len 
)
static

Definition at line 33 of file Session.cc.

References debugs, fd_table, i, and VALGRIND_MAKE_MEM_DEFINED.

Referenced by CreateSession().

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

Definition at line 70 of file Session.cc.

References debugs, fd_table, and i.

Referenced by CreateSession().

Variable Documentation

Ipc::MemMap* SessionCache = nullptr
static

Definition at line 27 of file Session.cc.

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