Lines Matching refs:depth

856 				   WOLFSSL_X509 *err_cert, int err, int depth,  in wolfssl_tls_fail_event()  argument
871 ev.cert_fail.depth = depth; in wolfssl_tls_fail_event()
881 WOLFSSL_X509 *err_cert, int depth, in wolfssl_tls_cert_event() argument
920 ev.peer_cert.depth = depth; in wolfssl_tls_cert_event()
979 int err, depth; in tls_verify_cb() local
993 depth = wolfSSL_X509_STORE_CTX_get_error_depth(x509_ctx); in tls_verify_cb()
1005 if (depth == 0) in tls_verify_cb()
1007 else if (depth == 1) in tls_verify_cb()
1009 else if (depth == 2) in tls_verify_cb()
1020 if (!preverify_ok && depth > 0 && conn->server_cert_only) in tls_verify_cb()
1038 if (depth == 0 && conn->server_cert_only) { in tls_verify_cb()
1075 err, err_str, depth, buf); in tls_verify_cb()
1076 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1084 conn->ca_cert_verify, depth, buf); in tls_verify_cb()
1085 if (depth == 0 && match && os_strstr(buf, match) == NULL) { in tls_verify_cb()
1090 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1093 } else if (depth == 0 && altmatch && in tls_verify_cb()
1099 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1102 } else if (depth == 0 && suffix_match && in tls_verify_cb()
1108 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1111 } else if (depth == 0 && domain_match && in tls_verify_cb()
1116 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1120 wolfssl_tls_cert_event(conn, err_cert, depth, buf); in tls_verify_cb()
1123 if (conn->cert_probe && preverify_ok && depth == 0) { in tls_verify_cb()
1127 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1133 if (depth == 0 && (conn->flags & TLS_CONN_REQUEST_OCSP) && in tls_verify_cb()
1142 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1151 wolfssl_tls_fail_event(conn, err_cert, err, depth, buf, in tls_verify_cb()
1157 if (depth == 0 && preverify_ok && context->event_cb != NULL) in tls_verify_cb()
1161 if (depth == 0 && preverify_ok) { in tls_verify_cb()