Lines Matching refs:NULL
227 if (NULL == data) return GNUTLS_E_FILE_ERROR; in mod_gnutls_load_file()
239 if (NULL == d) return; in mod_gnutls_datum_wipe()
243 d->data = NULL; in mod_gnutls_datum_wipe()
341 if (0 != fdevent_load_file_bytes((char *)buf,(off_t)sizeof(buf),0,fn,NULL)) in mod_gnutls_session_ticket_key_file()
382 if (NULL == session_ticket_key.data) { in mod_gnutls_session_ticket_key_check()
384 if (NULL == session_ticket_key.data) return; in mod_gnutls_session_ticket_key_check()
462 if (NULL == d) return; in mod_gnutls_free_config_crts_data()
482 if (NULL == d) return; in mod_gnutls_free_config_crls()
506 if (!mod_gnutls_init_once_gnutls()) return NULL; in mod_gnutls_load_config_crts()
508 gnutls_datum_t f = { NULL, 0 }; in mod_gnutls_load_config_crts()
510 if (rc < 0) return NULL; in mod_gnutls_load_config_crts()
512 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()
523 d->data = NULL; in mod_gnutls_load_config_crts()
535 return NULL; in mod_gnutls_load_config_crts()
551 if (!mod_gnutls_init_once_gnutls()) return NULL; in mod_gnutls_load_config_crls()
553 gnutls_datum_t f = { NULL, 0 }; in mod_gnutls_load_config_crls()
555 if (rc < 0) return NULL; in mod_gnutls_load_config_crls()
557 if (d == NULL) { in mod_gnutls_load_config_crls()
559 return NULL; in mod_gnutls_load_config_crls()
561 d->data = NULL; in mod_gnutls_load_config_crls()
570 return NULL; in mod_gnutls_load_config_crls()
581 if (!mod_gnutls_init_once_gnutls()) return NULL; in mod_gnutls_load_config_pkey()
583 gnutls_datum_t f = { NULL, 0 }; in mod_gnutls_load_config_pkey()
585 if (rc < 0) return NULL; in mod_gnutls_load_config_pkey()
590 return NULL; in mod_gnutls_load_config_pkey()
592 rc = gnutls_privkey_import_x509_raw(pkey, &f, GNUTLS_X509_FMT_PEM, NULL, 0); in mod_gnutls_load_config_pkey()
597 GNUTLS_X509_FMT_DER,NULL,0)) in mod_gnutls_load_config_pkey()
605 return NULL; in mod_gnutls_load_config_pkey()
615 if (NULL != p->ssl_ctxs) { in mod_gnutls_free_config()
641 if (NULL == p->cvlist) return; in mod_gnutls_free_config()
676 if (NULL == p->srv) return; in FREE_FUNC()
792 if (NULL == d) { in mod_gnutls_verify_set_tlist()
800 gnutls_x509_trust_list_t tlist = NULL; in mod_gnutls_verify_set_tlist()
818 if (NULL != d && req && hctx->conf.ssl_ca_dn_file) { in mod_gnutls_verify_set_tlist()
837 if (NULL == hctx->conf.ssl_ca_dn_file) in mod_gnutls_verify_set_tlist()
889 gnutls_x509_crt_t crt = NULL; in mod_gnutls_verify_cb()
921 gnutls_datum_t f = { NULL, 0 }; in mod_gnutls_ocsp_next_update()
925 gnutls_ocsp_resp_t resp = NULL; in mod_gnutls_ocsp_next_update()
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()
1040 if (NULL == p->cvlist) return; in mod_gnutls_refresh_stapling_files()
1070 rc = gnutls_x509_crt_get_extension_info(crt, i, oid, &oidsz, NULL); in mod_gnutls_crt_must_staple()
1076 gnutls_datum_t der = { NULL, 0 }; in mod_gnutls_crt_must_staple()
1125 if (NULL == pcert_list) { in mod_gnutls_construct_crt_chain()
1154 rc = gnutls_certificate_set_key(ssl_cred, NULL, 0, pcert_list, ncrt, in mod_gnutls_construct_crt_chain()
1170 pc->ssl_pemfile_pkey = NULL; in mod_gnutls_construct_crt_chain()
1175 pc->ssl_pemfile_x509 = NULL; in mod_gnutls_construct_crt_chain()
1186 gnutls_certificate_credentials_t ssl_cred = NULL; in network_gnutls_load_pemfile()
1190 if (rc < 0) return NULL; in network_gnutls_load_pemfile()
1194 GNUTLS_X509_FMT_PEM, NULL, 0); in network_gnutls_load_pemfile()
1200 return NULL; in network_gnutls_load_pemfile()
1212 if (NULL == d) return NULL; in network_gnutls_load_pemfile()
1215 return NULL; in network_gnutls_load_pemfile()
1219 if (NULL == pkey) { in network_gnutls_load_pemfile()
1221 return NULL; in network_gnutls_load_pemfile()
1225 pc->ssl_cred = NULL; in network_gnutls_load_pemfile()
1241 return NULL; in network_gnutls_load_pemfile()
1285 if (NULL != strchr(name->ptr, '/')) return rc; in mod_gnutls_acme_tls_1()
1301 gnutls_certificate_credentials_t ssl_cred = NULL; in mod_gnutls_acme_tls_1()
1306 GNUTLS_X509_FMT_PEM, NULL, 0); in mod_gnutls_acme_tls_1()
1328 if (NULL == d) return GNUTLS_E_FILE_ERROR; in mod_gnutls_acme_tls_1()
1338 if (NULL == pkey) { in mod_gnutls_acme_tls_1()
1344 pc.ssl_cred = NULL; in mod_gnutls_acme_tls_1()
1422 if (hctx->r->handler_module == NULL)/*(e.g. not mod_sockproxy)*/ in mod_gnutls_ALPN()
1542 void *existing_cred = NULL; in mod_gnutls_client_hello_hook()
1598 if (NULL == hctx->conf.pc->ssl_cred) { in mod_gnutls_client_hello_hook()
1668 buffer *cipherstring = NULL; in mod_gnutls_ssl_conf_cmd()
1669 buffer *ciphersuites = NULL; in mod_gnutls_ssl_conf_cmd()
1670 buffer *minb = NULL; in mod_gnutls_ssl_conf_cmd()
1671 buffer *maxb = NULL; in mod_gnutls_ssl_conf_cmd()
1672 buffer *curves = NULL; in mod_gnutls_ssl_conf_cmd()
1799 if (!mod_gnutls_ssl_conf_ciphersuites(srv,s,NULL,s->ssl_cipher_list)) in network_init_ssl()
1805 if (!mod_gnutls_ssl_conf_dhparameters(srv, s, NULL)) in network_init_ssl()
1822 if (NULL == strstr(s->priority_str.ptr, "-VERS-ALL:")) in network_init_ssl()
1823 mod_gnutls_ssl_conf_proto(srv, s, NULL, NULL); in network_init_ssl()
1836 if (NULL == s->priority_base) s->priority_base = "NORMAL"; in network_init_ssl()
1848 s->ssl_session_ticket = (NULL == strstr(b->ptr, "%NO_TICKET")); in network_init_ssl()
1890 ,{ NULL, 0, in mod_gnutls_set_defaults_sockets()
2004 if (NULL == conf.pc) { in mod_gnutls_set_defaults_sockets()
2014 && NULL == p->ssl_ctxs[0].priority_cache)) { in mod_gnutls_set_defaults_sockets()
2126 ,{ NULL, 0, in SETDEFAULTS_FUNC()
2140 config_plugin_value_t *pemfile = NULL; in SETDEFAULTS_FUNC()
2141 config_plugin_value_t *privkey = NULL; in SETDEFAULTS_FUNC()
2142 const buffer *ssl_stapling_file = NULL; in SETDEFAULTS_FUNC()
2162 if (d != NULL) { in SETDEFAULTS_FUNC()
2180 if (d != NULL) { in SETDEFAULTS_FUNC()
2207 cpv->v.b = NULL; in SETDEFAULTS_FUNC()
2213 cpv->v.b = NULL; in SETDEFAULTS_FUNC()
2232 if (NULL == privkey) privkey = pemfile; in SETDEFAULTS_FUNC()
2378 int wr = gnutls_record_send(ssl, NULL, 0); in connection_write_cq_ssl()
2463 int wr = gnutls_record_send(hctx->ssl, NULL, 0); in connection_write_cq_ssl_ktls()
2559 char *mem = NULL; in connection_read_cq_ssl()
2682 if (NULL == hctx) return HANDLER_GO_ON; in CONNECTION_FUNC()
2724 if (NULL != hctx) { in CONNECTION_FUNC()
2725 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
2803 gnutls_datum_t msg = { NULL, 0 }; in https_add_ssl_client_verify_err()
2807 for (char *nl=(char *)msg.data; NULL != (nl=strchr(nl, '\n')); ++nl) in https_add_ssl_client_verify_err()
2825 const gnutls_datum_t *crts = NULL; in https_add_ssl_client_entries()
2853 gnutls_datum_t d = { NULL, 0 }; in https_add_ssl_client_entries()
2899 if (hctx->conf.ssl_verifyclient_export_cert && NULL != crt) in https_add_ssl_client_entries()
2944 if (NULL == hctx) return HANDLER_GO_ON; in REQUEST_FUNC()
2967 if (NULL == hctx) return HANDLER_GO_ON; in REQUEST_FUNC()
2981 r->plugin_ctx[p->id] = NULL; /* simple flag for request_env_patched */ in REQUEST_FUNC()
3364 gnutls_datum_t f = { NULL, 0 }; in mod_gnutls_ssl_conf_dhparameters()
3452 if (NULL == b) /* default: min TLSv1.2, max TLSv1.3 */ in mod_gnutls_ssl_conf_proto_val()