Lines Matching refs:data
659 char *data = fdevent_load_file(fn, &dlen, errh, malloc, free); in mod_wolfssl_load_pem_file() local
660 if (NULL == data) return NULL; in mod_wolfssl_load_pem_file()
666 char *b = data; in mod_wolfssl_load_pem_file()
669 b = data; in mod_wolfssl_load_pem_file()
675 if (NULL == strstr(data, "-----")) { in mod_wolfssl_load_pem_file()
680 buffer_copy_string_len(certs[0], data, dlen); in mod_wolfssl_load_pem_file()
692 for (char *e = data; (b = strstr(e, PEM_BEGIN_CERT)); ++i) { in mod_wolfssl_load_pem_file()
705 for (char *e = data; (b = strstr(e, PEM_BEGIN_TRUSTED_CERT)); ++i) { in mod_wolfssl_load_pem_file()
724 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_load_pem_file()
725 free(data); in mod_wolfssl_load_pem_file()
748 char *data = fdevent_load_file(fn, &dlen, errh, malloc, free); in mod_wolfssl_evp_pkey_load_pem_file() local
749 if (NULL == data) return NULL; in mod_wolfssl_evp_pkey_load_pem_file()
756 if ((b = strstr(data, PEM_BEGIN_PKEY)) in mod_wolfssl_evp_pkey_load_pem_file()
759 else if ((b = strstr(data, PEM_BEGIN_EC_PKEY)) in mod_wolfssl_evp_pkey_load_pem_file()
762 else if ((b = strstr(data, PEM_BEGIN_RSA_PKEY)) in mod_wolfssl_evp_pkey_load_pem_file()
765 else if ((b = strstr(data, PEM_BEGIN_DSA_PKEY)) in mod_wolfssl_evp_pkey_load_pem_file()
768 else if ((b = strstr(data, PEM_BEGIN_ANY_PKEY)) in mod_wolfssl_evp_pkey_load_pem_file()
771 else if (NULL == strstr(data, "-----")) { in mod_wolfssl_evp_pkey_load_pem_file()
774 buffer_copy_string_len(pkey, data, dlen); in mod_wolfssl_evp_pkey_load_pem_file()
790 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_evp_pkey_load_pem_file()
791 free(data); in mod_wolfssl_evp_pkey_load_pem_file()
813 char *data = fdevent_load_file(fn, &dlen, errh, malloc, free); in mod_wolfssl_CTX_use_certificate_chain_file() local
814 if (NULL == data) return -1; in mod_wolfssl_CTX_use_certificate_chain_file()
816 int rc = (NULL != strstr(data, "-----")) in mod_wolfssl_CTX_use_certificate_chain_file()
817 ? wolfSSL_CTX_use_certificate_chain_buffer(ssl_ctx, (unsigned char *)data, in mod_wolfssl_CTX_use_certificate_chain_file()
820 (unsigned char *)data, in mod_wolfssl_CTX_use_certificate_chain_file()
824 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_CTX_use_certificate_chain_file()
825 free(data); in mod_wolfssl_CTX_use_certificate_chain_file()
957 char *data = fdevent_load_file(fn, &dlen, srv->errh, malloc, free); in mod_wolfssl_load_cacrls() local
958 if (NULL == data) return 0; in mod_wolfssl_load_cacrls()
960 rc = wolfSSL_CTX_LoadCRLBuffer(ssl_ctx, (byte *)data, (long)dlen, in mod_wolfssl_load_cacrls()
963 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_load_cacrls()
964 free(data); in mod_wolfssl_load_cacrls()
986 char *data = fdevent_load_file(fn, &dlen, srv->errh, malloc, free); in mod_wolfssl_load_verify_locn() local
987 if (NULL == data) return 0; in mod_wolfssl_load_verify_locn()
989 int rc = wolfSSL_CTX_load_verify_buffer(ssl_ctx, (unsigned char *)data, in mod_wolfssl_load_verify_locn()
992 if (dlen) ck_memzero(data, dlen); in mod_wolfssl_load_verify_locn()
993 free(data); in mod_wolfssl_load_verify_locn()
1010 const buffer *b = &((data_string *)p->cafiles->data[i])->value; in mod_wolfssl_load_ca_files()
1413 char *data = fdevent_load_file(file, &dlen, errh, malloc, free); in mod_openssl_load_stapling_file() local
1414 if (NULL == data) return NULL; in mod_openssl_load_stapling_file()
1420 b->ptr = data; in mod_openssl_load_stapling_file()
1971 char *data = fdevent_load_file(fn, &dlen, srv->errh, malloc, free); in mod_openssl_ssl_conf_dhparameters() local
1972 int rc = (NULL != data) ? 0 : -1; in mod_openssl_ssl_conf_dhparameters()
1974 wolfSSL_CTX_SetTmpDH_buffer(s->ssl_ctx, (unsigned char *)data, in mod_openssl_ssl_conf_dhparameters()
1976 if (dlen) ck_memzero(data, dlen); in mod_openssl_ssl_conf_dhparameters()
1977 free(data); in mod_openssl_ssl_conf_dhparameters()
2742 char *data = local_send_buffer; in connection_write_cq_ssl() local
2748 if (0 != chunkqueue_peek_data(cq, &data, &data_len, errh)) return -1; in connection_write_cq_ssl()
2764 wr = SSL_write(ssl, data, data_len); in connection_write_cq_ssl()
3203 (const char*)X509_NAME_ENTRY_get_data(xe)->data, in https_add_ssl_client_subject()
3461 data_string *ds = (data_string *)s->ssl_conf_cmd->data[i]; in mod_openssl_ssl_conf_cmd()