Lines Matching defs:depth
1110 X509 *err_cert, int err, int depth,
1124 ev.cert_fail.depth = depth;
1134 X509 *err_cert, int depth,
1163 ev.peer_cert.depth = depth;
1174 int err, depth;
1182 depth = X509_STORE_CTX_get_error_depth(x509_ctx);
1195 if (!preverify_ok && depth > 0 && conn->server_cert_only)
1208 if (preverify_ok && depth == 0 && conn->server_cert_only) {
1234 " error %d (%s) depth %d for '%s'", err, err_str,
1235 depth, buf);
1236 openssl_tls_fail_event(conn, err_cert, err, depth, buf,
1242 "err=%d (%s) ca_cert_verify=%d depth=%d buf='%s'",
1244 conn->ca_cert_verify, depth, buf);
1245 if (depth == 0 && match && os_strstr(buf, match) == NULL) {
1249 openssl_tls_fail_event(conn, err_cert, err, depth, buf,
1252 } else if (depth == 0 && altmatch &&
1257 openssl_tls_fail_event(conn, err_cert, err, depth, buf,
1261 openssl_tls_cert_event(conn, err_cert, depth, buf);
1263 if (conn->cert_probe && preverify_ok && depth == 0) {
1267 openssl_tls_fail_event(conn, err_cert, err, depth, buf,