Lines Matching refs:search
3244 unsigned int search; in build_chain() local
3268 search = ctx->untrusted != NULL ? S_DOUNTRUSTED : 0; in build_chain()
3270 if (search == 0 || (ctx->param->flags & X509_V_FLAG_TRUSTED_FIRST) != 0) in build_chain()
3271 search |= S_DOTRUSTED; in build_chain()
3317 while (search != 0) { in build_chain()
3336 if ((search & S_DOTRUSTED) != 0) { in build_chain()
3338 if ((search & S_DOALTERNATE) != 0) { in build_chain()
3388 if ((search & S_DOALTERNATE) != 0) { in build_chain()
3393 search &= ~S_DOALTERNATE; in build_chain()
3456 search &= ~S_DOUNTRUSTED; in build_chain()
3471 if ((search & S_DOUNTRUSTED) == 0) { in build_chain()
3473 if ((search & S_DOALTERNATE) != 0 && --alt_untrusted > 0) in build_chain()
3476 if (!may_alternate || (search & S_DOALTERNATE) != 0 || in build_chain()
3480 search |= S_DOALTERNATE; in build_chain()
3488 if ((search & S_DOUNTRUSTED) != 0) { in build_chain()
3501 search &= ~S_DOUNTRUSTED; in build_chain()
3503 search |= S_DOTRUSTED; in build_chain()