ASN1C C/C++ Common Runtime  ASN1C v7.3.x
Classes | Macros

Classes

class  ASN1TTime
 
class  ASN1TGeneralizedTime
 
class  ASN1TUTCTime
 
class  ASN1CTime
 
class  ASN1CGeneralizedTime
 
class  ASN1CUTCTime
 

Macros

#define LOG_TMERR(pctxt, stat)   ((pctxt != 0) ? LOG_RTERR (pctxt, stat) : stat)
 

Detailed Description

The date and time classes contain methods for doing date/time calculations for the various ASN.1 time types including GeneralizedTime and UTCTime.

Macro Definition Documentation

◆ LOG_TMERR

#define LOG_TMERR (   pctxt,
  stat 
)    ((pctxt != 0) ? LOG_RTERR (pctxt, stat) : stat)

This macro logs an error in the time functions. It checks to make sure that the context parameter is not null before returning either a logged error (stored in the context) or simply the status itself.

Parameters
pctxtA pointer to an OSCTXT data structure; it may be null.
statThe error status.
Returns
The result of calling LOG_RTERR or the status, depending on the value of the pctxt parameter.