00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef __ASN1CUTCTIME_H__
00026
#define __ASN1CUTCTIME_H__
00027
00028
#include "ASN1CTime.h"
00029
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00056
#ifndef _NO_UTILS_CLASSES
00057
00068 class EXTERNRT ASN1CUTCTime :
public ASN1CTime {
00069
protected:
00070
ASN1TUTCTime timeObj;
00071
00072
virtual ASN1TTime& getTimeObj () {
return timeObj; }
00073
virtual const ASN1TTime& getTimeObj ()
const {
return timeObj; }
00074
00075 ASN1CUTCTime(
char*& buf,
int bufSize, ASN1BOOL useDerRules = FALSE);
00076 ASN1CUTCTime(ASN1UTCTime& buf, ASN1BOOL useDerRules = FALSE);
00077
00078
public:
00093 ASN1CUTCTime(
ASN1MessageBufferIF& msgBuf,
char*& buf,
int bufSize,
00094 ASN1BOOL useDerRules = FALSE);
00095
00109 ASN1CUTCTime(
ASN1MessageBufferIF& msgBuf, ASN1UTCTime& buf,
00110 ASN1BOOL useDerRules = FALSE);
00111
00112 ASN1CUTCTime(
ASN1Context& ctxt,
char*& buf,
int bufSize,
00113 ASN1BOOL useDerRules = FALSE);
00114
00115 ASN1CUTCTime(
ASN1Context& ctxt, ASN1UTCTime& buf,
00116 ASN1BOOL useDerRules = FALSE);
00117
00118
00119
00120 ASN1CUTCTime (
const ASN1CUTCTime& original) :
00121
ASN1CTime (original) {}
00122
00134
int setTime(time_t time, ASN1BOOL diffTime);
00135
00136
const ASN1CUTCTime& operator = (
const ASN1CUTCTime& tm) {
00137
return (ASN1CUTCTime&) ASN1CTime::operator = (tm);
00138 }
00139
00140
protected:
00141
00142
00143
00144
00145
int compileString();
00146
00147
00148
00149
00150
00151
int getFraction();
00152
00153
00154
00155
00156
00157
int setFraction(
int fraction);
00158
00159 } ;
00160
#else
00161
typedef class _ASN1CUTCTime :
public _ASN1CTime {
00162
protected:
00163 _ASN1CUTCTime(
char*& buf,
int bufSize, ASN1BOOL useDerRules) {}
00164 _ASN1CUTCTime(ASN1VisibleString& buf, ASN1BOOL useDerRules) {}
00165
public:
00166 _ASN1CUTCTime (
ASN1MessageBufferIF& msgBuf,
char*& buf,
int sz,
00167 ASN1BOOL useDerRules = FALSE) :
00168 _ASN1CTime (msgBuf, buf, sz, useDerRules) {}
00169 _ASN1CUTCTime (
ASN1MessageBufferIF& msgBuf, ASN1VisibleString& buf,
00170 ASN1BOOL useDerRules = FALSE) :
00171 _ASN1CTime (msgBuf, buf, useDerRules) {}
00172 _ASN1CUTCTime(
ASN1Context& ctxt,
char*& buf,
int bufSize,
00173 ASN1BOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00174 _ASN1CUTCTime(
ASN1Context& ctxt, ASN1VisibleString& buf,
00175 ASN1BOOL useDerRules) : _ASN1CTime (ctxt, buf, bufSize, useDerRules) {}
00176 } ASN1CUTCTime;
00177
#endif // _NO_UTILS_CLASSES
00178
#endif //__ASN1CUTCTIME_H__
00179