File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,11 +48,18 @@ jobs:
4848
4949 - name : updated user_settings.h for sshd and x509
5050 working-directory : ${{env.GITHUB_WORKSPACE}}
51- run : cp ${{env.USER_SETTINGS_H_NEW}} ${{env.USER_SETTINGS_H}}
52-
53- - name : replace wolfSSL user_settings.h with wolfSSH user_settings.h
54- working-directory : ${{env.GITHUB_WORKSPACE}}
55- run : get-content ${{env.USER_SETTINGS_H_NEW}} | %{$_ -replace "if 0","if 1"}
51+ shell : pwsh
52+ run : |
53+ # Copy wolfSSH user_settings.h to wolfSSL location
54+ Copy-Item -Path ${{env.USER_SETTINGS_H_NEW}} -Destination ${{env.USER_SETTINGS_H}} -Force
55+
56+ # Enable the #if 0 blocks by changing them to #if 1
57+ # This enables X509/CertManager support and SSHD features
58+ $content = Get-Content -Path ${{env.USER_SETTINGS_H}} -Raw
59+ $content = $content -replace '#if 0', '#if 1'
60+ Set-Content -Path ${{env.USER_SETTINGS_H}} -Value $content -NoNewline
61+
62+ Write-Host "Updated user_settings.h: Enabled X509 and SSHD features (WOLFSSH_SSHD, WOLFSSH_CERTS, etc.)"
5663
5764 - name : Build wolfssl library
5865 working-directory : ${{ github.workspace }}\wolfssl
You can’t perform that action at this time.
0 commit comments