{"id":13580232,"url":"https://github.com/zhaozg/lua-openssl","last_synced_at":"2026-01-25T05:01:26.297Z","repository":{"id":1630583,"uuid":"1987363","full_name":"zhaozg/lua-openssl","owner":"zhaozg","description":"Openssl binding for Lua","archived":false,"fork":false,"pushed_at":"2026-01-18T03:32:37.000Z","size":3410,"stargazers_count":312,"open_issues_count":1,"forks_count":114,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-01-18T16:58:44.160Z","etag":null,"topics":["c","cipher","crypto","lua","lua-openssl","luajit","openssl","openssl-binding","ssl"],"latest_commit_sha":null,"homepage":"https://zhaozg.github.io/lua-openssl/index.html","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaozg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY_SUMMARY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2011-07-02T11:15:48.000Z","updated_at":"2026-01-17T16:37:11.000Z","dependencies_parsed_at":"2023-12-13T09:05:55.586Z","dependency_job_id":"414fcfba-178b-4c36-8214-fe4dab74667b","html_url":"https://github.com/zhaozg/lua-openssl","commit_stats":{"total_commits":1123,"total_committers":39,"mean_commits":"28.794871794871796","dds":0.08192341941228853,"last_synced_commit":"a642971a42a6a140de5ab681d575453331650e63"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/zhaozg/lua-openssl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozg%2Flua-openssl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozg%2Flua-openssl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozg%2Flua-openssl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozg%2Flua-openssl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaozg","download_url":"https://codeload.github.com/zhaozg/lua-openssl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaozg%2Flua-openssl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28744419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T02:46:29.005Z","status":"ssl_error","status_checked_at":"2026-01-25T02:44:29.968Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cipher","crypto","lua","lua-openssl","luajit","openssl","openssl-binding","ssl"],"created_at":"2024-08-01T15:01:49.001Z","updated_at":"2026-01-25T05:01:26.291Z","avatar_url":"https://github.com/zhaozg.png","language":"C","readme":"lua-openssl toolkit - A free, MIT-licensed OpenSSL binding for Lua.\n\n[![CI](https://github.com/zhaozg/lua-openssl/actions/workflows/ci.yml/badge.svg)](https://github.com/zhaozg/lua-openssl/actions/workflows/ci.yml)\n[![LibreSSL](https://github.com/zhaozg/lua-openssl/actions/workflows/libressl.yml/badge.svg)](https://github.com/zhaozg/lua-openssl/actions/workflows/libressl.yml)\n[![Coverage Status](https://coveralls.io/repos/github/zhaozg/lua-openssl/badge.svg?branch=master)](https://coveralls.io/github/zhaozg/lua-openssl?branch=master)\n[![luarocks](https://img.shields.io/luarocks/v/zhaozg/openssl)](https://luarocks.org/modules/zhaozg/openssl)\n\n# Index\n\n1. [Introduction](#introduction)\n2. [Quick Start](#quick-start)\n3. [Documentation](#documentation)\n4. [Howto](#howto)\n5. [Examples](#example-usage)\n\n## Introduction\n\nI needed a full OpenSSL binding for Lua, after googled, I couldn't find a version\nto fit my needs. I found the PHP openssl binding is a good implementation, and it\ninspired me. So I decided to write this OpenSSL toolkit for Lua.\n\nThe goal is to fully support openssl, include:\n\n- ASN1 Process.\n- Symmetrical encrypt/decrypt.\n- Message digest.\n- Asymmetrical encrypt/decrypt/sign/verify/seal/open.\n- X509 certificate.\n- PKCS7/CMS.\n- SSL/TLS.\n\n## Quick Start\n\n### Dependencies\n\n- Requires [Lua](https://www.lua.org/) 5.1/5.2/5.3/5.4 or [luajit](http://luajit.org/) 2.0/2.1.\n- Requires [OpenSSL](https://www.openssl.org/) \u003e= 1.0.0 or [LibreSSL](https://www.libressl.org/) \u003e= v3.3.6.\n- On MacOS, you can install dependencies via Homebrew:\n  ```bash\n  brew install openssl lua\n  luarocks install openssl\n  ```\n\nIt is recommended to use the most up-to-date OpenSSL version because of the\nrecent security fixes.\n\n### Quick Example\n\n```lua\nlocal openssl = require('openssl')\nlocal md = openssl.digest.get('sha256')\nlocal hash = md:digest('hello world')\nprint(openssl.hex(hash))\n```\n\nSee more examples in the \\\"Example usage\\\" section below.\n\nMost of the lua-openssl functions require a key or certificate as argument, to\nmake things easy to use OpenSSL.\n\nThis rule allows you to specify certificates or keys in the following ways:\n\n1. As an openssl.x509 object returned from `openssl.x509.read`\n2. As an openssl.evp_pkey object return from `openssl.pkey.read` or `openssl.pkey.new`\n\nSimilarly, you can also specify a public key as a key object returned from\n`x509:get_public()`.\n\n### lua-openssl modules\n\nModule overview:\n- digest: message digest algorithms (md5, sha256, etc.)\n- cipher: symmetric encryption/decryption (aes, des, etc.)\n- x509: certificate parsing and manipulation\n- pkcs7/cms: PKCS7/CMS format handling\n- bio: memory/file/network data streams\n- ssl: SSL/TLS protocol support\n- hmac: HMAC authentication\n- kdf: key derivation functions (pbkdf2, hkdf, scrypt, etc.) - see [KDF_USAGE.md](./docs/KDF_USAGE.md)\n\n```lua\n   local digest = require'openssl'.digest\n   local cipher = require'openssl'.cipher\n   local kdf = require'openssl'.kdf\n```\n\ndigest() equals with digest.digest(), same cipher() equals with cipher.cipher().\n\n## Documentation\n\nDocument please see [here](http://zhaozg.github.io/lua-openssl/index.html),\nthat are generated by [LDoc](https://github.com/stevedonovan/LDoc).\n\nNotice: Documentation quality is low and stale, feel free to make a PR to improve it.\n\nIf documentation is missing, refer to the [source code](./src) or check the Lua test scripts in the test directory.\n\n### Documentation Coverage\n\nThe project includes an automated LDoc analyzer that scans all C source files to check documentation coverage. Current statistics:\n\n- **93.1%** of exported API functions are documented\n- **97.9%** of LDoc comments are valid and well-formed\n- **768** total LDoc comment blocks across 37 C files\n\nTo check documentation coverage:\n\n```bash\nmake check\n```\n\n### lua-openssl Objects\n\nThe following are some important lua-openssl object types:\n\n```text\n  openssl.bio,\n  openssl.x509,\n  openssl.stack_of_x509,\n  openssl.x509_req,\n  openssl.evp_pkey,\n  openssl.evp_digest,\n  openssl.evp_cipher,\n  openssl.engine,\n  openssl.pkcs7,\n  openssl.cms,\n  openssl.evp_cipher_ctx,\n  openssl.evp_digest_ctx\n  ...\n```\n\nThey are shortened as bio, x509, sk_x509, csr, pkey, digest, cipher,\nengine, cipher_ctx, and digest_ctx.\n\n### openssl.bn\n\n- **_openssl.bn_** come from [lbn](http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbn), and thanks.\n\nopenssl.bn is a big-number library for Lua 5.1. It handles only integers and is\nsuitable for number-theoretical and cryptographic applications. It is based\non the bn subsystem of OpenSSL cryptographic library:\n[bn.h](https://github.com/openssl/openssl/blob/OpenSSL_1_0_2-stable/crypto/bn/bn.h)\nIf you're running Unix, you probably already have OpenSSL installed.\n\nTo try the library, just edit Makefile to reflect your installation of Lua and\nthen run make. This will build the library and run a simple test. For detailed\ninstallation instructions, see\n[lbn](http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/index.html#lbn)\n\nThere is no manual but the library is simple and intuitive; see the summary\nbelow.\n\nbn library:\n\n```text\n __add(x,y)        compare(x,y)          pow(x,y)\n __div(x,y)        div(x,y)              powmod(x,y,m)\n __eq(x,y)         divmod(x,y)           random(bits)\n __lt(x,y)         gcd(x,y)              rmod(x,y)\n __mod(x,y)        invmod(x)             sqr(x)\n __mul(x,y)        isneg(x)              sqrmod(x)\n __pow(x,y)        isodd(x)              sqrtmod(x)\n __sub(x,y)        isone(x)              sub(x,y)\n __tostring(x)     isprime(x,[checks])   submod(x,y,m)\n __unm(x)          iszero(x)             text(t)\n abs(x)            mod(x,y)              tohex(x)\n add(x,y)          mul(x,y)              tonumber(x)\n addmod(x,y,m)     mulmod(x,y,m)         tostring(x)\n aprime(bits)      neg(x)                totext(x)\n bits(x)           number(x)             version\n```\n\n### Version\n\nYou can get version of lua-openssl, lua and OpenSSL from a Lua script.\n\n```lua\nopenssl = require \"openssl\"\n-- get version string format\nlua_openssl_version, lua_version, openssl_version = openssl.version()\n-- get version number format\nlua_openssl_version, lua_version, openssl_version = openssl.version(true)\n```\n\n### Style\n\nSource code of lua-openssl tidy with [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)\n`clang-format --style=file src/*.c`\n\n### Bugs\n\nLua-Openssl is heavily updated, if you find a bug, please report to\n[here](https://github.com/zhaozg/lua-openssl/issues/)\n\nI try to use [luaunit](https://github.com/bluebird75/luaunit) to write unit\n[test](tree/master/test), and welcome PR to improve it.\n\n## Howto\n\n### Howto 1: Build on Linux/Unix System\n\n```bash\n    git clone --recurse https://github.com/zhaozg/lua-openssl.git lua-openssl\n    cd lua-openssl\n    make\n    make install\n    make clean\n```\n\nIf you want to make lua-openssl static link with openssl, please given\n`OPENSSL_STATIC` flags, default will do dynamic link.\n\n```bash\n    make OPENSSL_STATIC=1\n```\n\n### Howto 2: Build on Windows with MSVC\n\nBefore building, please change the setting in the config.win file.\nWorks with Lua5.1 (should support Lua5.2 by updating the config.win file).\n\n```bash\n    git clone --recurse https://github.com/zhaozg/lua-openssl.git lua-openssl\n    cd lua-openssl\n    nmake -f makefile.win\n    nmake -f makefile.win install\n    nmake -f makefile.win clean\n```\n\n### Howto 3: Build on Windows with mingw\n\n```bash\n    git clone --recurse https://github.com/zhaozg/lua-openssl.git lua-openssl\n    cd lua-openssl\n    make\n    make install\n    make clean\n```\n\n### Howto 4: Install using luarocks\n\n```bash\n    luarocks install openssl\n```\n\n### Howto 5: Build with CMake\n\n   Build shared lua-openssl.\n\n   `cmake -Bbuild -H. -DOPENSSL_ROOT_DIR=... \u0026\u0026 cd build \u0026\u0026 make`\n\n   Build static lua-openssl\n\n   `cmake -Bbuild -H. -DOPENSSL_ROOT_DIR=... -DBUILD_SHARED_LUA_OPENSSL=OFF \u0026\u0026 cd build \u0026\u0026 make`\n\n### Howto 6: Handle fail or error\n\nMost lua-openssl function or methods return nil or false when error or\nfailed, followed by string type error _reason_ and number type error _code_,\n_code_ can pass to openssl.error() to get more error information.\n\nAll SSL object IO operation methods return nil or false when fail or error.\nWhen nil returned, it followed by 'ssl' or 'syscall', means SSL layer or\nsystem layer error. When false returned, it is followed by number 0, 'want_read',\n'want_write','want_x509_lookup','want_connect','want_accept'. Number 0 means\nSSL connection closed, other numbers means you should do some SSL operation.\n\nPlease remember that when lua-openssl function or methods fail without an\nerror code, you can get the last error by openssl.error(), and repeat call\nopenssl.error() will walk through error stacks of current threads.\nopenssl.errors() will return all error strings and clear error queue,\nthis is very useful to free memory when lua-openssl repeat calls or run long times.\n\n## Example usage\n\n### Example 1: short encrypt/decrypt\n\n```lua\nlocal openssl = require('openssl')\nlocal evp_cipher = openssl.cipher.get('aes-128-cbc')\n\n-- Note: Use AES instead of DES as DES is disabled by default in OpenSSL 3.x\nlocal msg = 'abcdefghick'\nlocal key = '1234567890123456'  -- 16 bytes for AES-128\nlocal iv = '1234567890123456'   -- 16 bytes IV\n\n-- Encrypt with error handling\nlocal cdata, err = evp_cipher:encrypt(msg, key, iv)\nif not cdata then\n  print(\"Encryption failed: \" .. (err or \"unknown error\"))\n  return\nend\n\n-- Decrypt with error handling\nlocal decrypted, err = evp_cipher:decrypt(cdata, key, iv)\nif not decrypted then\n  print(\"Decryption failed: \" .. (err or \"unknown error\"))\n  return\nend\n\nassert(msg == decrypted)\n```\n\n### Example 2: quick evp_digest\n\n```lua\nlocal alg = 'sha256'\nmd = openssl.digest.get(alg)\nm = 'abcd'\naa = md:digest(m)\n\nmdc=md:new()\nmdc:update(m)\nbb = mdc:final()\nassert(openssl.hex(aa,true)==bb)\n```\n\n### Example 3: Quick HMAC hash\n\n```lua\nlocal hmac = require \"openssl\".hmac\n\nalg = 'sha256'\nkey = '0123456789'\nmsg = 'example message'\n\nhmac.hmac(alg, msg, key, true) -- binary/\"raw\" output\nhmac.hmac(alg, msg, key, false) -- hex output\n```\n\n### Example 4: Iterate a openssl.stack_of_x509(sk_x509) object\n\n```lua\nn = #sk\nfor i=1, n do\n  x = sk:get(i)\nend\n```\n\n### Example 5: read and parse certificate\n\n```lua\nlocal openssl = require('openssl')\n\nfunction dump(t,i)\n  for k,v in pairs(t) do\n    if(type(v)=='table') then\n      print( string.rep('\\t',i),k..'={')\n      dump(v,i+1)\n      print( string.rep('\\t',i),k..'=}')\n    else\n      print( string.rep('\\t',i),k..'='..tostring(v))\n    end\n  end\nend\n\nfunction test_x509()\n  local x = openssl.x509.read(certasstring)\n  print(x)\n  t = x:parse()\n  dump(t,0)\n  print(t)\nend\n\ntest_x509()\n```\n\n### Example 6: bio network handle(TCP)\n\n- server\n\n```lua\nlocal openssl = require'openssl'\nlocal bio = openssl.bio\n\nhost = host or \"127.0.0.1\"; --only ip\nport = port or \"8383\";\n\nlocal srv = assert(bio.accept(host..':'..port))\nprint('listen at:'..port)\nlocal cli = assert(srv:accept())\nwhile 1 do\n    cli = assert(srv:accept())\n    print('CLI:',cli)\n    while cli do\n        local s = assert(cli:read())\n        print(s)\n        assert(cli:write(s))\n    end\n    print(openssl.errors())\nend\n```\n\n- client\n\n```lua\nlocal openssl = require'openssl'\nlocal bio = openssl.bio\nio.read()\n\nhost = host or \"127.0.0.1\"; --only ip\nport = port or \"8383\";\n\nlocal cli = assert(bio.connect(host..':'..port,true))\n\nwhile cli do\n    s = io.read()\n    if(#s\u003e0) then\n        print(cli:write(s))\n        ss = cli:read()\n        assert(#s==#ss)\n    end\nend\nprint(openssl.errors())\n```\n\n### Example 7: SSL client access github.com\n\n```lua\nlocal openssl = require(\"openssl\")\n\n-- prepare a SSL_CTX object\nlocal ctx = assert(openssl.ssl.ctx_new(\"TLSv1_2_client\"))\n\n-- make a TCP connection, and do connect first\nlocal cli = assert(openssl.bio.connect(\"github:443\", true))\n\n-- make a SSL connection over TCP\nlocal ssl = ctx:ssl(cli)\n-- set SNI name\nssl:set(\"hostname\", \"echo.websocket.org\")\n\n-- do SSL handshake\nassert(ssl:connect())\n\n-- send a HTTP request over SSL connection\nassert(ssl:write(\"GET / HTTP/1.1\\r\\nHost: github.com\\r\\nConnection: close\\r\\n\\r\\n\"))\n\n-- read response\nprint(ssl:read(4096))\n\n-- shutdown SSL connection and close TCP connection\nssl:shutdown()\ncli:close()\n```\n\n### Example 8: aes-128-gcm\n\n```lua\nlocal openssl = require('openssl')\n\nlocal evp = openssl.cipher.get('aes-128-gcm')\nlocal info = evp:info()\n\n-- get cipher info\nlocal key = openssl.random(info.key_length)\nlocal msg = openssl.random(info.key_length)\nlocal iv = openssl.random(info.iv_length)\nlocal tn = 16 -- tag length\n\n--do encrypt\nlocal e = evp:encrypt_new()\nassert(e:ctrl(openssl.cipher.EVP_CTRL_GCM_SET_IVLEN, #iv))\nassert(e:init(key, iv))\ne:padding(false)\n\n--- get cipher\nlocal c = assert(e:update(msg))\nc = c .. e:final()\nassert(#c==#msg)\n\n--- Get the tag\nlocal tag = assert(e:ctrl(openssl.cipher.EVP_CTRL_GCM_GET_TAG, tn))\nassert(#tag==tn)\n\n--do decrypt\ne = evp:decrypt_new()\nassert(e:ctrl(openssl.cipher.EVP_CTRL_GCM_SET_IVLEN, #iv))\nassert(e:init(key, iv))\ne:padding(false)\n\nlocal r = assert(e:update(c))\nassert(e:ctrl(openssl.cipher.EVP_CTRL_GCM_SET_TAG, tag))\nr = r .. assert(e:final())\nassert(#r==#c)\n\nassert(r==msg)\nprint('Done')\n```\n\n### Example 9: Ed25519 digital signatures\n\n```lua\nlocal openssl = require('openssl')\nlocal pkey = openssl.pkey\n\n-- Generate Ed25519 key pair\nlocal ctx = pkey.ctx_new(\"ED25519\")\nlocal key = ctx:keygen()\n\n-- Sign a message\nlocal message = \"Hello, world!\"\nlocal signature = pkey.sign(key, message)\n\n-- Verify the signature\nlocal verified = pkey.verify(key, message, signature)\nprint(\"Signature verified:\", verified)  -- true\n\n-- Export and import keys\nlocal pem = key:export(\"pem\")\nlocal imported_key = pkey.read(pem, true, \"pem\")\nprint(\"Key successfully imported\")\n```\n\n### Example 10: X25519 key exchange\n\n```lua\nlocal openssl = require('openssl')\nlocal pkey = openssl.pkey\n\n-- Alice and Bob each generate a key pair\nlocal alice = pkey.ctx_new(\"X25519\"):keygen()\nlocal bob = pkey.ctx_new(\"X25519\"):keygen()\n\n-- Alice derives shared secret using Bob's public key\nlocal alice_secret = alice:derive(bob)\n\n-- Bob derives shared secret using Alice's public key\nlocal bob_secret = bob:derive(alice)\n\n-- Both secrets should be identical\nassert(alice_secret == bob_secret)\nprint(\"Shared secret established:\", openssl.hex(alice_secret))\n```\n\n### Example 11: ChaCha20-Poly1305 AEAD encryption\n\n```lua\nlocal openssl = require('openssl')\nlocal cipher = openssl.cipher\n\n-- Get ChaCha20-Poly1305 cipher\nlocal cc20 = cipher.get(\"chacha20-poly1305\")\n\n-- Prepare key and nonce\nlocal key = string.rep(\"k\", 32)  -- 256-bit key\nlocal nonce = string.rep(\"n\", 12) -- 96-bit nonce\nlocal message = \"Secret message\"\nlocal aad = \"Additional authenticated data\"\n\n-- Encrypt with AAD\nlocal enc = cc20:encrypt_new()\nenc:ctrl(openssl.cipher.EVP_CTRL_GCM_SET_IVLEN, #nonce)\nenc:init(key, nonce)\nenc:update(aad, true)  -- Set AAD\nlocal ciphertext = enc:update(message) .. enc:final()\nlocal tag = enc:ctrl(openssl.cipher.EVP_CTRL_GCM_GET_TAG, 16)\n\n-- Decrypt with AAD\nlocal dec = cc20:decrypt_new()\ndec:ctrl(openssl.cipher.EVP_CTRL_GCM_SET_IVLEN, #nonce)\ndec:init(key, nonce)\ndec:ctrl(openssl.cipher.EVP_CTRL_GCM_SET_TAG, tag)\ndec:update(aad, true)  -- Set AAD\nlocal plaintext = dec:update(ciphertext) .. dec:final()\n\nassert(plaintext == message)\nprint(\"Decrypted:\", plaintext)\n```\n\nFor more examples, please see test lua script files:\n- `test/eddsa.lua` - Ed25519/Ed448 digital signatures\n- `test/xecdh.lua` - X25519/X448 key exchange\n- `test/chacha20.lua` - ChaCha20-Poly1305 AEAD encryption\n- `test/2.kdf.lua` - Key derivation functions (PBKDF2, HKDF, SCRYPT)\n- `test/2.param.lua` - OSSL_PARAM API usage\n\n---\n\n## Contributing \u0026 Community\n\nContributions via PR or issues are welcome.\n- Coding style: please use clang-format.\n- Unit tests: recommended [luaunit](https://github.com/bluebird75/luaunit).\n- Issue tracker: [GitHub Issues](https://github.com/zhaozg/lua-openssl/issues/)\n\n## Security Notice\n\nThis project involves cryptographic algorithms and is intended for learning and research purposes only. Do not use in production for security-sensitive scenarios. Always follow OpenSSL security advisories and keep dependencies up to date.\n\n---\n\n**_lua-openssl License_**\n\nCopyright (c) 2011 - 2026 zhaozg, zhaozg(at)gmail.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n---\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaozg%2Flua-openssl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaozg%2Flua-openssl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaozg%2Flua-openssl/lists"}