OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
a_utctm.c File Reference
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "o_time.h"
#include <openssl/asn1.h>

Go to the source code of this file.

Macros

#define g2(p)   (((p)[0]-'0')*10+(p)[1]-'0')
 
#define return_cmp(a, b)   if ((a)<(b)) return -1; else if ((a)>(b)) return 1
 

Functions

int ASN1_UTCTIME_check (ASN1_UTCTIME *d)
 
int ASN1_UTCTIME_set_string (ASN1_UTCTIME *s, const char *str)
 
ASN1_UTCTIMEASN1_UTCTIME_set (ASN1_UTCTIME *s, time_t t)
 
ASN1_UTCTIMEASN1_UTCTIME_adj (ASN1_UTCTIME *s, time_t t, int offset_day, long offset_sec)
 
int ASN1_UTCTIME_cmp_time_t (const ASN1_UTCTIME *s, time_t t)
 

Macro Definition Documentation

#define g2 (   p)    (((p)[0]-'0')*10+(p)[1]-'0')
#define return_cmp (   a,
  b 
)    if ((a)<(b)) return -1; else if ((a)>(b)) return 1

Function Documentation

ASN1_UTCTIME* ASN1_UTCTIME_adj ( ASN1_UTCTIME s,
time_t  t,
int  offset_day,
long  offset_sec 
)

Definition at line 192 of file a_utctm.c.

int ASN1_UTCTIME_check ( ASN1_UTCTIME d)

Definition at line 115 of file a_utctm.c.

int ASN1_UTCTIME_cmp_time_t ( const ASN1_UTCTIME s,
time_t  t 
)

Definition at line 243 of file a_utctm.c.

ASN1_UTCTIME* ASN1_UTCTIME_set ( ASN1_UTCTIME s,
time_t  t 
)

Definition at line 187 of file a_utctm.c.

int ASN1_UTCTIME_set_string ( ASN1_UTCTIME s,
const char *  str 
)

Definition at line 165 of file a_utctm.c.