As of commit16a64b0, asn1_time_test starts failing as follows. It is off by an hour, not taking UTC/TZ correctly into account. The system is in London, which is one hour off from UTC. # Subtest: convert_asn1_to_time_t 1..5 # ERROR: (time_t) 'testdateutc == asn1_to_utc...
int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, char *str); int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t); int ASN1_UTCTIME_print(BIO *fp,ASN1_UTCTIME *a); 【ASN1_UTCTIME_set】 该函数将time_t格式的时间变量t的值转换为一个ASN1_UTCTIME格式的时间变量,并保存在...
内部申请空间,需要用户调用ASN1_STRING_free释放该空间 q.int ASN1_STRING_cmp(ASN1_STRING *a, ASN1_STRING *b) ASN1_STRING比较.ossl_typ.h中绝大多数ASN1基本类型都定义 ASN1_STRING,所以,此函数比较通用。 r.unsigned char *ASN1_STRING_data(ASN1_STRING *x) 获取ASN1_STRING数据存放地址,即ASN1...
ASN1_time_parse,ASN1_time_tm_cmp,ASN1_TIME_set_tm— LibreSSL utilities for ASN.1 time types SYNOPSIS #include <openssl/asn1.h> int ASN1_time_parse(const char *bytes,size_t len,struct tm *tm,int mode); int ASN1_time_tm_cmp(struct tm *tm1,struct tm *tm2); ...
tasn_utl.c tbl_standard.h x_algor.c x_bignum.c x_info.c x_int64.c x_long.c x_pkey.c x_sig.c x_spki.c x_val.c async bf bio bn buffer camellia cast chacha cmac cmp cms comp conf crmf ct des dh dsa dso ec engine err ess evp ffc hmac http idea kdf lhash md2 ...
}if(checkend) {time_ttcheck = time(NULL) + checkoffset;if(X509_cmp_time(X509_get_notAfter(x), &tcheck) <0) { BIO_printf(out,"Certificate will expire\n"); ret =1; }else{ BIO_printf(out,"Certificate will not expire\n"); ...
int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, char *str); int ASN1_UTCTIME_cmp_time_t(const ASN1_UTCTIME *s, time_t t); #if 0 time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s); #endif int ASN1_GENERALIZEDTIME_check(ASN1_GENERALIZEDTIME *a); ASN1_GENERALIZEDTIME *ASN...
}ASN1_TIME_free(asn1time);returntime; } 开发者ID:gferguson-gd,项目名称:ruby,代码行数:16,代码来源:ossl_x509crl.c 示例3: X509_REVOKED_new ▲点赞 5▼ staticX509_REVOKED *create_revoked(constBIGNUM* bn,time_tt,intreason){ X509_REVOKED *revoked = X509_REVOKED_new(); ...
This can happen when a newer version of the OSS ASN.1 compiler is used with an older version of the OSS ASN.1 runtime libraries.Possible SolutionUse the osswhat utility, included with the OSS ASN.1 Tools, to make certain that your runtime library version matches your ASN.1 compiler ...
timeStamp 2.23.42.7.0,hashedRootKey 2.23.42.7.1,setCertificateType 2.16.840.1.114027.10.4,entrustAdminServicesClients 2.16.840.1.114027.10.5,entrustAdminServicesServer 1.3.133.16.840.63.0.2,dhSinglePass-stdDH-sha1kdf-scheme 1.3.132.1.11.0,dhSinglePass-stdDH-sha224kdf-scheme 1.3.132.1.11.1,dhSingle...