Skip to content

Add openssh 10.3p1 patch#331

Open
julek-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
julek-wolfssl:openssh-10.3p1
Open

Add openssh 10.3p1 patch#331
julek-wolfssl wants to merge 1 commit intowolfSSL:masterfrom
julek-wolfssl:openssh-10.3p1

Conversation

@julek-wolfssl
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 16:03
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new wolfSSL integration patch targeting OpenSSH 10.3p1, intended to let the codebase build and run OpenSSH’s test suite when configured with --with-wolfssl.

Changes:

  • Introduces openssh-10.3p1.patch with updates to OpenSSH build/configure logic for wolfSSL detection and feature flags.
  • Adds wolfSSL initialization/logging + RNG seeding hook wiring in the patched OpenSSH sources.
  • Updates patched OpenSSH test harness behavior to enable wolfSSL debugging in unit tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

+ wolfssl_fips=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
+ if test "x$wolfssl_fips" == "xyes" ; then
Comment on lines +837 to +838
+ if test "x$wolfssl_fips" == "xyes" ; then
+ AC_DEFINE([USING_WOLFSSL_FIPS], [1], [Defined if using wolfSSL FIPS])
Comment on lines +482 to +491
+ #if defined(FIPS_VERSION_GE) && FIPS_VERSION_GE(5,2)
+ # error macro not defined
+ #endif
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"
+then :
+ wolfssl_fips_gt_52=no
+else $as_nop
+ wolfssl_fips_gt_52=yes
Comment on lines +1052 to +1056
+#ifdef USING_WOLFSSL
+ wolfSSL_Debugging_ON();
+ wolfSSL_SetLoggingCb(Logging_cb);
+ wolfSSL_Init();
+#ifndef WC_RNG_SEED_CB
Comment on lines +1005 to +1009
@@ -186,6 +186,40 @@ log_verbose_reset(void)
nlog_verbose = 0;
}

+static void Logging_cb(const int logLevel, const char *const logMessage) {
Comment on lines +973 to +978
+ echo "WARNING : The OS X sandbox for renderer processes does not allow "
+ echo "/dev/urandom to be opened. wolfSSL relies on /dev/urandom for entropy"
+ echo ", including the generation of keys used for the peer-to-peer SSH "
+ echo "negotiation/session establishment. If you would use the sandboxing "
+ echo "mechanism, you must enable the access on /dev/urandom by adding "
+ echo "the two lines below at the end of the OS X system file "
+ fi
+ if test -d "${wolfssl_install_dir}/include"; then
+ if test -d "${wolfssl_install_dir}/include/wolfssl"; then
+ CPPFLAGS="$CPPFLAGS -I${wolfssl_install_dir}/include -I${wolfssl_install_dir}/include/wolfssl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants