Commit Graph

272 Commits (compatibility-fixes)

Author SHA1 Message Date
night1rider f74497df0a fixing compatability and file layout for .incs porting 2026-01-06 10:35:48 -07:00
Aidan Garske 885b5755c7 Update ref version for pr 347 2026-01-06 07:51:19 -07:00
Aidan Garske 4e2d52f315 Update wolfProvider ref 2026-01-06 07:51:19 -07:00
Aidan Garske 84e9f81847 Update rev for wolfProvider 2026-01-06 07:51:19 -07:00
Aidan Garske 7b32079a55 Add replace default method for fips image 2026-01-06 07:51:19 -07:00
Aidan Garske b2b23f29e1 Add support for wolfProvider RD unit test 2026-01-06 07:51:19 -07:00
Paul Adelsbach e0e50886a3 Add librelp ptest patch for FIPS 2026-01-06 07:51:19 -07:00
Paul Adelsbach 732047a410 Wolfprovider patch fix and other cleanup 2026-01-06 07:51:19 -07:00
Sameeh Jubran b3dc4c46ca linuxkm-fips: add Yocto recipe
Add commercial FIPS LinuxKM recipe.

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
Signed-off-by: Zackery Backman <zackery@wolfssl.com>
2026-01-06 07:51:19 -07:00
night1rider 0479b58c9c Fix location of openSSH patch to point to upstream osp 2026-01-06 07:51:19 -07:00
Paul Adelsbach d4e0576285 Add openssh ptest patch for wolfprovider 2026-01-06 07:51:19 -07:00
Aidan Garske d8bdf0c876 Add fix for wolfProvider curl FIPS 2026-01-06 07:51:19 -07:00
Reda Chouk f9e0bf64eb - Updated gnutls to point to the 3.8.11 branch to get the 3.8.11 version
of gnutls-wolfssl (https://github.com/wolfSSL/gnutls/tree/gnutls-wolfssl-3.8.11);
- added nettle 3.10 recipe, gnutls depends on nettle to be >= 3.10;
- removed conditional bbappends in favor of the demo image and
  recipes-core + inc configuration setup;
2026-01-06 07:51:19 -07:00
night1rider 995f8e97a0 Wrong file location for curl .inc 2026-01-06 07:51:19 -07:00
Aidan Garske 2663fd36a1 Refactor to handle all cases 2026-01-06 07:51:19 -07:00
Aidan Garske 141b3a684c Make RD and FIPS detection more robust 2026-01-06 07:51:19 -07:00
Paul Adelsbach a5a706e489 Add curl ptest patch 2026-01-06 07:51:19 -07:00
Sameeh Jubran c81584711f Add wolfssl-kernel-random.bbclass for kernel randomness patches
Bbclass to apply wolfSSL DRBG callback hooks to Linux kernel.
Fetches patches from wolfSSL GitHub, works with any kernel flavor.

Usage in kernel bbappend:
  inherit wolfssl-kernel-random
  WOLFSSL_KERNEL_RANDOM_PATCH = "5.17-ubuntu-jammy-tegra"

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
2026-01-06 07:51:19 -07:00
Sameeh Jubran 1bfaf61734 linuxkm: update to latest commit to include randomness changes for Tegra kernel
Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
2026-01-06 07:51:19 -07:00
Aidan Garske a3de087c3b Fix openssl patch 2026-01-06 07:51:19 -07:00
Paul Adelsbach 6ed2681722 Add openssl ptest patch 2026-01-06 07:51:19 -07:00
Sameeh Jubran 0258e8eb5f linuxkm: add non-FIPS kernel module recipe and initramfs integration class
This introduces support for building the wolfSSL Linux kernel module (linuxkm)
in non-FIPS configurations and adds a generic bbclass for including the module
in any initramfs image.

Key additions:
 - New recipe: wolfssl-linuxkm.bb (non-FIPS)
   * Builds linuxkm against the target kernel
   * Installs libwolfssl.ko into /lib/modules/.../extra
   * Adds auto-load entry under /etc/modules-load.d/
   * Tracks upstream wolfSSL master at commit 3062d1524

 - New class: wolfssl-initramfs.bbclass
   * Allows any initramfs image to include the linuxkm module
   * Intended to be inherited from BSP/distro override layers

This prepares the layer for future FIPS/non-FIPS split support and provides
a clean mechanism for systems that need early-boot availability of the
wolfSSL kernel module.

Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>
2026-01-06 07:51:19 -07:00
Aidan Garske 6a5fbab712 Add fix for loading conf in wolfproviderenv 2026-01-06 07:51:19 -07:00
Aidan Garske 458b26de36 Remove debug for wolfprovider 2026-01-06 07:51:19 -07:00
Paul Adelsbach 38614ed7b3 Add symlink in ossl-modules, install provider.conf from main module 2026-01-06 07:51:19 -07:00
Andrew Hutchings 8c49a2a141 Fix openssl target detection
This was not working properly on an ARM64 build.
2026-01-06 07:51:19 -07:00
night1rider 1d54635e16 Fips Image for reference 2026-01-06 07:51:19 -07:00
night1rider cb312d0dc2 Update wolfProvider images to match other demo images,
add to bbclass to ensure configurations are not added
to reciepes automatically.
2026-01-06 07:51:19 -07:00
night1rider 58ff717990 Fixes for when GNUPG is needed 2026-01-06 07:51:19 -07:00
night1rider f350ce36a8 Benchmark and GPG Error Patch to resolve build issues and disable benchmarking due to length of time it takes to run AES GCM in current port 2026-01-06 07:51:19 -07:00
Aidan Garske ce05463419 Add final wolfprovider refactor changes 2026-01-06 07:51:19 -07:00
Aidan Garske 108bcc4dd7 Fix naming for new fips rename 2026-01-06 07:51:19 -07:00
Andrew Hutchings 00ac650f16 Don't use fixed version for FIPS
User can use any FIPS wolfSSL package
2026-01-06 07:51:19 -07:00
Aidan Garske 239e9179a6 Append conf fil 2026-01-06 07:51:19 -07:00
Aidan Garske bbe26c7667 Follow Debian convention for provider config in openssl.cnf
- Install provider*.conf files to /etc/ssl/openssl.cnf.d/ instead of /opt
- Remove OPENSSL_CONF environment variable approach
- Add .include directive to openssl.cnf automatically in explicit load mode
- This allows OpenSSL to automatically load the provider configuration
- Update script output to reflect the new approach
2026-01-06 07:51:19 -07:00
Aidan Garske e088894db7 Add messages for debug files 2026-01-06 07:51:19 -07:00
Aidan Garske 45d7926a54 Update wolfprovider include files with local changes 2026-01-06 07:51:19 -07:00
Aidan Garske 438a79b40c fix stamp.h in append rather than main .bb 2026-01-06 07:51:19 -07:00
Andrew Hutchings 4cb314801c Add support for GCP and tarballs
The commercial package can now be retrieved from GCP and can be a
tarball without password protection.
2026-01-06 07:51:15 -07:00
Reda Chouk d63f2ff9e4 added do_configure[network] = "1" to the inc file (fixes networking issues on
some builds)
2026-01-06 07:47:55 -07:00
Reda Chouk 68bc4d8307 - added gnutls-image-minimal;
- update layer.conf to conditionally include gnutls-image-minimal if
  included in the WOLFSSL_DEMOS;
- minor update to inc/gnutls/gnutls-enable-wolfssl.inc to by pass the
  fuzzing binaries from the base recipes;
2026-01-06 07:47:55 -07:00
Reda Chouk 93b33024a4 gnutls layers (from https://github.com/wolfSSL/meta-wolfssl/pull/111/)
rebased against the new staging branch (refactor-meta-wolfssl)
2026-01-06 07:47:55 -07:00
Reda Chouk 8f4d00b41a Removed hmac generation and installation since this step is already
happening on the base recipe
2026-01-06 07:47:55 -07:00
Reda Chouk 7e38eaed81 fips support 2026-01-06 07:47:55 -07:00
Reda Chouk 54731ec63e gnutls-wolfssl layers
Added 3 layers
- gnutls: gnutls fork patched to use wolfssl as cryptographic
  provider
- wolfssl: wolfssl configured to work against gnutls
- wolfssl-gnutls-wrapper: shim layer that gets called by gnutls
  applications when linked against gnutls-wolfssl
- gnutls-wolfssl-tests: tests from the wolfssl-gnutls-wrapper folder
  installed under /usr/lib/wolfssl-gnutls-wrapper/

Everything gets installed under /usr ovverriding the system installed
recipes, the wrapper is symlinked in /opt.
Fips currently not supported.
2026-01-06 07:47:55 -07:00
Andrew Hutchings cfd3cf54e3 Fix the execution command for QEMU
The execution of QEMU to get the hash would fail when cross-compiling to
a different CPU target. This fixes it.
2026-01-06 07:47:55 -07:00
night1rider f84c9b334a Fix unstable meta data for fips package 2026-01-06 07:47:55 -07:00
Andrew Hutchings 8bb7f3f8d0 Fix FIPS package issues
* Fixes 7z extraction issues, mostly around using password when the
  password has already been stripped out
* Fixes autoreconf and configure issues with the FIPS package
* Fixes wolfcrypttest and wolfcryptbenchmark not being isntalled with
  FIPS when they are selected
2026-01-06 07:47:55 -07:00
Aidan Garske be24f596de Get conf files from source 2026-01-06 07:47:55 -07:00
Aidan Garske 0d5cb638df Fully tested images 2026-01-06 07:47:55 -07:00