小编Leo*_*nid的帖子

openssl 颁发者/主题格式差异

我得到两个 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)

openssl

3
推荐指数
1
解决办法
1893
查看次数

如何在 vscode 中为 cppcheck 任务定义问题匹配器?

我正在为 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)

cppcheck visual-studio-code vscode-tasks

1
推荐指数
1
解决办法
1107
查看次数