Lines Matching refs:si
31 int ossl_cmp_pkisi_get_status(const OSSL_CMP_PKISI *si) in ossl_cmp_pkisi_get_status() argument
35 if (!ossl_assert(si != NULL && si->status != NULL)) in ossl_cmp_pkisi_get_status()
37 res = ossl_cmp_asn1_get_int(si->status); in ossl_cmp_pkisi_get_status()
65 OSSL_CMP_PKIFREETEXT *ossl_cmp_pkisi_get0_statusString(const OSSL_CMP_PKISI *si) in ossl_cmp_pkisi_get0_statusString() argument
67 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get0_statusString()
69 return si->statusString; in ossl_cmp_pkisi_get0_statusString()
72 int ossl_cmp_pkisi_get_pkifailureinfo(const OSSL_CMP_PKISI *si) in ossl_cmp_pkisi_get_pkifailureinfo() argument
77 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get_pkifailureinfo()
79 if (si->failInfo != NULL) in ossl_cmp_pkisi_get_pkifailureinfo()
81 if (ASN1_BIT_STRING_get_bit(si->failInfo, i)) in ossl_cmp_pkisi_get_pkifailureinfo()
152 int ossl_cmp_pkisi_check_pkifailureinfo(const OSSL_CMP_PKISI *si, int bit_index) in ossl_cmp_pkisi_check_pkifailureinfo() argument
154 if (!ossl_assert(si != NULL && si->failInfo != NULL)) in ossl_cmp_pkisi_check_pkifailureinfo()
161 return ASN1_BIT_STRING_get_bit(si->failInfo, bit_index); in ossl_cmp_pkisi_check_pkifailureinfo()
281 OSSL_CMP_PKISI *si = OSSL_CMP_PKISI_new(); in OSSL_CMP_STATUSINFO_new() local
285 if (si == NULL) in OSSL_CMP_STATUSINFO_new()
287 if (!ASN1_INTEGER_set(si->status, status)) in OSSL_CMP_STATUSINFO_new()
294 if ((si->statusString = sk_ASN1_UTF8STRING_new_null()) == NULL) in OSSL_CMP_STATUSINFO_new()
296 if (!sk_ASN1_UTF8STRING_push(si->statusString, utf8_text)) in OSSL_CMP_STATUSINFO_new()
304 if (si->failInfo == NULL in OSSL_CMP_STATUSINFO_new()
305 && (si->failInfo = ASN1_BIT_STRING_new()) == NULL) in OSSL_CMP_STATUSINFO_new()
307 if (!ASN1_BIT_STRING_set_bit(si->failInfo, failure, 1)) in OSSL_CMP_STATUSINFO_new()
311 return si; in OSSL_CMP_STATUSINFO_new()
314 OSSL_CMP_PKISI_free(si); in OSSL_CMP_STATUSINFO_new()