public String toString() { return getTime(); } } 代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on public Date getNotBefore() { return c.getStartDate().getDate(); } 代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on public void setEndDate( ASN1UTCTime endDate) { this...
staticVALUEossl_x509crl_set_next_update(VALUE self, VALUE time){ X509_CRL *crl; ASN1_TIME *asn1time; GetX509CRL(self, crl); asn1time = ossl_x509_time_adjust(NULL, time);if(!X509_CRL_set_nextUpdate(crl, asn1time)) {ASN1_TIME_free(asn1time); ossl_raise(eX509CRLError,"X509_CRL...
ASN1_BIT_STRING_free(octet);if(ret <0)return0;returnX509_PUBKEY_set0_param(pub,algobj,ptype,pval,buf,ret); } 开发者ID:0culus,项目名称:openssl,代码行数:55,代码来源:gost_ameth.c 示例8: ▲点赞 1▼ /* Convert an ASN1_TIME structure to GeneralizedTime */ASN1_GENERALIZEDTIME *ASN1_TI...
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); ASN1_TIME * ASN1_TIME_set_tm(ASN1_TIME *s,struct tm *tm); DESCRIPTION TheASN1_time_parse() function parses an ASN.1 time string oflenbytes starting...
字符串:OCTET STRING 空:NULL 结构类型又称为复合类型,如 有序成员固定结构:SEQUENCE 无序成员固定结构:SET 1.1实战 通过一个实例我们看看怎样使用ASN.1。 我们先创建一个ASN1格式的schema,该schema表示用户信息,里面有用户名和用户描述。然后填写数据,将数据进行编解码。大家可以用https://asn1.io/asn1playground...
X509Ext.getVeriSignNonVerified(...) privateStringgetVeriSignNonVerified(byte[]octets)throwsIOException{/* NonVerified ::= SET OF ATTRIBUTE */StringBuildersb=newStringBuilder();ASN1Set asn1Set=ASN1Set.getInstance(octets);for(ASN1Encodable attribute:asn1Set.toArray()){ASN1ObjectIdentifier attribute...
[SET和SET OF]-[无序数列,SET里面的每个数值都可以是不同类型的,而SET OF里是0个或多个类型相同的数据]-[11] [NumericString]-[0-9以及空格]-[12] [PrintableString]-[A-Z、a-z、0-9、空格以及符号 ()+,-./:=?]-[13] [UTCTime]-[统一全球时间格式]-[17] ...
#define M_ASN1_OCTET_STRING_cmp(a, b) #define M_ASN1_OCTET_STRING_set(a, b, c) ASN1_STRING_set((ASN1_STRING *)a,b,c) #define M_ASN1_OCTET_STRING_print(a, b) ASN1_STRING_print(a,(ASN1_STRING *)b) #define M_i2d_ASN1_OCTET_STRING(a, pp) #define B_ASN1_TIME #de...
STRING_set0(ASN1_STRING *str, void *data, int len) { OPENSSL_free(str->data); str->data = data; str->length = len; } ASN1_STRING *ASN1_STRING_new(void) { return ASN1_STRING_type_new(V_ASN1_OCTET_STRING); } ASN1_STRING *ASN1_STRING_type_new(int type) { ASN1_...
String可选,namingAuthorityTextDirectoryString(SIZE(1..128))OPTIONAL}ProfessionInfo::=SEQUENCE{namingAuthority[0]显式NamingAuthority可选,professionalItems序列的DirectoryString(SIZE(1..128)),professionalOIDs对象标识符序列可选,registrationNumberPrintableString(SIZE(1..128))可选,addProfessionInfo OCTET STRING...