prints X.509 names extracted using Ssl::HasMatchingSubjectName() More...

Inheritance diagram for CommonNamesPrinter:
Collaboration diagram for CommonNamesPrinter:

Public Member Functions

 CommonNamesPrinter (std::ostream &os)
 
bool match (const Ssl::GeneralName &) const
 whether the given name satisfies algorithm conditions More...
 

Public Attributes

size_t printed = 0
 the number of names printed so far More...
 

Protected Member Functions

bool matchDomainName (const Dns::DomainName &) const override
 
bool matchIp (const Ip::Address &) const override
 

Private Member Functions

std::ostream & itemStream () const
 

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

◆ itemStream()

std::ostream & CommonNamesPrinter::itemStream ( ) const
private

prints a comma in front of each item except for the very first one

Returns
a stream for printing the name

Definition at line 617 of file ErrorDetail.cc.

◆ match()

bool Ssl::GeneralNameMatcher::match ( const Ssl::GeneralName name) const
inherited

◆ matchDomainName()

bool CommonNamesPrinter::matchDomainName ( const Dns::DomainName domain) const
overrideprotectedvirtual

Implements Ssl::GeneralNameMatcher.

Definition at line 598 of file ErrorDetail.cc.

References html_quote().

◆ matchIp()

bool CommonNamesPrinter::matchIp ( const Ip::Address ip) const
overrideprotectedvirtual

Implements Ssl::GeneralNameMatcher.

Definition at line 606 of file ErrorDetail.cc.

References MAX_IPSTRLEN, and Ip::Address::toStr().

Member Data Documentation

◆ os_

std::ostream& CommonNamesPrinter::os_
private

Definition at line 594 of file ErrorDetail.cc.

◆ printed

size_t CommonNamesPrinter::printed = 0
mutable

Definition at line 584 of file ErrorDetail.cc.

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


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

 

Introduction

Documentation

Support

Miscellaneous