• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zhaozg / lua-openssl / 19189553740
93%
master: 94%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 08 Nov 2025 07:49AM UTC
Jobs 1
Files 45
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Nov 2025 06:53AM UTC coverage: 93.154% (+0.004%) from 93.15%
19189553740

Pull #339

travis-ci

Copilot
Add Provider API support for OpenSSL 3.0+

Implement comprehensive provider module with Lua bindings:
- src/provider.c: Full provider API implementation
  - load/unload providers (default, fips, legacy, base, null)
  - Query provider name, availability, parameters
  - Provider self-test support
  - List available providers
  - Proper memory management and error handling

- test/provider.lua: Extensive test suite (300+ lines)
  - Basic operations: load, name, available, params
  - Multiple provider tests (default, legacy, fips, base, null)
  - Integration tests with digest and cipher operations
  - Performance tests for load/unload operations
  - Error handling tests for invalid providers

- Build system updates:
  - CMakeLists.txt: Added provider.c to build
  - Makefile: Added src/provider.o to OBJS
  - src/openssl.h: Added luaopen_provider() declaration
  - src/openssl.c: Registered provider module

Features:
- OpenSSL 3.0+ provider architecture support
- Load/query/unload providers dynamically
- Get provider parameters and metadata
- Self-test capability for FIPS compliance
- Graceful fallback for OpenSSL < 3.0

API Usage:
  local provider = require('openssl').provider
  local prov = provider.load('default')
  print(prov:name())              -- "default"
  print(prov:available())         -- true
  local params = prov:get_params({'name', 'version'})
  prov:self_test()                -- Run self-test
  prov:unload()                   -- Unload provider

Co-authored-by: zhaozg <542599+zhaozg@users.noreply.github.com>
Pull Request #339: Deep code review, deprecated API fixes, and Provider API implementation: OpenSSL audit and modernization

14 of 16 new or added lines in 4 files covered. (87.5%)

9811 of 10532 relevant lines covered (93.15%)

2052.36 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
95.09
-0.11% src/digest.c
Jobs
ID Job ID Ran Files Coverage
1 19189553740.1 08 Nov 2025 07:54AM UTC 45
93.15
Travis Job
Source Files on build 19189553740
  • Tree
  • List 45
  • Changed 5
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #339
  • PR Base - master (#19103391907)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc