[Bug 3689] New: Implicit function declarations: SHA256, SHA512 with -DWITH_XMSS

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri May 10 08:37:41 AEST 2024


https://bugzilla.mindrot.org/show_bug.cgi?id=3689

            Bug ID: 3689
           Summary: Implicit function declarations: SHA256, SHA512 with
                    -DWITH_XMSS
           Product: Portable OpenSSH
           Version: -current
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: sshd
          Assignee: unassigned-bugs at mindrot.org
          Reporter: gabifalk at gmx.com

openssh built with -DWITH_XMSS flag triggers these errors (warnings
with gcc < 14):

gcc -DWITH_XMSS -g -O2 -pipe -Wno-error=format-truncation -Wall -Wextra
-Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security
-Wsizeof-pointer-memaccess -Wno-pointer-sign -Wno-unused-parameter
-Wno-unused-result -Wimplicit-fallthrough -Wmisleading-indentation
-fno-strict-aliasing -ftrapv -fzero-call-used-regs=used
-ftrivial-auto-var-init=zero -fno-builtin-memset
-fstack-protector-strong -fPIE   -I. -I.  -D_XOPEN_SOURCE=600
-D_BSD_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE
-DOPENSSL_API_COMPAT=0x10100000L -DSSHDIR=\"/usr/local/etc\"
-D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"
-D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\"
-D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\"
-D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\"
-D_PATH_SSH_PKCS11_HELPER=\"/usr/local/libexec/ssh-pkcs11-helper\"
-D_PATH_SSH_SK_HELPER=\"/usr/local/libexec/ssh-sk-helper\"
-D_PATH_SSH_PIDDIR=\"/var/run\"
-D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DHAVE_CONFIG_H -c
xmss_hash.c -o xmss_hash.o
xmss_hash.c: In function ‘core_hash_SHA2’:
xmss_hash.c:56:5: error: implicit declaration of function ‘SHA256’
[-Wimplicit-function-declaration]
   56 |     SHA256(buf, inlen + keylen + n, out);
      |     ^~~~~~
xmss_hash.c:61:7: error: implicit declaration of function ‘SHA512’
[-Wimplicit-function-declaration]
   61 |       SHA512(buf, inlen + keylen + n, out);
      |       ^~~~~~
make: *** [Makefile:195: xmss_hash.o] Error 1

It's a regression from commit
https://github.com/openssh/openssh-portable/commit/d571314d14b919fbd7c84a61f9bf2065fc0a6841
.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list