Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 114) sorted by relevance

12345

/lighttpd1.4/src/
H A Dmod_authn_ldap.c58 { "ldap", mod_authn_ldap_basic, NULL, NULL }; in INIT_FUNC()
79 if (NULL != s->ldap) ldap_unbind_ext_s(s->ldap, NULL, NULL); in FREE_FUNC()
231 char *binddn = NULL, *bindpw = NULL, *cafile = NULL; in SETDEFAULTS_FUNC()
495 if (NULL == s->auth_ldap_hostname) return NULL; in mod_authn_ldap_host_init()
538 ret = ldap_start_tls_s(ld, NULL, NULL); in mod_authn_ldap_host_init()
563 ret = ldap_sasl_bind_s(ld,dn,LDAP_SASL_SIMPLE,&creds,NULL,NULL,NULL); in mod_authn_ldap_bind()
596 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
603 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
609 ldap_unbind_ext_s(s->ldap, NULL, NULL); in mod_authn_ldap_search()
626 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
[all …]
H A Dmod_vhostdb_ldap.c54 if (NULL != dbconf->ldap) ldap_unbind_ext_s(dbconf->ldap, NULL, NULL); in mod_vhostdb_dbconf_free()
95 const char *basedn=NULL,*binddn=NULL,*bindpw=NULL,*host=NULL,*cafile=NULL; in mod_vhostdb_dbconf_setup()
139 && NULL != host && NULL != basedn) { in mod_vhostdb_dbconf_setup()
296 ret = ldap_start_tls_s(ld, NULL, NULL); in mod_authn_ldap_host_init()
321 ret = ldap_sasl_bind_s(ld,dn,LDAP_SASL_SIMPLE,&creds,NULL,NULL,NULL); in mod_authn_ldap_bind()
350 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
357 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
363 ldap_unbind_ext_s(s->ldap, NULL, NULL); in mod_authn_ldap_search()
380 attrs, 0, NULL, NULL, NULL, 0, &lm); in mod_authn_ldap_search()
384 ldap_unbind_ext_s(s->ldap, NULL, NULL); in mod_authn_ldap_search()
[all …]
H A Dhttp_date.c89 return NULL; in http_date_parse_RFC_850()
101 return NULL; in http_date_parse_RFC_850()
106 return NULL; in http_date_parse_RFC_850()
110 return NULL; in http_date_parse_RFC_850()
114 return NULL; in http_date_parse_RFC_850()
118 return NULL; in http_date_parse_RFC_850()
155 return NULL; in http_date_parse_asctime()
159 return NULL; in http_date_parse_asctime()
163 return NULL; in http_date_parse_asctime()
167 return NULL; in http_date_parse_asctime()
[all …]
H A Dmod_openssl.c696 for (X509 *ca; (ca = PEM_read_bio_X509_secmem(in,NULL,NULL,NULL)); ) { in mod_openssl_load_X509_sk()
716 for (X509 *ca; (ca = PEM_read_bio_X509(in,NULL,NULL,NULL)); X509_free(ca)) { in mod_openssl_load_X509_STORE()
1311 if (NULL == data) return NULL; in mod_openssl_load_pem_file()
1324 ? PEM_read_bio_X509_AUX_secmem(in, NULL, NULL, NULL) in mod_openssl_load_pem_file()
1351 if (NULL == data) return NULL; in mod_openssl_evp_pkey_load_pem_file()
1356 ? PEM_read_bio_PrivateKey(in, NULL, NULL, NULL) in mod_openssl_evp_pkey_load_pem_file()
1398 if (NULL == data) return NULL; in mod_openssl_load_stapling_file()
1552 OCSP_single_get0_status(OCSP_resp_get0(bs, 0), NULL, NULL, NULL, &nextupd); in mod_openssl_ocsp_next_update()
2077 if (p == NULL || g == NULL || !DH_set0_pqg(dh, p, NULL, g)) { in get_dh2048()
2105 dh = PEM_read_bio_DHparams(bio, NULL, NULL, NULL); in mod_openssl_ssl_conf_dhparameters()
[all …]
H A Dmod_authn_gssapi.c58 { "gssapi", mod_authn_gssapi_basic, NULL, NULL }; in INIT_FUNC()
113 ,{ NULL, 0, in SETDEFAULTS_FUNC()
157 r->handler_module = NULL; in mod_authn_gssapi_send_400_bad_request()
245 *ccache = NULL; in mod_authn_gssapi_create_krb5_ccache()
415 if (!http_auth_match_rules(require, token_out.value, NULL, NULL)) { in mod_authn_gssapi_check_spnego()
467 if (NULL == vb) { in mod_authn_gssapi_check()
550 auth_context = NULL; in mod_authn_gssapi_verify_krb5_init_creds()
716 ret = krb5_get_init_creds_password(kcontext, &c_creds, c_princ, pw, NULL, NULL, 0, NULL, NULL); in mod_authn_gssapi_basic()
749 ret_ccache = NULL; in mod_authn_gssapi_basic()
773 if (0 == ret && http_auth_match_rules(require,username->ptr,NULL,NULL)){ in mod_authn_gssapi_basic()
[all …]
H A Dmod_nss.c270 return NULL; in mod_nss_io_ctor()
277 return NULL; in mod_nss_io_ctor()
291 return NULL; in mod_nss_io_ctor()
557 if (NULL == *pchain) return NULL; in mod_nss_load_pem_crts()
604 if (NULL == crts) return NULL; in mod_nss_load_config_crts()
626 if (NULL == crts) return NULL; in mod_nss_load_config_dncrts()
1276 SSL_ConfigSecureServerWithCertChain(hctx->ssl,NULL,NULL,NULL,certType); in mod_nss_acme_tls_1()
1464 SSL_ConfigSecureServerWithCertChain(ssl, NULL, NULL, NULL, certType); in mod_nss_SNI()
1734 ,{ NULL, 0, in mod_nss_set_defaults_sockets()
1962 ,{ NULL, 0, in SETDEFAULTS_FUNC()
[all …]
H A Dconfigparser.y420 A = NULL; in key()
422 B = NULL; in key()
439 A = NULL; in key()
441 B = NULL; in key()
470 A = NULL; in key()
472 B = NULL; in key()
484 B = NULL; in key()
488 A = NULL; in expression()
497 B = NULL; in expression()
499 C = NULL; in expression()
[all …]
H A Dmod_wolfssl.c294 return NULL; in tlsext_ticket_key_get()
311 return NULL; in tlsext_ticket_key_find()
660 if (NULL == data) return NULL; in mod_wolfssl_load_pem_file()
749 if (NULL == data) return NULL; in mod_wolfssl_evp_pkey_load_pem_file()
1414 if (NULL == data) return NULL; in mod_openssl_load_stapling_file()
1479 : NULL; in mod_openssl_ocsp_next_update()
1485 OCSP_resp_find_status(bs, id, NULL, NULL, NULL, NULL, &nextupd); in mod_openssl_ocsp_next_update()
1488 OCSP_single_get0_status(OCSP_resp_get0(bs, 0), NULL, NULL, NULL, &nextupd); in mod_openssl_ocsp_next_update()
1951 if (p == NULL || g == NULL || !DH_set0_pqg(dh, p, NULL, g)) { in get_dh2048()
2280 ,{ NULL, 0, in mod_openssl_set_defaults_sockets()
[all …]
H A Dalgo_splaytree.c66 if (t == NULL) return t; in splaytree_splay()
67 N.left = N.right = NULL; in splaytree_splay()
73 if (t->left == NULL) break; in splaytree_splay()
85 if (t->right == NULL) break; in splaytree_splay()
114 if (t != NULL) { in splaytree_insert()
122 if (t == NULL) { in splaytree_insert()
123 new->left = new->right = NULL; in splaytree_insert()
127 t->left = NULL; in splaytree_insert()
131 t->right = NULL; in splaytree_insert()
142 if (t==NULL) return NULL; in splaytree_delete()
[all …]
H A Dmod_authn_sasl.c50 { "sasl", mod_authn_sasl_basic, NULL, NULL }; in INIT_FUNC()
108 const char *service = NULL; in mod_authn_sasl_parse_opts()
109 const char *fqdn = NULL; in mod_authn_sasl_parse_opts()
120 if (NULL == fqdn) { in mod_authn_sasl_parse_opts()
125 return NULL; in mod_authn_sasl_parse_opts()
133 if (NULL != ds) { in mod_authn_sasl_parse_opts()
141 return NULL; in mod_authn_sasl_parse_opts()
173 ,{ NULL, 0, in SETDEFAULTS_FUNC()
263 { SASL_CB_LIST_END, NULL, NULL } in mod_authn_sasl_query()
277 realm, NULL, NULL, cb, 0, &sc); in mod_authn_sasl_query()
[all …]
H A Dmod_authn_dbi.c77 const char *errormsg = NULL; in mod_authn_dbi_error_callback()
108 const buffer *dbtype=NULL, *dbname=NULL; in mod_authn_dbi_dbconf_setup()
142 dbi_inst dbinst = NULL; in mod_authn_dbi_dbconf_setup()
151 if (NULL == dbconn) { in mod_authn_dbi_dbconf_setup()
279 ,{ NULL, 0, in SETDEFAULTS_FUNC()
434 if (NULL == sqlb) in mod_authn_dbi_query_build()
435 return NULL; in mod_authn_dbi_query_build()
473 return NULL; in mod_authn_dbi_query_build()
476 char *esc = NULL; in mod_authn_dbi_query_build()
504 if (NULL == sqlquery) in mod_authn_dbi_query()
[all …]
H A Dmod_auth_api.c22 while (NULL != http_auth_schemes[i].name in http_auth_scheme_get()
26 return (NULL != http_auth_schemes[i].name) ? http_auth_schemes+i : NULL; in http_auth_scheme_get()
32 while (NULL != http_auth_schemes[i].name) ++i; in http_auth_scheme_set()
44 while (NULL != http_auth_backends[i].name in http_auth_backend_get()
48 return (NULL != http_auth_backends[i].name) ? http_auth_backends+i : NULL; in http_auth_backend_get()
54 while (NULL != http_auth_backends[i].name) ++i; in http_auth_backend_set()
96 if (NULL != user in http_auth_match_rules()
102 if (NULL != group in http_auth_match_rules()
107 if (NULL != host in http_auth_match_rules()
H A Dmod_vhostdb_pgsql.c48 const buffer *sqlquery = NULL; in mod_vhostdb_dbconf_setup()
49 const char *dbname=NULL, *user=NULL, *pass=NULL, *host=NULL, *port=NULL; in mod_vhostdb_dbconf_setup()
81 if (NULL != sqlquery && !buffer_is_blank(sqlquery) && NULL != dbname) { in mod_vhostdb_dbconf_setup()
83 PGconn *dbconn = PQsetdbLogin(host,port,NULL,NULL,dbname,user,pass); in mod_vhostdb_dbconf_setup()
84 if (NULL == dbconn) { in mod_vhostdb_dbconf_setup()
122 if (NULL == p->conf.vdata) return 0; /*(after resetting docroot)*/ in mod_vhostdb_pgsql_query()
126 if (NULL != (d = strchr(b, '?'))) { in mod_vhostdb_pgsql_query()
171 { "pgsql", mod_vhostdb_pgsql_query, NULL }; in INIT_FUNC()
183 if (NULL == p->cvlist) return; in FREE_FUNC()
231 ,{ NULL, 0, in SETDEFAULTS_FUNC()
[all …]
H A Dmod_rewrite.c34 if (NULL == p->cvlist) return; in FREE_FUNC()
39 pcre_keyvalue_buffer *kvb = NULL, *kvb_NF = NULL; in FREE_FUNC()
99 if (NULL == kvb) { in mod_rewrite_parse_list()
126 return NULL; in mod_rewrite_parse_list()
155 ,{ NULL, 0, in SETDEFAULTS_FUNC()
169 config_plugin_value_t *rewrite_once = NULL, *rewrite_repeat = NULL, in SETDEFAULTS_FUNC()
170 *rewrite_NF = NULL, *rewrite_repeat_NF = NULL, in SETDEFAULTS_FUNC()
171 *rewrite = NULL, *rewrite_final = NULL; in SETDEFAULTS_FUNC()
198 pcre_keyvalue_buffer *kvb = NULL, *kvb_NF = NULL; in SETDEFAULTS_FUNC()
275 r->plugin_ctx[((plugin_data *)p_d)->id] = NULL; in URIHANDLER_FUNC()
[all …]
H A Dstat_cache.c564 scf->fdn = NULL; in stat_cache_handle_fdevent()
592 return NULL; in stat_cache_init_fam()
604 return NULL; in stat_cache_init_fam()
612 return NULL; in stat_cache_init_fam()
996 return NULL; in stat_cache_mimetype_by_ext()
1078 return NULL; in stat_cache_etag_get()
1277 return NULL; in stat_cache_get_entry()
1324 sce = NULL; in stat_cache_get_entry()
1330 return NULL; in stat_cache_get_entry()
1338 return NULL; in stat_cache_get_entry()
[all …]
H A Dserver.c397 oneshot_fdn = NULL; in server_free()
469 return NULL; in server_oneshot_getsock()
558 if (NULL == ncat_local_addr || NULL == ncat_local_port) return 0; in server_oneshot_init_pipe()
559 if (NULL == ncat_remote_addr || NULL == ncat_remote_port) return 0; in server_oneshot_init_pipe()
650 if (NULL == con) return 0; in server_oneshot_init()
1561 struct group *grp = NULL; in server_main_setup()
1585 if (NULL == grp && NULL == (grp = getgrgid(pwd->pw_gid))) { in server_main_setup()
1592 if (NULL != grp) { in server_main_setup()
1604 if (NULL != grp) { in server_main_setup()
1634 if (NULL != pwd) { in server_main_setup()
[all …]
H A Dalgo_hmac.c44 if (NULL == pkey) return NULL; in EVP_HMAC()
47 if (NULL == ctx) { in EVP_HMAC()
49 return NULL; in EVP_HMAC()
52 int rc = (1 == EVP_DigestSignInit(ctx, NULL, evp_md, NULL, pkey)) in EVP_HMAC()
57 return (1 == rc) ? md : NULL; in EVP_HMAC()
106 return (NULL != HMAC(EVP_sha1(), in li_hmac_sha1()
122 if (NULL == hmac) in li_hmac_sha1()
182 return (NULL != HMAC(EVP_sha256(), in li_hmac_sha256()
198 if (NULL == hmac) in li_hmac_sha256()
258 return (NULL != HMAC(EVP_sha512(), in li_hmac_sha512()
[all …]
H A Dmod_gnutls.c512 if (d == NULL) { in mod_gnutls_load_config_crts()
514 return NULL; in mod_gnutls_load_config_crts()
516 d->data = NULL; in mod_gnutls_load_config_crts()
535 return NULL; in mod_gnutls_load_config_crts()
561 d->data = NULL; in mod_gnutls_load_config_crls()
929 || gnutls_ocsp_resp_get_single(resp, 0, NULL, NULL, NULL, NULL, NULL, in mod_gnutls_ocsp_next_update()
930 NULL, &nextupd, NULL, NULL) < 0) in mod_gnutls_ocsp_next_update()
1212 if (NULL == d) return NULL; in network_gnutls_load_pemfile()
1823 mod_gnutls_ssl_conf_proto(srv, s, NULL, NULL); in network_init_ssl()
1890 ,{ NULL, 0, in mod_gnutls_set_defaults_sockets()
[all …]
H A Dmod_vhostdb_mysql.c49 const buffer *sqlquery = NULL; in mod_vhostdb_dbconf_setup()
50 const char *dbname=NULL, *user=NULL, *pass=NULL, *host=NULL, *sock=NULL; in mod_vhostdb_dbconf_setup()
67 port = strtoul(ds->value.ptr, NULL, 10); in mod_vhostdb_dbconf_setup()
86 if (NULL != sqlquery && !buffer_is_blank(sqlquery) in mod_vhostdb_dbconf_setup()
89 MYSQL *dbconn = mysql_init(NULL); in mod_vhostdb_dbconf_setup()
90 if (NULL == dbconn) { in mod_vhostdb_dbconf_setup()
147 if (NULL != (d = strchr(b, '?'))) { in mod_vhostdb_mysql_query()
193 { "mysql", mod_vhostdb_mysql_query, NULL }; in INIT_FUNC()
205 if (NULL == p->cvlist) return; in FREE_FUNC()
253 ,{ NULL, 0, in SETDEFAULTS_FUNC()
[all …]
H A Dmod_auth.c109 ac->sptree = NULL; in http_auth_cache_init()
447 const buffer *method = NULL, *realm = NULL, *require = NULL; in mod_auth_require_parse_array()
604 ,{ NULL, 0, in SETDEFAULTS_FUNC()
685 if (NULL != vb && http_auth_match_rules(dauth->require, vb->ptr, NULL, NULL)) { in mod_auth_uri_handler()
772 if (NULL == backend || NULL == backend->basic) in mod_auth_check_basic()
804 if (NULL == pw) { in mod_auth_check_basic()
815 : NULL; in mod_auth_check_basic()
1126 : NULL; in mod_auth_digest_get()
1495 if (NULL == backend || NULL == backend->digest) in mod_auth_check_digest()
1545 if (!http_auth_match_rules(require, tb->ptr, NULL, NULL)) in mod_auth_check_digest()
[all …]
H A Dchunk.c95 if (NULL == cq) in chunkqueue_init()
99 cq->first = NULL; in chunkqueue_init()
100 cq->last = NULL; in chunkqueue_init()
115 c->next = NULL; in chunk_init()
157 return NULL; in __attribute_nonnull__()
237 return NULL; in chunk_pop_oversized()
287 c->mem = NULL; in chunk_buffer_acquire_sz()
400 chunks = NULL; in chunkqueue_chunk_pool_clear()
787 return NULL; in chunkqueue_get_append_newtempfile()
1153 ssize_t wr = splice(fd, NULL, pipes[1], NULL, len, in chunkqueue_append_splice_sock_tempfile()
[all …]
H A Darray.c73 NULL in array_data_integer_init()
103 NULL in array_data_array_init()
136 a->data = NULL; in array_free_data()
137 a->sorted = NULL; in array_free_data()
328 return NULL; in array_get_unused_element()
343 return NULL; in array_get_unused_element()
441 return NULL; in array_find_or_insert()
522 return NULL; in array_match_key_prefix_klen()
534 return NULL; in array_match_key_prefix_nc_klen()
563 return NULL; in array_match_value_prefix()
[all …]
H A Dmod_proxy.c247 return NULL; in mod_proxy_parse_header_opts()
263 return NULL; in mod_proxy_parse_header_opts()
297 ,{ NULL, 0, in SETDEFAULTS_FUNC()
425 return NULL; in http_header_remap_host_match()
511 if (NULL != m) { in http_header_remap_uri()
611 buffer *b = NULL; in proxy_set_Forwarded()
614 : NULL; in proxy_set_Forwarded()
723 : NULL; in proxy_set_Forwarded()
740 : NULL; in proxy_set_Forwarded()
887 if (NULL == vb) { in proxy_create_env()
[all …]
/lighttpd1.4/tests/
H A Dscgi-responder.c46 if (NULL == z) return NULL; in scgi_getenv()
48 if (NULL == z) return NULL; in scgi_getenv()
51 return NULL; in scgi_getenv()
59 char *p = NULL, *r; in scgi_process()
92 if (NULL == p) in scgi_process()
136 if (NULL == p || p[0] != '1' || p[1] != '\0') in scgi_process()
164 const char *cdata = NULL; in scgi_process()
189 p = NULL; in scgi_process()
194 if (NULL == p) in scgi_process()
195 cdata = NULL; in scgi_process()
[all …]
/lighttpd1.4/src/t/
H A Dtest_array.c17 assert(NULL != i); in test_array_get_int_ptr()
20 assert(NULL != i); in test_array_get_int_ptr()
23 assert(NULL == di); in test_array_get_int_ptr()
25 assert(NULL != di); in test_array_get_int_ptr()
37 assert(NULL != ds); in test_array_insert_value()
49 assert(NULL == ds); in test_array_set_key_value()
51 assert(NULL != ds); in test_array_set_key_value()
57 assert(NULL == ds); in test_array_set_key_value()
59 assert(NULL != ds); in test_array_set_key_value()

12345