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

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

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Ran 08 Nov 2025 08:04AM 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 07:55AM UTC coverage: 93.154%. Remained the same
19190194259

push

travis-ci

Copilot
Fix Provider API OpenSSL/LibreSSL compatibility and improve test handling

Address maintainer feedback for proper version adaptability:

Changes:
1. Enhanced version guards to explicitly exclude LibreSSL
   - src/provider.c: Added !defined(LIBRESSL_VERSION_NUMBER) check
   - src/openssl.h: Updated declaration guard
   - src/openssl.c: Updated registration guard
   - Added comment explaining LibreSSL exclusion

2. Improved test file error handling and messaging
   - test/provider.lua: Enhanced version detection
   - Better error messages when provider is unavailable
   - Display current OpenSSL version when tests are skipped
   - Check for both module availability and _error flag

3. Added verification script
   - test/provider_check.lua: Quick diagnostic tool
   - Shows OpenSSL version, LibreSSL detection
   - Lists available providers on compatible systems
   - Clear compatibility status reporting

Version Guard Pattern:
  Old: #if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
  New: #if (OPENSSL_VERSION_NUMBER >= 0x30000000L) && !defined(LIBRESSL_VERSION_NUMBER)

This ensures provider module:
- Compiles only on OpenSSL 3.0+
- Skips compilation on LibreSSL (any version)
- Provides stub with error message on incompatible versions
- Tests gracefully skip with clear messaging

Test Behavior:
- OpenSSL 3.0+: All tests run normally
- OpenSSL < 3.0: Tests skip with version message
- LibreSSL: Tests skip with LibreSSL message
- Build system: Compiles cleanly on all platforms

Co-authored-by: zhaozg <542599+zhaozg@users.noreply.github.com>

9811 of 10532 relevant lines covered (93.15%)

2076.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19190194259.1 08 Nov 2025 08:32AM UTC 45
93.15
Travis Job
Source Files on build 19190194259
  • Tree
  • List 45
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7e23455b on github
  • Prev Build on copilot/improve-openssl-code-review (#19189553740)
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