Lines Matching refs:idx
69 int idx; in X509_check_trust() local
75 idx = X509_TRUST_get_by_id(id); in X509_check_trust()
76 if (idx < 0) in X509_check_trust()
78 pt = X509_TRUST_get0(idx); in X509_check_trust()
89 X509_TRUST *X509_TRUST_get0(int idx) in X509_TRUST_get0() argument
91 if (idx < 0) in X509_TRUST_get0()
93 if (idx < (int)X509_TRUST_COUNT) in X509_TRUST_get0()
94 return trstandard + idx; in X509_TRUST_get0()
95 return sk_X509_TRUST_value(trtable, idx - X509_TRUST_COUNT); in X509_TRUST_get0()
101 int idx; in X509_TRUST_get_by_id() local
110 idx = sk_X509_TRUST_find(trtable, &tmp); in X509_TRUST_get_by_id()
111 if (idx < 0) in X509_TRUST_get_by_id()
113 return idx + X509_TRUST_COUNT; in X509_TRUST_get_by_id()
129 int idx; in X509_TRUST_add() local
138 idx = X509_TRUST_get_by_id(id); in X509_TRUST_add()
140 if (idx < 0) { in X509_TRUST_add()
145 trtmp = X509_TRUST_get0(idx); in X509_TRUST_add()
164 if (idx < 0) { in X509_TRUST_add()
177 if (idx < 0) { in X509_TRUST_add()