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博客

相关推荐
Avan_菜菜7 天前
FRP 内网穿透完整实战:从 HTTP 映射到 HTTPS 自签代理
运维·nginx·https
ping某11 天前
为什么 Nginx 明明监听了 80,转发后端时却用了 4xxxx 端口?
后端·nginx
難釋懷13 天前
Nginx反向代理中的容错机制
运维·nginx
bloglin9999913 天前
Nginx高危漏洞CVE-2021-23017及配置样例
运维·nginx
进阶的小名13 天前
Spring Boot SSE + Nginx 配置:解决 EventSource 不实时返回、连接超时、流式响应被缓冲问题
spring boot·后端·nginx
難釋懷13 天前
Nginx获取客户端真实IP
服务器·前端·nginx
qq_谁赞成_谁反对14 天前
甲方IT的成长之路--nginx实战--2604
服务器·数据库·nginx
图灵追慕者14 天前
Nginx安裝以及配置顯示本地服務器文件夾
运维·nginx
rabbit_pro14 天前
Nginx配置维护模式
运维·nginx
楠目14 天前
Nginx 解析漏洞利用总结
nginx·网络安全