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

zhaozg / lua-openssl
93%
master: 94%

Build:
Build:
LAST BUILD BRANCH: HEAD
DEFAULT BRANCH: master
Repo Added 23 Jan 2022 09:12AM UTC
Files 45
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

LAST BUILD ON BRANCH copilot/improve-openssl-code-review
branch: copilot/improve-openssl-code-review
CHANGE BRANCH
x
Reset
  • copilot/improve-openssl-code-review
  • HEAD
  • ci
  • copilot/add-argon2-support
  • copilot/add-openssl-30-ossl-param-api
  • copilot/complete-roadmap-phase-2-tasks
  • copilot/enhance-kdf-module-development
  • copilot/fix-222b392f-2914-4a4f-aec4-9bf69a58faed
  • copilot/fix-48d6976d-3915-400f-8928-a2201b4100c6
  • copilot/fix-6c79a49a-25ca-4213-9310-86f4d5c8e1eb
  • copilot/fix-ec-module-warnings
  • copilot/fix-encryption-functions
  • copilot/fix-warning-in-three-files
  • copilot/implement-ec-group-point-interfaces
  • copilot/migrate-dh-module-to-evp-api
  • copilot/migrate-hmac-to-evp-mac
  • copilot/migrate-low-level-key-access
  • copilot/migrate-to-evp-pkey-keygen
  • copilot/optimize-error-handling
  • copilot/refactor-engine-module
  • copilot/refactor-rsa-module
  • copilot/refactor-src-ots-c
  • copilot/scan-ldoc-comments-coverage
  • copilot/update-valgrind-suppressions
  • feat/ec
  • fix/ED25519
  • fix/mem
  • fix/supp
  • master
  • valgrind

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

Relevant lines Covered
Build:
Build:
10532 RELEVANT LINES 9811 COVERED LINES
2076.23 HITS PER LINE
Source Files on copilot/improve-openssl-code-review
  • Tree
  • List 45
  • Changed 3
  • Source Changed 3
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
19190194259 copilot/improve-openssl-code-review 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(LIBRESS... push 08 Nov 2025 08:04AM UTC Copilot travis-ci
93.15
19189553740 copilot/improve-openssl-code-review 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, availab... Pull #339 08 Nov 2025 07:49AM UTC Copilot travis-ci
93.15
19189336343 copilot/improve-openssl-code-review Fix deprecated OpenSSL API usage in digest.c and pkey.c Replace EVP_MD_CTX_create/destroy with EVP_MD_CTX_new/free - Replace all EVP_MD_CTX_create() calls with EVP_MD_CTX_new() - Replace all EVP_MD_CTX_destroy() calls with EVP_MD_CTX_free() - Rem... Pull #339 08 Nov 2025 06:42AM UTC Copilot travis-ci
93.15
See All Builds (495)
  • Repo on GitHub
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

© 2025 Coveralls, Inc