@@ -150,7 +150,7 @@ nc_server_ssh_set_interactive_auth_clb(int (*interactive_auth_clb)(const struct
150150 server_opts .interactive_auth_data = user_data ;
151151 server_opts .interactive_auth_data_free = free_user_data ;
152152}
153-
153+
154154API void
155155nc_server_ssh_set_pubkey_auth_clb (int (* pubkey_auth_clb )(const struct nc_session * session , ssh_key key , void * user_data ),
156156 void * user_data , void (* free_user_data )(void * user_data ))
@@ -848,7 +848,7 @@ nc_sshcb_auth_kbdint(struct nc_session *session, ssh_message msg)
848848 char * pass_hash ;
849849
850850 if (server_opts .interactive_auth_clb ) {
851- auth_ret = server_opts .interactive_auth_clb (session , msg , server_opts .interactive_auth_data );
851+ auth_ret = server_opts .interactive_auth_clb (session , msg , server_opts .interactive_auth_data );
852852 } else {
853853 if (!ssh_message_auth_kbdint_is_response (msg )) {
854854 const char * prompts [] = {"Password: " };
@@ -939,12 +939,11 @@ nc_sshcb_auth_pubkey(struct nc_session *session, ssh_message msg)
939939 const char * username ;
940940 int signature_state ;
941941
942- if (server_opts .pubkey_auth_clb ){
943- if (server_opts .pubkey_auth_clb (session , ssh_message_auth_pubkey (msg ), server_opts .pubkey_auth_data )){
942+ if (server_opts .pubkey_auth_clb ) {
943+ if (server_opts .pubkey_auth_clb (session , ssh_message_auth_pubkey (msg ), server_opts .pubkey_auth_data )) {
944944 goto fail ;
945945 }
946- }
947- else {
946+ } else {
948947 if ((username = auth_pubkey_compare_key (ssh_message_auth_pubkey (msg ))) == NULL ) {
949948 VRB ("User \"%s\" tried to use an unknown (unauthorized) public key." , session -> username );
950949 goto fail ;
0 commit comments