Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 63) sorted by relevance

123

/lighttpd1.4/src/
H A Dmod_gnutls.c784 int rc; in mod_gnutls_verify_set_tlist() local
853 int rc; in mod_gnutls_verify_cb() local
859 if (rc < 0) return rc; in mod_gnutls_verify_cb()
877 if (rc < 0) return rc; in mod_gnutls_verify_cb()
1074 if (rc < 0) return rc; in mod_gnutls_crt_must_staple()
1078 if (rc < 0) return rc; in mod_gnutls_crt_must_staple()
1096 if (rc < 0) return rc; in mod_gnutls_crt_must_staple()
1098 if (rc < 0) return rc; in mod_gnutls_crt_must_staple()
1120 if (rc < 0) return rc; in mod_gnutls_construct_crt_chain()
1602 if (rc < 0) return rc; in mod_gnutls_client_hello_hook()
[all …]
H A Dhttp_cgi.c126 int rc = 0; in http_cgi_headers() local
139 rc |= cb(vdata, CONST_STR_LEN("QUERY_STRING"), in http_cgi_headers()
156 rc |= cb(vdata, CONST_STR_LEN("REDIRECT_URI"), in http_cgi_headers()
171 rc |= cb(vdata, CONST_STR_LEN("SCRIPT_NAME"), in http_cgi_headers()
174 rc |= cb(vdata, CONST_STR_LEN("PATH_INFO"), in http_cgi_headers()
244 rc |= cb(vdata, CONST_STR_LEN("REQUEST_SCHEME"), in http_cgi_headers()
308 rc |= cb(vdata, CONST_STR_LEN("REMOTE_ADDR"), in http_cgi_headers()
311 rc |= cb(vdata, CONST_STR_LEN("REMOTE_PORT"), buf, in http_cgi_headers()
328 rc |= cb(vdata, BUF_PTR_LEN(tb), in http_cgi_headers()
339 rc |= cb(vdata, BUF_PTR_LEN(tb), in http_cgi_headers()
[all …]
H A Dmod_mbedtls.c334 rc = 1; in mod_mbedtls_session_ticket_key_file()
338 return rc; in mod_mbedtls_session_ticket_key_file()
860 return rc; in mod_mbedtls_x509_crl_parse_file()
948 return rc; in mod_mbedtls_x509_crt_parse_acme()
967 return rc; in mod_mbedtls_x509_crt_parse_file()
994 return rc; in mod_mbedtls_pk_parse_keyfile()
1003 int rc; in network_mbedtls_load_pemfile() local
1286 if (0 != rc) return rc; in mod_mbedtls_cert_cb()
1295 if (0 != rc) return rc; in mod_mbedtls_cert_cb()
1306 if (0 != rc) return rc; in mod_mbedtls_cert_cb()
[all …]
H A Dck.c138 errno_t rc = 0; in ck_memclear_s()
141 rc = EINVAL; in ck_memclear_s()
146 rc = EOVERFLOW; in ck_memclear_s()
162 return rc; in ck_memclear_s()
369 int rc; in ck_backtrace() local
379 if (0 != rc) goto error; in ck_backtrace()
388 if (0 != rc) break; in ck_backtrace()
397 if (0 != rc) break; in ck_backtrace()
401 if (0 != rc) { in ck_backtrace()
402 switch (-rc) { in ck_backtrace()
[all …]
H A Dmod_echo.c74 handler_t rc = mod_echo_request_body(r); in SUBREQUEST_FUNC() local
75 if (rc != HANDLER_WAIT_FOR_EVENT) return rc; in SUBREQUEST_FUNC()
87 rc = r->con->reqbody_read(r); in SUBREQUEST_FUNC()
88 if (rc != HANDLER_GO_ON) return rc; in SUBREQUEST_FUNC()
104 handler_t rc = r->con->reqbody_read(r); in SUBREQUEST_FUNC() local
105 if (rc != HANDLER_GO_ON) return rc; in SUBREQUEST_FUNC()
H A Dmod_authn_pam.c147 int rc; in mod_authn_pam_query() local
154 rc = pam_start(p->conf.service, username->ptr, &conv, &pamh); in mod_authn_pam_query()
155 if (PAM_SUCCESS != rc in mod_authn_pam_query()
156 || PAM_SUCCESS !=(rc = pam_set_item(pamh, PAM_RHOST, addrstr)) in mod_authn_pam_query()
157 || PAM_SUCCESS !=(rc = pam_authenticate(pamh, flags)) in mod_authn_pam_query()
158 || PAM_SUCCESS !=(rc = pam_acct_mgmt(pamh, flags))) in mod_authn_pam_query()
160 "pam: %s", pam_strerror(pamh, rc)); in mod_authn_pam_query()
161 pam_end(pamh, rc); in mod_authn_pam_query()
162 return (PAM_SUCCESS == rc) ? HANDLER_GO_ON : HANDLER_ERROR; in mod_authn_pam_query()
167 handler_t rc = mod_authn_pam_query(r, p_d, username, realm, pw); in mod_authn_pam_basic() local
[all …]
H A Dmod_authn_file.c295 return rc; in mod_authn_file_htdigest_get()
346 int rc = -1; in mod_authn_file_htpasswd_get() local
387 rc = 0; in mod_authn_file_htpasswd_get()
394 return rc; in mod_authn_file_htpasswd_get()
421 if (0 == rc) { in mod_authn_file_plain_basic()
613 int rc = -1; in mod_authn_file_crypt_cmp() local
690 return rc; in mod_authn_file_crypt_cmp()
704 rc = -1; in mod_authn_file_htpasswd_basic()
709 rc = SHA_DIGEST_LENGTH in mod_authn_file_htpasswd_basic()
714 rc = !rc; /* (0 == rc) for match */ in mod_authn_file_htpasswd_basic()
[all …]
H A Dnetwork_write.c134 const int rc = (wr == toSend && *p_max_bytes > 0) ? 0 : -3; in network_write_accounting() local
136 return rc; in network_write_accounting()
408 int rc = -1; in network_write_chunkqueue_writev() local
413 rc = network_writev_mem_chunks(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
415 rc = network_write_mem_chunk(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
420 rc = network_write_file_chunk_mmap(fd, cq, &max_bytes, errh); in network_write_chunkqueue_writev()
427 if (__builtin_expect( (0 != rc), 0)) return (-3 == rc) ? 0 : rc; in network_write_chunkqueue_writev()
436 int rc = -1; in network_write_chunkqueue_sendfile() local
441 rc = network_writev_mem_chunks(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
443 rc = network_write_mem_chunk(fd, cq, &max_bytes, errh); in network_write_chunkqueue_sendfile()
[all …]
H A Dsys-crypto-md.h171 return (0 == rc); in MD4_Final()
203 return (0 == rc); in MD5_Final()
239 return (0 == rc); in SHA1_Final()
275 return (0 == rc); in SHA256_Final()
311 return (0 == rc); in SHA512_Final()
520 return (1 == rc); in EVP_MD4_Final()
547 return (1 == rc); in EVP_MD5_Final()
574 return (1 == rc); in EVP_SHA1_Final()
601 return (1 == rc); in EVP_SHA256_Final()
628 return (1 == rc); in EVP_SHA512_256_Final()
[all …]
H A Dresponse.c391 handler_t rc; in http_response_prepare() local
404 rc = http_response_config(r); in http_response_prepare()
405 if (HANDLER_GO_ON != rc) return rc; in http_response_prepare()
437 if (HANDLER_GO_ON != rc) return rc; in http_response_prepare()
458 if (HANDLER_GO_ON != rc) return rc; in http_response_prepare()
506 if (HANDLER_GO_ON != rc) return rc; in http_response_prepare()
531 if (HANDLER_GO_ON != rc) return rc; in http_response_prepare()
549 if (HANDLER_GO_ON != rc) return rc; in http_response_prepare()
971 int rc; in http_response_handler() local
979 switch (rc) { in http_response_handler()
[all …]
H A Dmod_authn_sasl.c265 int rc; in mod_authn_sasl_query() local
271 rc = sasl_server_init(cb, NULL); in mod_authn_sasl_query()
272 if (SASL_OK != rc) return HANDLER_ERROR; in mod_authn_sasl_query()
276 rc = sasl_server_new(p->conf.service, p->conf.fqdn, in mod_authn_sasl_query()
278 if (SASL_OK == rc) { in mod_authn_sasl_query()
279 rc = sasl_checkpass(sc, BUF_PTR_LEN(username), pw, strlen(pw)); in mod_authn_sasl_query()
283 return (SASL_OK == rc) ? HANDLER_GO_ON : HANDLER_ERROR; in mod_authn_sasl_query()
288 handler_t rc = mod_authn_sasl_query(r, p_d, username, realm, pw); in mod_authn_sasl_basic() local
289 if (HANDLER_GO_ON != rc) return rc; in mod_authn_sasl_basic()
H A Dmod_deflate.c360 return rc; in mod_deflate_cache_file_finish()
942 int rc = 0; in stream_deflate_flush() local
950 if (rc == Z_OK) { in stream_deflate_flush()
981 if (Z_OK == rc || Z_DATA_ERROR == rc) return 0; in stream_deflate_end()
1057 int rc; in stream_bzip2_flush() local
1096 if (BZ_OK == rc || BZ_DATA_ERROR == rc) return 0; in stream_bzip2_end()
1422 return rc; in deflate_compress_cleanup()
1882 handler_t rc; in REQUEST_FUNC() local
2103 return rc; in REQUEST_FUNC()
2124 return rc; in REQUEST_FUNC()
[all …]
H A Dmod_wolfssl.c413 rc = 1; in mod_openssl_session_ticket_key_file()
417 return rc; in mod_openssl_session_ticket_key_file()
663 int rc = -1; in mod_wolfssl_load_pem_file() local
752 int rc = -1; in mod_wolfssl_evp_pkey_load_pem_file() local
787 rc = 0; in mod_wolfssl_evp_pkey_load_pem_file()
1370 return rc; in network_ssl_servername_callback()
1596 int rc = 0; in mod_openssl_crt_must_staple()
1803 return rc; in mod_openssl_acme_tls_1()
2467 return rc; in mod_openssl_set_defaults_sockets()
3453 int rc = 0; in mod_openssl_ssl_conf_cmd() local
[all …]
H A Dsock_addr.c392 if (0 != rc) { in sock_addr_nameinfo_append_buffer()
395 gai_strerror(rc)); in sock_addr_nameinfo_append_buffer()
409 if (0 != rc) { in sock_addr_nameinfo_append_buffer()
412 gai_strerror(rc)); in sock_addr_nameinfo_append_buffer()
447 int rc; in sock_addr_from_str_hints() local
453 if (0 != (rc = getaddrinfo(str, NULL, &hints, &res))) { in sock_addr_from_str_hints()
486 int rc; in sock_addr_from_str_hints() local
494 if (0 != (rc = getaddrinfo(str, NULL, &hints, &res))) { in sock_addr_from_str_hints()
498 EAI_ADDRFAMILY == rc && in sock_addr_from_str_hints()
536 int rc; in sock_addr_from_str_hints() local
[all …]
H A Dalgo_hmac.c52 int rc = (1 == EVP_DigestSignInit(ctx, NULL, evp_md, NULL, pkey)) in EVP_HMAC() local
57 return (1 == rc) ? md : NULL; in EVP_HMAC()
127 int rc = HMAC_Finish(hmac, digest, &dlen, SHA_DIGEST_LENGTH); in li_hmac_sha1()
129 return (SECSuccess == rc); in li_hmac_sha1()
203 int rc = HMAC_Finish(hmac, digest, &dlen, SHA256_DIGEST_LENGTH); in li_hmac_sha256()
205 return (SECSuccess == rc); in li_hmac_sha256()
279 int rc = HMAC_Finish(hmac, digest, &dlen, SHA512_DIGEST_LENGTH); in li_hmac_sha512()
281 return (SECSuccess == rc); in li_hmac_sha512()
H A Dnetwork.c677 int rc = 0; in network_socket_activation_nfds() local
688 if (0 != rc) break; in network_socket_activation_nfds()
694 return rc; in network_socket_activation_nfds()
715 return rc; in network_socket_activation_from_env()
784 int rc = 0; in network_init() local
792 if (0 != rc) break; in network_init()
807 if (0 != rc) break; in network_init()
831 if (0 != rc) break; in network_init()
842 if (0 != rc) break; in network_init()
868 if (0 != rc) break; in network_init()
[all …]
H A Dconfigfile-glue.c134 rc = 0; in config_plugin_values_init_block()
144 rc = 0; in config_plugin_values_init_block()
154 rc = 0; in config_plugin_values_init_block()
190 rc = 0; in config_plugin_values_init_block()
218 rc = 0; in config_plugin_values_init_block()
225 rc = 0; in config_plugin_values_init_block()
246 rc = 0; in config_plugin_values_init_block()
253 rc = 0; in config_plugin_values_init_block()
290 return rc; in config_plugin_values_init_block()
366 rc = 0; in config_plugin_values_init()
[all …]
H A Dmod_authn_dbi.c347 int rc = (crypwlen == userpwlen) ? memcmp(crypted, userpw, crypwlen) : -1; in mod_authn_crypt_cmp() local
349 return rc; in mod_authn_crypt_cmp()
373 int rc = (crypwlen == userpwlen) ? memcmp(crypted, userpw, crypwlen) : -1; in mod_authn_crypt_cmp()
382 return rc; in mod_authn_crypt_cmp()
523 handler_t rc = HANDLER_ERROR; in mod_authn_dbi_query() local
533 rc = HANDLER_GO_ON; in mod_authn_dbi_query()
539 rc = HANDLER_GO_ON; in mod_authn_dbi_query()
558 return rc; in mod_authn_dbi_query()
565 handler_t rc; in mod_authn_dbi_basic() local
574 rc = mod_authn_dbi_query(r, p_d, &ai, pw); in mod_authn_dbi_basic()
[all …]
H A Dhttp_chunk.c136 int rc = (0 != sz) ? http_chunk_append_read_fd_range(r,fn,fd,0,sz) : 0; in http_chunk_append_file_fd() local
138 return rc; in http_chunk_append_file_fd()
151 int rc = (0 != sz) ? http_chunk_append_read_fd_range(r,fn,fd,0,sz) : 0; in http_chunk_append_file_ref() local
152 return rc; in http_chunk_append_file_ref()
217 int rc = http_chunk_append_to_tempfile(r, mem->ptr, len); in http_chunk_append_buffer() local
219 return rc; in http_chunk_append_buffer()
473 int rc = http_chunk_append_buffer(r, mem); /* might append to tmpfile */ in http_chunk_decode_append_buffer() local
475 return rc; in http_chunk_decode_append_buffer()
498 int rc = http_chunk_append_mem(r, mem, len); /*might append to tmpfile*/ in http_chunk_decode_append_mem() local
500 return rc; in http_chunk_decode_append_mem()
H A Dhttp-header-glue.c826 int rc = http_chunk_transfer_cqlen(r, cq, len); in http_response_transfer_cqlen() local
827 if (__builtin_expect( (0 != rc), 0)) in http_response_transfer_cqlen()
1191 handler_t rc = http_cgi_local_redir(r); in http_response_parse_headers() local
1192 if (rc != HANDLER_GO_ON) return rc; in http_response_parse_headers()
1226 if (__builtin_expect( (0 != rc), 0)) in http_response_parse_headers()
1250 if (rc) { in http_response_read()
1251 if (__builtin_expect( (rc > 0), 1)) in http_response_read()
1355 if (rc != HANDLER_GO_ON) return rc; in http_response_read()
1363 if (__builtin_expect( (0 != rc), 0)) { in http_response_read()
1377 if (rc != HANDLER_GO_ON) return rc; in http_response_read()
[all …]
H A Dmod_cgi.c602 if (rc != HANDLER_GO_ON) return rc; /*(unless HANDLER_GO_ON)*/ in cgi_process_rd_revents()
613 handler_t rc; in cgi_process_rd_revents() local
1090 handler_t rc = cgi_process_rd_revents(hctx, r, rd_revents); in SUBREQUEST_FUNC() local
1091 if (rc != HANDLER_GO_ON) return rc; /*(might invalidate hctx)*/ in SUBREQUEST_FUNC()
1095 handler_t rc = cgi_process_wr_revents(hctx, r, wr_revents); in SUBREQUEST_FUNC() local
1096 if (rc != HANDLER_GO_ON) return rc; /*(might invalidate hctx)*/ in SUBREQUEST_FUNC()
1106 if (rc != HANDLER_GO_ON) return rc; /*(unless HANDLER_GO_ON)*/ in SUBREQUEST_FUNC()
1121 handler_t rc = r->con->reqbody_read(r); in SUBREQUEST_FUNC() local
1122 if (rc != HANDLER_GO_ON in SUBREQUEST_FUNC()
1124 && rc == HANDLER_WAIT_FOR_EVENT)) in SUBREQUEST_FUNC()
[all …]
H A Dmod_nss.c463 rc = -1; in mod_nss_load_pem_file()
542 if (rc < 0) { in mod_nss_load_pem_file()
656 rc = -1; in mod_nss_load_config_crls()
713 if (rc < 0) { in mod_nss_load_config_crls()
1063 if (rc < 0) return rc; in mod_nss_reload_stapling_file()
1157 int rc; in mod_nss_crt_must_staple() local
1161 rc = 0; in mod_nss_crt_must_staple()
1302 return rc; in mod_nss_acme_tls_1()
1527 int rc = 0; in mod_nss_ssl_conf_cmd() local
1622 return rc; in mod_nss_ssl_conf_cmd()
[all …]
H A Dgw_backend.c379 int rc, status; in gw_proc_waitpid() local
388 if (-1 == rc) { in gw_proc_waitpid()
1986 if (HANDLER_FINISHED != rc && HANDLER_ERROR != rc) in gw_write_request()
2041 if (HANDLER_GO_ON != rc) return rc; in gw_write_request()
2130 if (rc != HANDLER_GO_ON) return rc; /*(unless HANDLER_GO_ON)*/ in gw_write_error()
2142 return (HANDLER_ERROR != rc) ? rc : gw_write_error(hctx, r); in gw_send_request()
2155 if (rc != HANDLER_GO_ON && rc != HANDLER_WAIT_FOR_EVENT) in gw_handle_subrequest()
2217 : (rc == HANDLER_GO_ON) ? HANDLER_WAIT_FOR_EVENT : rc; in gw_handle_subrequest()
2238 if (rc != HANDLER_GO_ON) return rc; in gw_handle_subrequest()
2247 if (HANDLER_WAIT_FOR_EVENT != rc) return rc; in gw_handle_subrequest()
[all …]
H A Dplugin.c290 handler_t rc = HANDLER_GO_ON; in plugins_call_fn_req_data() local
291 while (plfd->fn && (rc = plfd->fn(r, plfd->data)) == HANDLER_GO_ON) in plugins_call_fn_req_data()
293 return rc; in plugins_call_fn_req_data()
303 handler_t rc = HANDLER_GO_ON; in plugins_call_fn_con_data() local
304 while (plfd->fn && (rc = plfd->fn(con, plfd->data)) == HANDLER_GO_ON) in plugins_call_fn_con_data()
306 return rc; in plugins_call_fn_con_data()
314 handler_t rc = HANDLER_GO_ON; in plugins_call_fn_srv_data() local
315 while (plfd->fn && (rc = plfd->fn(srv,plfd->data)) == HANDLER_GO_ON) in plugins_call_fn_srv_data()
317 return rc; in plugins_call_fn_srv_data()
397 handler_t rc = HANDLER_GO_ON; in plugins_call_handle_waitpid() local
[all …]
/lighttpd1.4/src/t/
H A Dtest_keyvalue.c49 handler_t rc; in test_keyvalue_pcre_keyvalue_buffer_process() local
86 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process()
87 assert(HANDLER_FINISHED == rc); in test_keyvalue_pcre_keyvalue_buffer_process()
93 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process()
94 assert(HANDLER_FINISHED == rc); in test_keyvalue_pcre_keyvalue_buffer_process()
100 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process()
101 assert(HANDLER_FINISHED == rc); in test_keyvalue_pcre_keyvalue_buffer_process()
107 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process()
108 assert(HANDLER_FINISHED == rc); in test_keyvalue_pcre_keyvalue_buffer_process()
114 rc = pcre_keyvalue_buffer_process(kvb, &ctx, url, result); in test_keyvalue_pcre_keyvalue_buffer_process()
[all …]

123