droberson / ssh-honeypot

Fake sshd that logs ip addresses, usernames, and passwords.
MIT License
627 stars 242 forks source link

warning: ‘ssh_message_auth_password’ is deprecated [-Wdeprecated-declarations] #31

Open panacotar opened 3 days ago

panacotar commented 3 days ago

I cannot get to install this. When I run make, it throws this error: What am I missing?

cc -Wall -o bin/ssh-honeypot src/ssh-honeypot.c -lssh -ljson-c -lpcap -lssl -lcrypto
src/ssh-honeypot.c: In function ‘handle_ssh_auth’:
src/ssh-honeypot.c:631:60: warning: ‘ssh_message_auth_password’ is deprecated [-Wdeprecated-declarations]
  631 |                                                            ssh_message_auth_password(message));
      |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from src/ssh-honeypot.c:31:
/usr/include/libssh/server.h:302:39: note: declared here
  302 | SSH_DEPRECATED LIBSSH_API const char *ssh_message_auth_password(ssh_message msg);
      |                                       ^~~~~~~~~~~~~~~~~~~~~~~~~
src/ssh-honeypot.c:636:43: warning: ‘ssh_message_auth_password’ is deprecated [-Wdeprecated-declarations]
  636 |                                           ssh_message_auth_password(message));
      |                                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libssh/server.h:302:39: note: declared here
  302 | SSH_DEPRECATED LIBSSH_API const char *ssh_message_auth_password(ssh_message msg);

My env:

Linux [...] 6.8.0-48-generic #48-Ubuntu SMP PREEMPT_DYNAMIC [...] x86_64 x86_64 x86_64 GNU/Linux
panacotar commented 3 days ago

Ahh ok, I saw in a video this warning and noticed the build still succeeded. Adding a suggestion to the documentation.