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

Compilation error when disabling pubkey authentication (DROPBEAR_SVR_PUBKEY_AUTH) #168

Closed
davidbernard04 opened this issue May 27, 2022 · 0 comments · Fixed by MaxMougg/dropbear#1 or #169

Comments

@davidbernard04
Copy link

Using latest dropbear 2022.82, with only one option defined in localoptions.h:

#define DROPBEAR_SVR_PUBKEY_AUTH 0

The build fails with the following error message:

In file included from session.h:32:0,
                 from svr-chansession.c:28:
auth.h: In function 'svr_pubkey_set_forced_command':
auth.h:57:67: warning: unused parameter 'chansess' [-Wunused-parameter]
 static inline void svr_pubkey_set_forced_command(struct ChanSess *chansess) { }
                                                                   ^
svr-chansession.c: In function 'execchild':
svr-chansession.c:1043:26: error: 'struct AuthState' has no member named 'pubkey_info'
         if (ses.authstate.pubkey_info != NULL) {
                          ^
svr-chansession.c:1044:58: error: 'struct AuthState' has no member named 'pubkey_info'
                 addnewvar("SSH_PUBKEYINFO", ses.authstate.pubkey_info);
                                                          ^
make: *** [svr-chansession.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant