{
    "version": "4.0.0",
    "description": "TLS/SSL toolkit",
    "homepage": "https://slproweb.com/products/Win32OpenSSL.html",
    "license": "Apache-2.0",
    "architecture": {
        "64bit": {
            "url": "https://slproweb.com/download/Win64OpenSSL-4_0_0.exe",
            "hash": "90238e6480fc84e0d0c813bd744295b4e3e6fd2ec3770dbb153448e550359de7"
        },
        "32bit": {
            "url": "https://slproweb.com/download/Win32OpenSSL-4_0_0.exe",
            "hash": "017b180ee89720988572644ce5778c22352f6103416062257ca7ba0191496bee"
        },
        "arm64": {
            "url": "https://slproweb.com/download/Win64ARMOpenSSL-4_0_0.exe",
            "hash": "c88235e2fd6ec8b2a5d87dd4e5a42a59da90a74027ba6d7138f641c5dc508505"
        }
    },
    "pre_install": [
        "$arch = switch ($architecture) {",
        "    '64bit' { 'x64'; break }",
        "    '32bit' { 'x86'; break }",
        "    'arm64' { $architecture; break }",
        "}",
        "$null = Get-ChildItem \"$dir/lib/VC/$arch/MT\" | ForEach-Object { New-Item -ItemType HardLink -Target $_.FullName -Path \"$dir/lib/$($_.Name)\" }"
    ],
    "innosetup": true,
    "env_add_path": "bin",
    "env_set": {
        "OPENSSL_ROOT_DIR": "$dir",
        "OPENSSL_LIB_DIR": "$dir\\lib",
        "OPENSSL_INCLUDE_DIR": "$dir\\include",
        "OPENSSL_MODULES": "$dir\\bin",
        "OPENSSL_CONF": "$dir\\bin\\cnf\\openssl.cnf"
    },
    "checkver": {
        "url": "https://raw.githubusercontent.com/slproweb/opensslhashes/master/win32_openssl_hashes.json",
        "jsonpath": "$.files..basever",
        "regex": "([\\d.]+)",
        "reverse": true
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://slproweb.com/download/Win64OpenSSL-$underscoreVersion.exe"
            },
            "32bit": {
                "url": "https://slproweb.com/download/Win32OpenSSL-$underscoreVersion.exe"
            },
            "arm64": {
                "url": "https://slproweb.com/download/Win64ARMOpenSSL-$underscoreVersion.exe"
            }
        },
        "hash": {
            "url": "https://raw.githubusercontent.com/slproweb/opensslhashes/master/win32_openssl_hashes.json",
            "jsonpath": "$.files.['$basename'].sha256"
        }
    }
}
