ngx_openssl_create_conf

ngx_openssl_create_conf

声明在 src\event\ngx_event_openssl.c

复制代码
static void *ngx_openssl_create_conf(ngx_cycle_t *cycle);

定义在 src\event\ngx_event_openssl.c

复制代码
static void *
ngx_openssl_create_conf(ngx_cycle_t *cycle)
{
    ngx_openssl_conf_t  *oscf;

    oscf = ngx_pcalloc(cycle->pool, sizeof(ngx_openssl_conf_t));
    if (oscf == NULL) {
        return NULL;
    }

    /*
     * set by ngx_pcalloc():
     *
     *     oscf->engine = 0;
     */

    return oscf;
}

就是从内存池中分配一个 ngx_openssl_conf_t 结构体大小的内存,然后返回内存地址

ngx_openssl_conf_t -CSDN博客

相关推荐
游戏开发爱好者81 小时前
Nginx HTTPS 深入实战 配置、性能与排查全流程(Nginx https
运维·nginx·ios·小程序·https·uni-app·iphone
新手小白*2 小时前
Nginx反向代理与缓存功能-第一章
运维·nginx
chen_note3 小时前
LVS集群
nginx·lvs·haproxy·ipvsadm·lvs四种模式
Yyyy4823 小时前
LVS、Nginx、HAProxy 的区别
运维·nginx·lvs
AAA修煤气灶刘哥3 小时前
Nginx 为什么这么强?10 万并发压不垮,这 3 个黑科技藏不住了!
后端·nginx·架构
eddy-原3 小时前
Nginx高并发原理与Tomcat实战全解析:从IO模型到HTTPS配置与故障排查(第七周)
nginx·https·tomcat
岁岁种桃花儿14 小时前
详解 Kubernetes 命令:kubectl exec -it nginx -- bash 及实战场景
运维·nginx·kubernetes
VueVirtuoso14 小时前
前后端部署 + Nginx 配置 + Cloudflare 全攻略(通俗易懂版)
运维·nginx
小白银子14 小时前
零基础从头教学Linux(Day 42)
linux·运维·服务器·网络·nginx
初学者_xuan15 小时前
零基础新手小白快速了解掌握服务集群与自动化运维(七)Nginx模块--Nginx反向代理与缓存功能(二)
运维·nginx·自动化