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

相关推荐
.柒宇.10 小时前
nginx入门教程
运维·nginx
如来神掌十八式21 小时前
nginx + spring gateway+spring 服务_nginx 转发到 gateway
nginx·spring·gateway
hotlinhao21 小时前
Nginx rewrite last 与 redirect 的区别——Vue history 模式短链接踩坑记录
前端·vue.js·nginx
tryCbest2 天前
Nginx常用操作命令-Linux和Windows系统
linux·windows·nginx
難釋懷2 天前
Nginx实现本地缓存查询
nginx·spring·缓存
ZzzZZzzzZZZzzzz…2 天前
Nginx 平滑升级:从 1.26.3 到 1.28.0,用户无感知
linux·运维·nginx·平滑升级·nginx1.26.3·nginx1.28.0
robch3 天前
python3 -m http.server 8001直接启动web服务类似 nginx
前端·nginx·http
cyber_两只龙宝3 天前
【Nginx】Nginx实现FastCGI详解
linux·运维·nginx·云原生·php·memcached·fastcgi
BullSmall3 天前
Prometheus 可以监控docker 部署的Nginx 吗?
nginx·docker·prometheus
魔卡少女13 天前
Nginx配置代码化自动部署詹金斯/Github方案
前端·nginx·github