BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

pj::SslCertInfo Struct Reference

#include <endpoint.hpp>

Public Member Functions

 SslCertInfo ()
 
bool isEmpty () const
 
void fromPj (const pj_ssl_cert_info &info)
 

Data Fields

unsigned version
 
unsigned char serialNo [20]
 
string subjectCn
 
string subjectInfo
 
string issuerCn
 
string issuerInfo
 
TimeVal validityStart
 
TimeVal validityEnd
 
bool validityGmt
 
SslCertNameVector subjectAltName
 
string raw
 

Detailed Description

SSL certificate information.

Constructor & Destructor Documentation

◆ SslCertInfo()

pj::SslCertInfo::SslCertInfo ( )

Constructor.

Member Function Documentation

◆ isEmpty()

bool pj::SslCertInfo::isEmpty ( ) const

Check if the info is set with empty values.

Returns
True if the info is empty.

◆ fromPj()

void pj::SslCertInfo::fromPj ( const pj_ssl_cert_info info)

Convert from pjsip

Field Documentation

◆ version

unsigned pj::SslCertInfo::version

Certificate version

◆ serialNo

unsigned char pj::SslCertInfo::serialNo[20]

Serial number, array of octets, first index is MSB

◆ subjectCn

string pj::SslCertInfo::subjectCn

Subject common name

◆ subjectInfo

string pj::SslCertInfo::subjectInfo

One line subject, fields are separated by slash, e.g: "CN=sample.org/OU=HRD"

◆ issuerCn

string pj::SslCertInfo::issuerCn

Issuer common name

◆ issuerInfo

string pj::SslCertInfo::issuerInfo

One line subject, fields are separated by slash

◆ validityStart

TimeVal pj::SslCertInfo::validityStart

Validity start

◆ validityEnd

TimeVal pj::SslCertInfo::validityEnd

Validity end

◆ validityGmt

bool pj::SslCertInfo::validityGmt

Flag if validity date/time use GMT

◆ subjectAltName

SslCertNameVector pj::SslCertInfo::subjectAltName

Subject alternative name extension

◆ raw

string pj::SslCertInfo::raw

Raw certificate in PEM format, only available for remote certificate


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

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.