Lines Matching defs:str

133 static int check_time_format(const char *str);
137 static int make_revoked(X509_REVOKED *rev, const char *str);
138 static int old_entry_print(const ASN1_OBJECT *obj, const ASN1_STRING *str);
1484 ASN1_STRING *str, *str2;
1516 str = X509_NAME_ENTRY_get_data(ne);
1523 if (str->type == V_ASN1_UNIVERSALSTRING)
1524 ASN1_UNIVERSALSTRING_to_string(str);
1526 if (str->type == V_ASN1_IA5STRING && nid != NID_pkcs9_emailAddress)
1527 str->type = V_ASN1_T61STRING;
1530 && str->type == V_ASN1_PRINTABLESTRING)
1531 str->type = V_ASN1_IA5STRING;
1539 if (nid == NID_pkcs9_emailAddress && str->type != V_ASN1_IA5STRING) {
1544 if (str->type != V_ASN1_BMPSTRING && str->type != V_ASN1_UTF8STRING) {
1545 j = ASN1_PRINTABLE_type(str->data, str->length);
1546 if ((j == V_ASN1_T61STRING && str->type != V_ASN1_T61STRING) ||
1547 (j == V_ASN1_IA5STRING && str->type == V_ASN1_PRINTABLESTRING))
1556 old_entry_print(obj, str);
1572 str = str2 = NULL;
1634 str = X509_NAME_ENTRY_get_data(tne);
1637 if (ASN1_STRING_cmp(str, str2) != 0)
1646 ((str == NULL) ? "NULL" : (char *)str->data));
2104 static int check_time_format(const char *str)
2106 return ASN1_TIME_set_string(NULL, str);
2359 char *str;
2427 str = app_malloc(i, "revocation reason");
2428 OPENSSL_strlcpy(str, (char *)revtm->data, i);
2430 OPENSSL_strlcat(str, ",", i);
2431 OPENSSL_strlcat(str, reason, i);
2434 OPENSSL_strlcat(str, ",", i);
2435 OPENSSL_strlcat(str, other, i);
2438 return str;
2449 static int make_revoked(X509_REVOKED *rev, const char *str)
2460 i = unpack_revinfo(&revDate, &reason_code, &hold, &comp_time, str);
2503 static int old_entry_print(const ASN1_OBJECT *obj, const ASN1_STRING *str)
2517 if (str->type == V_ASN1_PRINTABLESTRING)
2519 else if (str->type == V_ASN1_T61STRING)
2521 else if (str->type == V_ASN1_IA5STRING)
2523 else if (str->type == V_ASN1_UNIVERSALSTRING)
2526 BIO_printf(bio_err, "ASN.1 %2d:'", str->type);
2528 p = (const char *)str->data;
2529 for (j = str->length; j > 0; j--) {
2545 ASN1_GENERALIZEDTIME **pinvtm, const char *str)
2555 tmp = OPENSSL_strdup(str);