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

相关推荐
528303 小时前
Nginx+Tomcat负载均衡群集
nginx·tomcat·负载均衡
Pseudo…3 小时前
nginx+Tomcat负载均衡群集
nginx·tomcat·负载均衡
ikun·3 小时前
Nginx + Tomcat 负载均衡、动静分离群集
nginx·tomcat·负载均衡
lml48563 小时前
5.Nginx+Tomcat负载均衡群集
nginx·tomcat·负载均衡
dessler6 小时前
代理服务器-Squid介绍和应用
linux·运维·nginx
往日情怀酿做酒 V17639296386 小时前
web架构2------(nginx多站点配置,include配置文件,日志,basic认证,ssl认证)
前端·nginx·架构
jialan7510 小时前
nginx
运维·nginx
天天摸鱼的java工程师1 天前
Nginx 配置实战:从摸鱼到部署,手把手教你搞定生产级配置
java·后端·nginx
冰_河1 天前
《Nginx核心技术》第10章:Nginx配置WebSocket
后端·nginx·程序员
siqiangming2 天前
SpringBoot+vue+SSE+Nginx实现消息实时推送
前端·vue.js·spring boot·nginx