08 2019 档案

摘要:最近做一个事情,实现一个流程交互,其中主交互流程函数中,涉及较多的内存申请, 而健康的函数,都是在函数退出前将手动申请不再需要的内存释放掉, 使用很多方法,都避免不了较多的出错分支时,一堆的if free/delete,代码长而且不好管理 因此,利用C++对象离开作用域会自动调用析构函数的特点,在这 阅读全文
posted @ 2019-08-24 17:39 日月王 阅读(1622) 评论(2) 推荐(1) 编辑
摘要:头文件:CPictureEx用于显示一个等待动画 #pragma once #include "afxwin.h" #include "resource.h" #include "PictureEx.h" #include <thread> // CWaitDlg 对话框 class CWaitSi 阅读全文
posted @ 2019-08-24 16:05 日月王 阅读(1535) 评论(7) 推荐(0) 编辑
摘要:#ifndef __03022006__WIN32INPUTBOX__ #define __03022006__WIN32INPUTBOX__ /* This library is (c) Elias Bachaalany aka lallous <lallousx86@yahoo.com> You 阅读全文
posted @ 2019-08-24 15:54 日月王 阅读(358) 评论(0) 推荐(0) 编辑
摘要:代码来源:https://www.codeproject.com/Articles/13330/Using-Dialog-Templates-to-create-an-InputBox-in-C #include <windows.h> #include <stdio.h> int main(int 阅读全文
posted @ 2019-08-24 13:08 日月王 阅读(361) 评论(0) 推荐(0) 编辑
摘要:1.生成KEY: gmssl sm2 -genkey -out 01.root.pem gmssl genrsa -out 01.root_plain.key 2048 gmssl genrsa -out 01.root_plain.key 1024 2.生成CA的自签名证书 gmssl req - 阅读全文
posted @ 2019-08-19 14:18 日月王 阅读(1961) 评论(0) 推荐(0) 编辑
摘要:实现X509格式证书的链式校验 // cert_public.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include <string.h> #include <stdi 阅读全文
posted @ 2019-08-19 13:38 日月王 阅读(2902) 评论(0) 推荐(0) 编辑
摘要:声明:OpenSSL之命令行详解是根据卢队长发布在https://blog.csdn.net/as3luyuan123/article/details/16105475的系列文章整理修改而成,我自己所做的工作主要是针对新的1.0.2版本进行验证,修改错别字,和错误,重新排版,以及整理分类,配图。 未 阅读全文
posted @ 2019-08-13 16:31 日月王 阅读(2379) 评论(0) 推荐(0) 编辑
摘要:【引言】 ASN.1全称为Abstract Syntax NotationOne,是一种描述数字对象的方法和标准。openssl的编码方法就是基于该标准的,目前,很多其他软件的编码方法也是基于该标准。对于直接使用openssl的API或者应用程序来说,可能对ASN.1的了解并不需要很清楚,但是为了使 阅读全文
posted @ 2019-08-13 16:26 日月王 阅读(1698) 评论(0) 推荐(0) 编辑
摘要:Zakir Durumeric | October 13, 2013 While OpenSSL has become one of the defacto libraries for performing SSL and TLS operations, the library is surpris 阅读全文
posted @ 2019-08-13 16:17 日月王 阅读(623) 评论(0) 推荐(0) 编辑
摘要:一、生成证书 openSSL生成RSA证书 1 生成自签CA 生成CA密钥 genrsa -aes256 -passout pass:123456 -out ca_rsa_private.pem 2048 1 自签名证书 req -new -key server_rsa_private.pem -p 阅读全文
posted @ 2019-08-13 16:05 日月王 阅读(4019) 评论(0) 推荐(0) 编辑
摘要:void GetPubKey(const char* FilePath, char* PubKey) { unsigned char Cert[4099]; unsigned char *pTmp = NULL; FILE *fp = NULL; fp=fopen(FilePath,“rb”); i 阅读全文
posted @ 2019-08-13 15:58 日月王 阅读(1658) 评论(0) 推荐(0) 编辑
摘要:原地址:https://blog.csdn.net/anddy926/article/details/8940377 由于项目需要,我计划利用openssl开发一个基本的CA,实现证书的发放等功能。在项目模型中公私钥对是用户自己产生的,并且以16进制数的形似提交给CA。我们知道,通常利用openss 阅读全文
posted @ 2019-08-13 15:38 日月王 阅读(1887) 评论(0) 推荐(0) 编辑
摘要:; Generated by AutoGUI 2.6.0 #SingleInstance Force #NoEnv SetWorkingDir %A_ScriptDir% SetBatchLines -1 #Include %A_ScriptDir%\AutoXYWH.ahk Gui +Resize 阅读全文
posted @ 2019-08-12 13:54 日月王 阅读(398) 评论(1) 推荐(0) 编辑
摘要:orig url: https://accu.org/index.php/journals/255 roperties are a feature of a number of programming languages - Visual Basic and C# are two of them. 阅读全文
posted @ 2019-08-08 23:34 日月王 阅读(187) 评论(0) 推荐(0) 编辑
摘要:void GetWorkingFolder(std::string& folder){ folder.resize(MAX_PATH*2 + 1, '\0'); //留长一点,防止后面再连接一个Cloudwalk时出错 //获取当前程序目录,如果是C盘,则获取APPDATA目录,然后在末尾添加目录后 阅读全文
posted @ 2019-08-07 13:48 日月王 阅读(257) 评论(0) 推荐(0) 编辑
摘要:删除历史日志的一个API bool DeleteOldFiles(const char* strFolder, const char* strPrefix, bool is_recursion, UINT32 ulMinDateTime, UINT32 ulMaxDateTime) { HANDLE 阅读全文
posted @ 2019-08-02 17:46 日月王 阅读(176) 评论(0) 推荐(0) 编辑
摘要:/******************************************************** * @file : Mutex.h * @desc : 同步对象 * @author : * @date : 2019-7-30 * @version : 1.0.0 ******** 阅读全文
posted @ 2019-08-01 11:14 日月王 阅读(201) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示