a helper class to print CNs extracted using Ssl::matchX509CommonNames() More...

Collaboration diagram for CommonNamesPrinter:

Public Member Functions

 CommonNamesPrinter (std::ostream &os)
 

Static Public Member Functions

static int PrintName (void *, ASN1_STRING *)
 Ssl::matchX509CommonNames() visitor that reports the given name (if any) More...
 

Public Attributes

bool printed = false
 whether any names have been printed so far More...
 

Private Member Functions

void printName (const ASN1_STRING *)
 

Private Attributes

std::ostream & os_
 destination for printed names More...
 

Detailed Description

Definition at line 578 of file ErrorDetail.cc.

Constructor & Destructor Documentation

◆ CommonNamesPrinter()

CommonNamesPrinter::CommonNamesPrinter ( std::ostream &  os)
inlineexplicit

Definition at line 581 of file ErrorDetail.cc.

Member Function Documentation

◆ printName()

void CommonNamesPrinter::printName ( const ASN1_STRING *  name)
private

prints an HTML-quoted version of the given common name (as a part of the printed names list)

Definition at line 606 of file ErrorDetail.cc.

References SBuf::c_str(), and html_quote().

◆ PrintName()

int CommonNamesPrinter::PrintName ( void *  printer,
ASN1_STRING *  name 
)
static

Definition at line 596 of file ErrorDetail.cc.

References assert.

Referenced by Security::ErrorDetail::printCommonName().

Member Data Documentation

◆ os_

std::ostream& CommonNamesPrinter::os_
private

Definition at line 592 of file ErrorDetail.cc.

◆ printed

bool CommonNamesPrinter::printed = false

Definition at line 587 of file ErrorDetail.cc.

Referenced by Security::ErrorDetail::printCommonName().


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors