我得到两个 OpenSSL 版本的不同颁发者/主题格式:OpenSSL 1.1.1 和 OpenSSL 1.0.2n。1.1.1 版本可以像 1.0.2n 那样格式化主题/发行者吗?
$ openssl x509 -in cert.pem -noout -issuer
# 1.1.1 11 Sep 2018
issuer=C = RU, O = TestOrg, OU = TestOrg Certification Authority, CN = rsa
# 1.0.2n 7 Dec 2017
issuer= /C=RU/O=TestOrg/OU=TestOrg Certification Authority/CN=rsa
Run Code Online (Sandbox Code Playgroud) 我正在为 vscode 设置一个“cppcheck”任务。它有效,但问题匹配器无法捕获问题。
我尝试过“$gcc”问题匹配器以及一些自定义配置。
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cppcheck",
"type": "shell",
"command": "cppcheck --template=gcc --enable=style --project=${workspaceFolder}/build/compile_commands.json",
"problemMatcher": "$gcc",
}
]
}
Run Code Online (Sandbox Code Playgroud)
或这个:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "cppcheck",
"type": "shell",
"command": "cppcheck --template=gcc --enable=warning src/jc_certreq.cpp",
"problemMatcher": {
"owner": "cpp",
"fileLocation": "absolute",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4, …Run Code Online (Sandbox Code Playgroud)