oid.cpp
来自「一个精简的CA程序」· C++ 代码 · 共 21 行
CPP
21 行
/* here we have the possibility to add our own OIDS */#include <openssl/objects.h>char *our_oids[] = {"1.3.6.1.4.1.311.20.2", "dom", "Domain Controller","1.3.6.1.4.1.311.21.1", "MsCaV", "Microsoft CA Version",#if OPENSSL_VERSION_NUMBER < 0x00907000L"1.3.6.1.4.1.311.20.2.3", "msUPN", "Microsoft Universal Principal Name",#endifNULL };void initOIDs() { int i=0; while (our_oids[i] != NULL) { OBJ_create(our_oids[i], our_oids[i+1], our_oids[i+2]); i+=3; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?