ErrorDetail.cc File Reference
#include "squid.h"
#include "errorpage.h"
#include "fatal.h"
#include "html_quote.h"
#include "ssl/ErrorDetail.h"
#include <climits>
#include <map>
Include dependency graph for ErrorDetail.cc:

Go to the source code of this file.

Classes

struct  SslErrorEntry
 
struct  SslErrorAlias
 

Typedefs

typedef std::map< Security::ErrorCode, const SslErrorEntry * > SslErrors
 
typedef std::map< std::string, const Security::ErrorCode * > SslErrorShortcuts
 

Functions

static void loadSslErrorMap ()
 
static void loadSslErrorShortcutsMap ()
 
static int copy_cn (void *check_data, ASN1_STRING *cn_data)
 

Variables

static const char * SslErrorDetailDefaultStr = "SSL handshake error (%err_name)"
 
SslErrors TheSslErrors
 
static SslErrorEntry TheSslErrorArray []
 
static const char * OptionalSslErrors []
 
static const Security::ErrorCode hasExpired [] = {X509_V_ERR_CERT_HAS_EXPIRED, SSL_ERROR_NONE}
 
static const Security::ErrorCode notYetValid [] = {X509_V_ERR_CERT_NOT_YET_VALID, SSL_ERROR_NONE}
 
static const Security::ErrorCode domainMismatch [] = {SQUID_X509_V_ERR_DOMAIN_MISMATCH, SSL_ERROR_NONE}
 
static const Security::ErrorCode certUntrusted []
 
static const Security::ErrorCode certSelfSigned [] = {X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT, SSL_ERROR_NONE}
 
static SslErrorAlias TheSslErrorShortcutsArray []
 
SslErrorShortcuts TheSslErrorShortcuts
 

Typedef Documentation

◆ SslErrors

typedef std::map<Security::ErrorCode, const SslErrorEntry *> SslErrors

Definition at line 25 of file ErrorDetail.cc.

◆ SslErrorShortcuts

typedef std::map<std::string, const Security::ErrorCode *> SslErrorShortcuts

Definition at line 475 of file ErrorDetail.cc.

Function Documentation

◆ copy_cn()

static int copy_cn ( void *  check_data,
ASN1_STRING *  cn_data 
)
static

Definition at line 599 of file ErrorDetail.cc.

References String::append(), and String::size().

Referenced by Ssl::ErrorDetail::cn().

◆ loadSslErrorMap()

static void loadSslErrorMap ( )
static

◆ loadSslErrorShortcutsMap()

static void loadSslErrorShortcutsMap ( )
static

Variable Documentation

◆ certSelfSigned

const Security::ErrorCode certSelfSigned[] = {X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT, SSL_ERROR_NONE}
static

Definition at line 454 of file ErrorDetail.cc.

◆ certUntrusted

const Security::ErrorCode certUntrusted[]
static
Initial value:
= {X509_V_ERR_INVALID_CA,
X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN,
X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE,
X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT,
X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY,
X509_V_ERR_CERT_UNTRUSTED, SSL_ERROR_NONE
}

Definition at line 447 of file ErrorDetail.cc.

◆ domainMismatch

const Security::ErrorCode domainMismatch[] = {SQUID_X509_V_ERR_DOMAIN_MISMATCH, SSL_ERROR_NONE}
static

Definition at line 446 of file ErrorDetail.cc.

◆ hasExpired

const Security::ErrorCode hasExpired[] = {X509_V_ERR_CERT_HAS_EXPIRED, SSL_ERROR_NONE}
static

Definition at line 444 of file ErrorDetail.cc.

◆ notYetValid

const Security::ErrorCode notYetValid[] = {X509_V_ERR_CERT_NOT_YET_VALID, SSL_ERROR_NONE}
static

Definition at line 445 of file ErrorDetail.cc.

◆ OptionalSslErrors

const char* OptionalSslErrors[]
static

Definition at line 393 of file ErrorDetail.cc.

Referenced by Ssl::ErrorIsOptional().

◆ SslErrorDetailDefaultStr

const char* SslErrorDetailDefaultStr = "SSL handshake error (%err_name)"
static

Definition at line 23 of file ErrorDetail.cc.

Referenced by Ssl::ErrorDetail::buildDetail().

◆ TheSslErrorArray

SslErrorEntry TheSslErrorArray[]
static

Definition at line 28 of file ErrorDetail.cc.

Referenced by Ssl::GetErrorCode(), and loadSslErrorMap().

◆ TheSslErrors

SslErrors TheSslErrors

Definition at line 26 of file ErrorDetail.cc.

Referenced by Ssl::GetErrorName(), and loadSslErrorMap().

◆ TheSslErrorShortcuts

SslErrorShortcuts TheSslErrorShortcuts

Definition at line 476 of file ErrorDetail.cc.

Referenced by loadSslErrorShortcutsMap(), and Ssl::ParseErrorString().

◆ TheSslErrorShortcutsArray

SslErrorAlias TheSslErrorShortcutsArray[]
static
Initial value:
= {
{"ssl::certHasExpired", hasExpired},
{"certHasExpired", hasExpired},
{"ssl::certNotYetValid", notYetValid},
{"certNotYetValid", notYetValid},
{"ssl::certDomainMismatch", domainMismatch},
{"certDomainMismatch", domainMismatch},
{"ssl::certUntrusted", certUntrusted},
{"certUntrusted", certUntrusted},
{"ssl::certSelfSigned", certSelfSigned},
{"certSelfSigned", certSelfSigned},
}

Definition at line 460 of file ErrorDetail.cc.

Referenced by loadSslErrorShortcutsMap().

static const Security::ErrorCode hasExpired[]
Definition: ErrorDetail.cc:444
#define NULL
Definition: types.h:166
static const Security::ErrorCode certUntrusted[]
Definition: ErrorDetail.cc:447
static const Security::ErrorCode notYetValid[]
Definition: ErrorDetail.cc:445
static const Security::ErrorCode certSelfSigned[]
Definition: ErrorDetail.cc:454
static const Security::ErrorCode domainMismatch[]
Definition: ErrorDetail.cc:446

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors