Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
panacotar opened this issue Nov 29, 2024 · 1 comment · May be fixed by #32
Open

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

panacotar opened this issue Nov 29, 2024 · 1 comment · May be fixed by #32

Comments

@panacotar
Copy link

panacotar commented Nov 29, 2024

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 panacotar linked a pull request Nov 29, 2024 that will close this issue
@panacotar
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant