当前位置: 首页 > news >正文

临沂设计网站的公司服务器搭建网站能ping t

临沂设计网站的公司,服务器搭建网站能ping t,织梦cms做好的网站怎样上传到服务器,wordpress303文章目录 openssl3.2 - 官方dmeo学习 - server-cmod.c概述配置文件格式样例笔记END openssl3.2 - 官方dmeo学习 - server-cmod.c 概述 从配置文件中读参数, 建立TLS服务器, 死等客户端来连接. 客户端连接后, 打印客户端发来的内容. 配置文件格式有要求 配置文件格式样例 # … 文章目录 openssl3.2 - 官方dmeo学习 - server-cmod.c概述配置文件格式样例笔记END openssl3.2 - 官方dmeo学习 - server-cmod.c 概述 从配置文件中读参数, 建立TLS服务器, 死等客户端来连接. 客户端连接后, 打印客户端发来的内容. 配置文件格式有要求 配置文件格式样例 # Example config module configuration# Name supplied by application to CONF_modules_load_file # and section containing configuration testapp test_sect# Comment out the next line to ignore configuration errors config_diagnostics 1[test_sect] # list of configuration modules# SSL configuration module ssl_conf ssl_sect[ssl_sect] # list of SSL configurations server server_sect[server_sect] # Only support 3 curves Curves P-521:P-384:P-256 # Restricted signature algorithms SignatureAlgorithms RSASHA512:ECDSASHA512 # Certificates and keys RSA.Certificateserver.pem ECDSA.Certificateserver-ec.pem 如果exe同级目录的2个.pem没摆全, 从配置文件中读取配置建立TLS服务器就会失败. 笔记 /*! \file server-cmod.c \brief 从配置文件中读参数, 建立TLS服务器, 死等客户端来连接. 客户端连接后, 打印客户端发来的内容.配置文件格式有要求 *//** Copyright 2015-2017 The OpenSSL Project Authors. All Rights Reserved.** Licensed under the Apache License 2.0 (the License). You may not use* this file except in compliance with the License. You can obtain a copy* in the file LICENSE in the source distribution or at* https://www.openssl.org/source/license.html*//** A minimal TLS server it ses SSL_CTX_config and a configuration file to* set most server parameters.*/#include stdio.h #include signal.h #include stdlib.h #include openssl/err.h #include openssl/ssl.h #include openssl/conf.h#include my_openSSL_lib.hint main(int argc, char *argv[]) {unsigned char buf[512];char *psz_port *:4433;BIO *bio_in NULL;BIO *bio_ssl, *bio_tmp;SSL_CTX *ctx_ssl;int ret EXIT_FAILURE, i;ctx_ssl SSL_CTX_new(TLS_server_method());/*! testapp test_sect */if (CONF_modules_load_file(cmod.cnf, testapp, 0) 0) {fprintf(stderr, Error processing config file\n);goto err;}/*!如果配置文件中指定的pem没放到程序工作目录, 会失败RSA.Certificateserver.pemECDSA.Certificateserver-ec.pem*/if (SSL_CTX_config(ctx_ssl, server) 0) {fprintf(stderr, Error configuring server.\n);goto err;}/* Setup server side SSL bio */bio_ssl BIO_new_ssl(ctx_ssl, 0);if ((bio_in BIO_new_accept(psz_port)) NULL)goto err;/** This means that when a new connection is accepted on in, The ssl_bio* will be duplicated and have the new socket BIO push into it.* Basically it means the SSL BIO will be automatically setup*/BIO_set_accept_bios(bio_in, bio_ssl);again:/** The first call will setup the accept socket, and the second will get a* socket. In this loop, the first actual accept will occur in the* BIO_read() function.*/if (BIO_do_accept(bio_in) 0)goto err;for (;;) {i BIO_read(bio_in, buf, sizeof(buf));if (i 0) {/** If we have finished, remove the underlying BIO stack so the* next time we call any function for this BIO, it will attempt* to do an accept*/printf(Done\n);bio_tmp BIO_pop(bio_in);BIO_free_all(bio_tmp);goto again;}if (i 0) {if (BIO_should_retry(bio_in))continue;goto err;}fwrite(buf, 1, i, stdout);fflush(stdout);}ret EXIT_SUCCESS;err:if (ret ! EXIT_SUCCESS)ERR_print_errors_fp(stderr);BIO_free(bio_in);return ret; } END
http://www.dnsts.com.cn/news/110615.html

相关文章:

  • 企业网站建设深圳在线看网址不收费不登录
  • 上海网站建设的价格云南省住房和城乡建设厅网站首页
  • 微信小程序赚钱桔子seo
  • 西安网站建设创意选择响应式网站
  • 成都市四方建设工程监理有限公司网站网站备案繁琐工作
  • 如何查看网站ftp地址怎么做网站注册的网页
  • 南宁外贸网站建设功能公司centos7使用wordpress
  • 万能网站网址下载网站的建设费用预算
  • 广告网站建设方案新网站应该怎么做seo
  • 合作市建设局网站网站开发并发处理
  • 清晰化网站中信建设有限责任公司海外地位
  • 郑州的兼职网站建设好的网站建设专业公司
  • 网站建设图书馆管理系统深圳网红打卡旅游景点
  • 电子商务网站建设服务外包通用软件开发
  • 基于wordpress门户网站网站建设的局限性
  • 中国门户网站排行wordpress同步到新浪微博
  • 网站建设开发合同模板wordpress问答站模板
  • 延边手机网站建设开发做前端网站考虑兼容分辨率
  • 深圳市网站建设有补贴吗网页策划案的范文
  • 自己有网站怎么做优化老年大学网站建设
  • 网站高质量外链百度商桥 手机网站
  • 上海设计招聘网站做视频网站 视频放在哪里找
  • 如何查找网站死链网站seo三要素
  • 东莞市做网站公司wordpress 删除重复
  • 农村电商网站建设分类网站开发可行性分析报告
  • 重庆seo网站设计wordpress 用户名 密码
  • php做的网站源代码室内平面设计软件
  • 做网站的感想网站域名注册信息查询
  • 建设网站需要有什么特色孙力军
  • 网站用什么做备份企业网站手机版模板免费下载