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

Go to the source code of this file.

Classes

struct  SslErrorAlias
 

Typedefs

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

Functions

static void loadSslErrorShortcutsMap ()
 

Variables

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

◆ SslErrorShortcuts

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

Definition at line 99 of file ErrorDetail.cc.

Function Documentation

◆ 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 78 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 71 of file ErrorDetail.cc.

◆ domainMismatch

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

Definition at line 70 of file ErrorDetail.cc.

◆ hasExpired

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

Definition at line 68 of file ErrorDetail.cc.

◆ notYetValid

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

Definition at line 69 of file ErrorDetail.cc.

◆ OptionalSslErrors

const char* OptionalSslErrors[]
static

Definition at line 17 of file ErrorDetail.cc.

Referenced by Ssl::ErrorIsOptional().

◆ TheSslErrorShortcuts

SslErrorShortcuts TheSslErrorShortcuts

Definition at line 100 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},
}
static const Security::ErrorCode notYetValid[]
Definition: ErrorDetail.cc:69
static const Security::ErrorCode domainMismatch[]
Definition: ErrorDetail.cc:70
static const Security::ErrorCode hasExpired[]
Definition: ErrorDetail.cc:68
static const Security::ErrorCode certSelfSigned[]
Definition: ErrorDetail.cc:78
static const Security::ErrorCode certUntrusted[]
Definition: ErrorDetail.cc:71
#define NULL
Definition: types.h:166

Definition at line 84 of file ErrorDetail.cc.

Referenced by loadSslErrorShortcutsMap().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors