Commit 7853fc6
committed
fix: always send USERAUTH_FAILURE on reject
RFC 4252 section 5.1 has the server answer a request it does not accept
with USERAUTH_FAILURE. A callback returning WOLFSSH_USERAUTH_REJECTED
now always gets that reply.
NO_FAILURE_ON_REJECTED suppressed it. The macro was never set by
configure, named in a header, or documented, and it guarded all four
method handlers alike.
- drop the macro and its four guards
- add test_UserAuthRejectedSendsFailure(), asserting on the wire, since
the handler returns WS_USER_AUTH_E either way
Issue: F-116721 parent 9731cfe commit 7853fc6
2 files changed
Lines changed: 77 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8506 | 8506 | | |
8507 | 8507 | | |
8508 | 8508 | | |
8509 | | - | |
8510 | 8509 | | |
8511 | 8510 | | |
8512 | 8511 | | |
8513 | | - | |
8514 | 8512 | | |
8515 | 8513 | | |
8516 | 8514 | | |
| |||
8639 | 8637 | | |
8640 | 8638 | | |
8641 | 8639 | | |
8642 | | - | |
8643 | | - | |
8644 | | - | |
| 8640 | + | |
8645 | 8641 | | |
8646 | 8642 | | |
8647 | 8643 | | |
| |||
8754 | 8750 | | |
8755 | 8751 | | |
8756 | 8752 | | |
8757 | | - | |
8758 | | - | |
8759 | | - | |
| 8753 | + | |
8760 | 8754 | | |
8761 | 8755 | | |
8762 | 8756 | | |
| |||
10186 | 10180 | | |
10187 | 10181 | | |
10188 | 10182 | | |
10189 | | - | |
10190 | | - | |
10191 | | - | |
| 10183 | + | |
10192 | 10184 | | |
10193 | 10185 | | |
10194 | 10186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7959 | 7959 | | |
7960 | 7960 | | |
7961 | 7961 | | |
| 7962 | + | |
| 7963 | + | |
| 7964 | + | |
| 7965 | + | |
| 7966 | + | |
| 7967 | + | |
| 7968 | + | |
| 7969 | + | |
| 7970 | + | |
| 7971 | + | |
| 7972 | + | |
| 7973 | + | |
| 7974 | + | |
| 7975 | + | |
| 7976 | + | |
| 7977 | + | |
| 7978 | + | |
| 7979 | + | |
| 7980 | + | |
| 7981 | + | |
| 7982 | + | |
| 7983 | + | |
| 7984 | + | |
| 7985 | + | |
| 7986 | + | |
| 7987 | + | |
| 7988 | + | |
| 7989 | + | |
| 7990 | + | |
| 7991 | + | |
| 7992 | + | |
| 7993 | + | |
| 7994 | + | |
| 7995 | + | |
| 7996 | + | |
| 7997 | + | |
| 7998 | + | |
| 7999 | + | |
| 8000 | + | |
| 8001 | + | |
| 8002 | + | |
| 8003 | + | |
| 8004 | + | |
| 8005 | + | |
| 8006 | + | |
| 8007 | + | |
| 8008 | + | |
| 8009 | + | |
| 8010 | + | |
| 8011 | + | |
| 8012 | + | |
| 8013 | + | |
| 8014 | + | |
| 8015 | + | |
| 8016 | + | |
| 8017 | + | |
| 8018 | + | |
| 8019 | + | |
| 8020 | + | |
| 8021 | + | |
| 8022 | + | |
| 8023 | + | |
| 8024 | + | |
| 8025 | + | |
| 8026 | + | |
| 8027 | + | |
| 8028 | + | |
| 8029 | + | |
| 8030 | + | |
7962 | 8031 | | |
7963 | 8032 | | |
7964 | 8033 | | |
| |||
17715 | 17784 | | |
17716 | 17785 | | |
17717 | 17786 | | |
| 17787 | + | |
| 17788 | + | |
| 17789 | + | |
| 17790 | + | |
| 17791 | + | |
17718 | 17792 | | |
17719 | 17793 | | |
17720 | 17794 | | |
| |||
0 commit comments