hitch  1.5.2
About: Hitch is a libev-based high performance SSL/TLS proxy that terminates TLS/SSL connections and forwards the unencrypted traffic to some backend.
  Fossies Dox: hitch-1.5.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

asn_gentm.c File Reference
#include <stdio.h>
#include <time.h>
#include <openssl/asn1.h>
Include dependency graph for asn_gentm.c:

Go to the source code of this file.

Macros

#define SECS_PER_DAY   (24 * 60 * 60)
 

Functions

static void julian_to_date (long jd, int *y, int *m, int *d)
 
static long date_to_julian (int y, int m, int d)
 
static int julian_adj (const struct tm *tm, int off_day, long offset_sec, long *pday, int *psec)
 
static int openssl_gmtime_adj (struct tm *tm, int off_day, long offset_sec)
 
static int asn1_generalizedtime_to_tm (struct tm *tm, const ASN1_GENERALIZEDTIME *d)
 
double asn1_gentime_parse (const ASN1_GENERALIZEDTIME *d)
 

Macro Definition Documentation

◆ SECS_PER_DAY

#define SECS_PER_DAY   (24 * 60 * 60)

Definition at line 49 of file asn_gentm.c.

Function Documentation

◆ asn1_generalizedtime_to_tm()

static int asn1_generalizedtime_to_tm ( struct tm *  tm,
const ASN1_GENERALIZEDTIME *  d 
)
static

Definition at line 128 of file asn_gentm.c.

References openssl_gmtime_adj().

Referenced by asn1_gentime_parse().

◆ asn1_gentime_parse()

double asn1_gentime_parse ( const ASN1_GENERALIZEDTIME *  d)

Definition at line 246 of file asn_gentm.c.

References asn1_generalizedtime_to_tm().

Referenced by HOCSP_verify().

◆ date_to_julian()

static long date_to_julian ( int  y,
int  m,
int  d 
)
static

Definition at line 41 of file asn_gentm.c.

Referenced by julian_adj().

◆ julian_adj()

static int julian_adj ( const struct tm *  tm,
int  off_day,
long  offset_sec,
long *  pday,
int *  psec 
)
static

Definition at line 53 of file asn_gentm.c.

References date_to_julian(), and SECS_PER_DAY.

Referenced by openssl_gmtime_adj().

◆ julian_to_date()

static void julian_to_date ( long  jd,
int *  y,
int *  m,
int *  d 
)
static

Definition at line 24 of file asn_gentm.c.

Referenced by openssl_gmtime_adj().

◆ openssl_gmtime_adj()

static int openssl_gmtime_adj ( struct tm *  tm,
int  off_day,
long  offset_sec 
)
static

Definition at line 97 of file asn_gentm.c.

References julian_adj(), and julian_to_date().

Referenced by asn1_generalizedtime_to_tm().