openssl/test/asn1_time_test.c Lines 449 to 471 in4e3c1e6 /* * this test is here to exercise ossl_asn1_time_from_tm * with an integer year close to INT_MAX. */ staticintconvert_tm_to_asn1_time(void) { /* we need 64 bit time_t */ ...
}#endifASN1_TIME_free(tm); ASN1_INTEGER_free(it);returnrevoked; } 开发者ID:Udo,项目名称:lua-openssl,代码行数:32,代码来源:crl.c 示例4: ASN1_INTEGER_to_BN ▲点赞 1▼ a1int &a1int::operator++ (void) { BIGNUM *bn = ASN1_INTEGER_to_BN(in,NULL); BN_add(bn, bn, BN_value_on...
ASN1_time_tm_cmp() returns -1 iftm1is less thantm2. 1 iftm1is greater thantm2. 0 iftm1is the same astm2. ASN1_TIME_set_tm() returns a pointer to anASN1_TIMEstructure orNULLif an error occurred. SEE ALSO ASN1_TIME_new(3),ASN1_TIME_set(3),X509_cmp_time(3) ...
a_time.c_ASN1_TIME_diff.c.o a_time.c_ASN1_TIME_set.c.o a_time.c_ASN1_TIME_set_string.c.o a_time.c_leap_year.c.o a_utctm.c_ASN1_UTCTIME_check.c.o a_utctm.c_ASN1_UTCTIME_cmp_time_t.c.o a_utctm.c_ASN1_UTCTIME_print.c.o a_utctm.c_A...
EXTRTMETHOD ASN1CUTCTime::ASN1CUTCTime(OSRTMessageBufferIF &msgBuf, char *&buf, intbufSize, OSBOOLuseDerRules=FALSE ) This constructor creates a time string from a buffer. It does not deep-copy the data, it just assigns the passed array to an internal reference variable. The object wil...
asn1time_to_time(ASN1_TIME *time){struct tm tm;VALUE argv[6];if (!time || !time->data) return Qnil;memset(&tm, 0, sizeof(struct tm));switch (time->type) {case V_ASN1_UTCTIME:if (sscanf(time->data, "%2d%2d%2d%2d%2d%2dZ", &tm.tm_year, &tm.tm_mon,...
ASN1_TIME *asn1_time_from_tm(ASN1_TIME *s, struct tm *ts,inttype){char* p; ASN1_TIME *tmps =NULL;constsize_tlen =20;if(type == V_ASN1_UNDEF) {if(is_utc(ts->tm_year)) type = V_ASN1_UTCTIME;elsetype = V_ASN1_GENERALIZEDTIME; ...
currentTime=localtime(&tv.tv_sec);currentSecMark= (currentTime->tm_sec*1000+tv.tv_usec/1000);bsm->secMark=currentSecMark;bsm->timeConfidence=NULL;//填充车身自身信息,值暂时都定为0,后续可从CAN总线上取 bsm->accelSet.lat=0;bsm->accelSet.Long=0;bsm->accelSet.vert=0;bsm->accelSet.yaw...
ASN1_TIME * ASN1_TIME_adj (ASN1_TIME *s, time_t t, int offset_day, long offset_sec) int ASN1_TIME_check (ASN1_TIME *t) ASN1_GENERALIZEDTIME * ASN1_TIME_to_generalizedtime (ASN1_TIME *t, ASN1_GENERALIZEDTIME **out) int ASN1_TIME_set_string (ASN1_TIME *s, const char *str...
(asn1Object instanceof ASN1UTCTime) { return dumpUTCTime((ASN1UTCTime) asn1Object); } else if (asn1Object instanceof ASN1GeneralizedTime) { return dumpGeneralizedTime((ASN1GeneralizedTime) asn1Object); } else if (asn1Object instanceof ASN1Sequence || asn1Object instanceof ASN1Set ) { ...