Skip to content

wincng: fix builds with RSA and DSA disabled - #2600

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:wcng-norsa
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:wcng-norsa

Conversation

@vszakats

Copy link
Copy Markdown
Member

Fixing:

x86_64-w64-mingw32-ld: src/CMakeFiles/libssh2_shared.dir/Unity/unity_0_c.c.obj: in function `userauth_hostbased_fromfile':
src/userauth.c:923:(.text+0x34c29): undefined reference to `ssh2_pub_privkey'
x86_64-w64-mingw32-ld: src/CMakeFiles/libssh2_shared.dir/Unity/unity_0_c.c.obj: in function `userauth_publickey':
src/userauth.c:1745:(.text+0x37171): undefined reference to `ssh2_pub_privkey'
collect2: error: ld returned 1 exit status

Note: This fixes the build, but leaves ssh2_pub_privkey() a no-op, because it's not implemented for ECDSA.

Fixing:
```
x86_64-w64-mingw32-ld: src/CMakeFiles/libssh2_shared.dir/Unity/unity_0_c.c.obj: in function `userauth_hostbased_fromfile':
src/userauth.c:923:(.text+0x34c29): undefined reference to `ssh2_pub_privkey'
x86_64-w64-mingw32-ld: src/CMakeFiles/libssh2_shared.dir/Unity/unity_0_c.c.obj: in function `userauth_publickey':
src/userauth.c:1745:(.text+0x37171): undefined reference to `ssh2_pub_privkey'
collect2: error: ld returned 1 exit status
```

Note: This fixes the build, but leaves `ssh2_pub_privkey()` a no-op,
because it's not implemented for ECDSA.
@vszakats vszakats added build Windows Windows-specific labels Sep 11, 2026
@vszakats vszakats changed the title wincng: fix to build with RSA and DSA disabled wincng: fix builds with RSA and DSA disabled Sep 11, 2026
@vszakats vszakats closed this in 3f26c15 Sep 11, 2026
@vszakats
vszakats deleted the wcng-norsa branch September 11, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Windows Windows-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant