Lines Matching refs:a

23 static int ts_status_map_print(BIO *bio, const struct status_map_st *a,
28 int TS_RESP_print_bio(BIO *bio, TS_RESP *a) in TS_RESP_print_bio() argument
31 TS_STATUS_INFO_print_bio(bio, a->status_info); in TS_RESP_print_bio()
34 if (a->tst_info != NULL) in TS_RESP_print_bio()
35 TS_TST_INFO_print_bio(bio, a->tst_info); in TS_RESP_print_bio()
42 int TS_STATUS_INFO_print_bio(BIO *bio, TS_STATUS_INFO *a) in TS_STATUS_INFO_print_bio() argument
76 status = ASN1_INTEGER_get(a->status); in TS_STATUS_INFO_print_bio()
83 for (i = 0; i < sk_ASN1_UTF8STRING_num(a->text); ++i) { in TS_STATUS_INFO_print_bio()
86 ASN1_STRING_print_ex(bio, sk_ASN1_UTF8STRING_value(a->text, i), 0); in TS_STATUS_INFO_print_bio()
93 if (a->failure_info != NULL) in TS_STATUS_INFO_print_bio()
94 lines = ts_status_map_print(bio, failure_map, a->failure_info); in TS_STATUS_INFO_print_bio()
102 static int ts_status_map_print(BIO *bio, const struct status_map_st *a, in ts_status_map_print() argument
107 for (; a->bit >= 0; ++a) { in ts_status_map_print()
108 if (ASN1_BIT_STRING_get_bit(v, a->bit)) { in ts_status_map_print()
111 BIO_printf(bio, "%s", a->text); in ts_status_map_print()
118 int TS_TST_INFO_print_bio(BIO *bio, TS_TST_INFO *a) in TS_TST_INFO_print_bio() argument
122 if (a == NULL) in TS_TST_INFO_print_bio()
125 v = ASN1_INTEGER_get(a->version); in TS_TST_INFO_print_bio()
129 TS_OBJ_print_bio(bio, a->policy_id); in TS_TST_INFO_print_bio()
131 TS_MSG_IMPRINT_print_bio(bio, a->msg_imprint); in TS_TST_INFO_print_bio()
134 if (a->serial == NULL) in TS_TST_INFO_print_bio()
137 TS_ASN1_INTEGER_print_bio(bio, a->serial); in TS_TST_INFO_print_bio()
141 ASN1_GENERALIZEDTIME_print(bio, a->time); in TS_TST_INFO_print_bio()
145 if (a->accuracy == NULL) in TS_TST_INFO_print_bio()
148 ts_ACCURACY_print_bio(bio, a->accuracy); in TS_TST_INFO_print_bio()
151 BIO_printf(bio, "Ordering: %s\n", a->ordering ? "yes" : "no"); in TS_TST_INFO_print_bio()
154 if (a->nonce == NULL) in TS_TST_INFO_print_bio()
157 TS_ASN1_INTEGER_print_bio(bio, a->nonce); in TS_TST_INFO_print_bio()
161 if (a->tsa == NULL) in TS_TST_INFO_print_bio()
165 if ((nval = i2v_GENERAL_NAME(NULL, a->tsa, NULL))) in TS_TST_INFO_print_bio()
171 TS_ext_print_bio(bio, a->extensions); in TS_TST_INFO_print_bio()
176 static int ts_ACCURACY_print_bio(BIO *bio, const TS_ACCURACY *a) in ts_ACCURACY_print_bio() argument
178 if (a->seconds != NULL) in ts_ACCURACY_print_bio()
179 TS_ASN1_INTEGER_print_bio(bio, a->seconds); in ts_ACCURACY_print_bio()
183 if (a->millis != NULL) in ts_ACCURACY_print_bio()
184 TS_ASN1_INTEGER_print_bio(bio, a->millis); in ts_ACCURACY_print_bio()
188 if (a->micros != NULL) in ts_ACCURACY_print_bio()
189 TS_ASN1_INTEGER_print_bio(bio, a->micros); in ts_ACCURACY_print_bio()