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

做肮脏交义的网站长沙网站制作关键词推广

做肮脏交义的网站,长沙网站制作关键词推广,有免费制作单页的网站吗,正规网站备案信息表文章目录 openssl3.2 - 官方demo学习 - cms - cms_uncomp.c(官方应用实现错误, 需要修正)概述笔记END openssl3.2 - 官方demo学习 - cms - cms_uncomp.c(官方应用实现错误, 需要修正) 概述 cms数据解压缩 请注意函数定义 CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, B… 文章目录 openssl3.2 - 官方demo学习 - cms - cms_uncomp.c(官方应用实现错误, 需要修正)概述笔记END openssl3.2 - 官方demo学习 - cms - cms_uncomp.c(官方应用实现错误, 需要修正) 概述 cms数据解压缩 请注意函数定义 CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) 参数3才是输出的BIO 笔记 /*! \file cms_uncomp.c \note cms数据解压缩 openssl3.2 - 官方demo学习 - cms - cms_uncomp.c(官方应用实现错误, 需要修正) 请注意函数定义 CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags) 参数3才是输出的BIO *//** Copyright 2008-2023 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*//* Simple S/MIME uncompression example */ #include openssl/pem.h #include openssl/cms.h #include openssl/err.h #include my_openSSL_lib.hint main(int argc, char **argv) {BIO *in NULL, *out NULL;CMS_ContentInfo *cms NULL;int ret EXIT_FAILURE;OpenSSL_add_all_algorithms();ERR_load_crypto_strings();/* Open compressed content */in BIO_new_file(smcomp.txt, r);if (!in)goto err;/* Sign content *//*! SMIME_write_CMS(out, cms, in, flags) *//*! CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, CMS_ContentInfo **ci); *//*! cms SMIME_read_CMS(in, NULL); */cms SMIME_read_CMS_ex(in, CMS_STREAM, NULL, NULL); /*! 如果要给flag, 就要调用 SMIME_read_CMS_ex*//*!* SMIME_read_CMS_ex一定读到了上一个程序压缩过的数据 smcomp.txt- b 0x00000204edec2fb0 {length143 data0x00000204ede764b0 0€\x6\v*咹嗺\r\x1\t\x10\x1\t爛0€\x2\x1 max168 ...} buf_mem_st *length 143 unsigned __int64data 0x00000204ede764b0 0€\x6\v*咹嗺\r\x1\t\x10\x1\t爛0€\x2\x1 char *max 168 unsigned __int64flags 0 unsigned long*/if (!cms)goto err;out BIO_new_file(smuncomp.txt, w);if (!out)goto err;/* Uncompress S/MIME message *//*! flags CMS_STREAM *//*! cms CMS_compress(in, NID_zlib_compression, flags); *//*!CMS_ContentInfo *CMS_compress(BIO *in, int comp_nid, unsigned int flags);int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags);*//*! 现在能肯定解压缩不对, 估计是没按照压缩时的标记进行解压缩 *//*int CMS_uncompress(CMS_ContentInfo *cms, BIO *dcont, BIO *out, unsigned int flags)*//*!* 官方demo居然写错了..., 这让大部分新手用户懵逼啊...* 单步调试了好久, 才明白官方实现调用CMS_uncompress()时, 参数给错了* 官方原版实现 if (!CMS_uncompress(cms, out, NULL, 0)), 这句错了* 现在只要库是对的, 库的应用方面出问题是难不住俺的:P*/if (!CMS_uncompress(cms, NULL, out, CMS_STREAM /*0*/)) /*! 修正官方实现 */{// 对 cms_comp_c工程压缩的数据进行解压缩, 居然错了...goto err;}ret EXIT_SUCCESS;err:if (ret ! EXIT_SUCCESS) {fprintf(stderr, Error Uncompressing Data\n);ERR_print_errors_fp(stderr);}CMS_ContentInfo_free(cms);BIO_free(in);BIO_free(out);return ret; } END
http://www.pierceye.com/news/343712/

相关文章:

  • 手机站模板权威发布是指什么
  • 青岛开发区做网站做网站的公司上海
  • 哈尔滨自助建站平台如何让网站火起来
  • 高州手机网站建设公司静态网页有哪些网站
  • 格兰仕网站开发方案表情包生成器在线制作
  • 便捷网站建设公司网站网页建设实训心得
  • 怎样做国外能看到的网站计算机大专生的出路
  • jsp网站开发四库全书怀化市住房与城乡建设厅网站
  • 组装电脑报价网站源码设计教育教学活动的注意事项
  • 杭州做网站外包公司哪家好wordpress标题字数
  • 设计素材网站源码深圳品牌设计公深圳品牌设计公司
  • 百度地图 企业网站给wordpress公告
  • wap网站编辑器目录在标题后 wordpress
  • 网站正在建设中亚洲wamp 设置多个网站
  • 网上注册公司流程及材料sem seo是什么意思呢
  • 网站开发后所有权广州市官网网站建设
  • 公司网站宣传设计北京市住房与建设厅官方网站
  • 企业信息化建设如何帮助客户理解网站流量怎么给自己网站做搜索框
  • 公司网站不续费农村未来10大暴利行业
  • 代做设计网站好跨境电商排名
  • 网站备案状态查询东莞智通人才市场招聘官网
  • 做微网站要多少钱更合网站设计制作
  • 网站如何留住客户企业建设网站需要注意什么
  • 中国最受欢迎的网站网站建设要知道的
  • 软件开发公司网站模板天津网站建设方案报价
  • 做面条的网站旅游网络营销如何做
  • 知乎的网站建设和网站运营网站建设需求说明
  • 天津做陶瓷的公司网站番禺核酸检测定点医院名单
  • 教育网站赏析delphi网站开发教程
  • 电商网站设计说明书php网站服务器架设