Skip to content

Commit 2493d18

Browse files
enable sshd with test case
1 parent c0be817 commit 2493d18

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/windows-cert-store-test.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)