BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB Reference

#include <ssl_sock.h>

Data Fields

unsigned version
 
pj_uint8_t serial_no [20]
 
struct {
   pj_str_t   cn
 
   pj_str_t   info
 
subject
 
struct {
   pj_str_t   cn
 
   pj_str_t   info
 
issuer
 
struct {
   pj_time_val   start
 
   pj_time_val   end
 
   pj_bool_t   gmt
 
validity
 
struct {
   unsigned   cnt
 
   struct {
      pj_ssl_cert_name_type   type
 
      pj_str_t   name
 
   }   entry
 
subj_alt_name
 
pj_str_t raw
 
struct {
   unsigned   cnt
 
   pj_str_t *   cert_raw
 
raw_chain
 

Detailed Description

Describe structure of certificate info.

Field Documentation

◆ cn

pj_str_t pj_ssl_cert_info::cn

Common name

◆ cnt

unsigned pj_ssl_cert_info::cnt

of entry

of entry

◆ end

pj_time_val pj_ssl_cert_info::end

Validity end

◆ 

struct { ... } * pj_ssl_cert_info::entry

Subject alt name entry

◆ gmt

pj_bool_t pj_ssl_cert_info::gmt

Flag if validity date/time use GMT

◆ info

pj_str_t pj_ssl_cert_info::info

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

One line subject, fields are separated by slash.

◆ 

struct { ... } pj_ssl_cert_info::issuer

Issuer

◆ name

pj_str_t pj_ssl_cert_info::name

The name

◆ raw

pj_str_t pj_ssl_cert_info::raw

Raw certificate in PEM format, only available for remote certificate.

◆ serial_no

pj_uint8_t pj_ssl_cert_info::serial_no[20]

Serial number, array of octets, first index is MSB

◆ start

pj_time_val pj_ssl_cert_info::start

Validity start

◆ 

struct { ... } pj_ssl_cert_info::subj_alt_name

Subject alternative name extension

◆ 

struct { ... } pj_ssl_cert_info::subject

Subject

◆ type

pj_ssl_cert_name_type pj_ssl_cert_info::type

Name type

◆ 

struct { ... } pj_ssl_cert_info::validity

Validity

◆ version

unsigned pj_ssl_cert_info::version

Certificate version


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

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.