Lines Matching defs:str
24 #define ASN1_GEN_STR(str,val) {str, sizeof(str) - 1, val}
60 const char *str;
65 static ASN1_TYPE *generate_v3(const char *str, X509V3_CTX *cnf, int depth,
75 static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype);
78 ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf)
83 return ASN1_generate_v3(str, NULL);
86 return ASN1_generate_v3(str, &cnf);
89 ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf)
92 ASN1_TYPE *ret = generate_v3(str, cnf, 0, &err);
98 static ASN1_TYPE *generate_v3(const char *str, X509V3_CTX *cnf, int depth,
120 if (CONF_parse_list(str, ',', 1, asn1_cb, &asn1_tags) != 0) {
135 ret = asn1_multi(asn1_tags.utype, asn1_tags.str, cnf, depth, perr);
137 ret = asn1_str2type(asn1_tags.str, asn1_tags.format, asn1_tags.utype);
273 arg->str = vstart;
575 static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype)
588 if (!str)
589 str = "";
594 if (str && *str) {
607 vtmp.value = (char *)str;
621 = s2i_ASN1_INTEGER(NULL, str)) == NULL) {
632 if ((atmp->value.object = OBJ_txt2obj(str, 0)) == NULL) {
648 if (!ASN1_STRING_set(atmp->value.asn1_string, str, -1)) {
678 if (ASN1_mbstring_copy(&atmp->value.asn1_string, (unsigned char *)str,
694 if ((rdata = OPENSSL_hexstr2buf(str, &rdlen)) == NULL) {
702 ASN1_STRING_set(atmp->value.asn1_string, str, -1);
706 (str, ',', 1, bitstr_cb, atmp->value.bit_string)) {
734 ERR_add_error_data(2, "string=", str);
782 int ASN1_str2mask(const char *str, unsigned long *pmask)
785 return CONF_parse_list(str, '|', 1, mask_cb, pmask);