Skip to content

Commit 51629a7

Browse files
enable SHA1 with windows cert store test case
1 parent d26a556 commit 51629a7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ jobs:
6161
# Enable the Windows cert store API (not in the repo user_settings.h).
6262
# Appended to wolfssh/ide/winvs/user_settings.h, which the VS projects
6363
# put on the include path before wolfssl/IDE/WIN.
64-
printf '\n/* Appended by windows-cert-store-test CI */\n#define WOLFSSH_WINDOWS_CERT_STORE\n' >> ${{env.USER_SETTINGS_H_NEW}}
64+
# WC_SIG_MIN_HASH_TYPE: x509v3-ssh-rsa signs H with SHA-1 (RFC 6187
65+
# names no other RSA form), which wc_SignatureVerify rejects at its
66+
# default SHA-256 floor. Needed for the RSA x509v3 host key step; see
67+
# the same define in tpm-ssh.yml.
68+
printf '\n/* Appended by windows-cert-store-test CI */\n#define WOLFSSH_WINDOWS_CERT_STORE\n#define WC_SIG_MIN_HASH_TYPE WC_HASH_TYPE_SHA\n' >> ${{env.USER_SETTINGS_H_NEW}}
6569
cp ${{env.USER_SETTINGS_H_NEW}} ${{env.USER_SETTINGS_H}}
6670
6771
- name: Build wolfssl library

0 commit comments

Comments
 (0)