- Notifications
You must be signed in to change notification settings - Fork5
Commitfe7bdf0
committed
Clean up password authentication code a bit.
Commitfe0a0b5, which moved code to do MD5 authentication to a separateCheckMD5Auth() function, left behind a comment that really belongs insidethe function, too. Also move the check for db_user_namespace inside thefunction, seems clearer that way.Now that the md5 salt is passed as argument to md5_crypt_verify, it's a bitsilly that it peeks into the Port struct to see if MD5 authentication wasused. Seems more straightforward to treat it as an MD5 authentication, ifthe md5 salt argument is given. And after that, md5_crypt_verify only usedthe Port argument to look at port->user_name, but that is redundant,because it is also passed as a separate 'role' argument. So remove the Portargument altogether.1 parentf7d54f4 commitfe7bdf0
3 files changed
+70
-63
lines changedLines changed: 10 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
| 53 | + | |
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
| |||
544 | 544 |
| |
545 | 545 |
| |
546 | 546 |
| |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 | 547 |
| |
553 | 548 |
| |
554 | 549 |
| |
| |||
714 | 709 |
| |
715 | 710 |
| |
716 | 711 |
| |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
717 | 718 |
| |
718 | 719 |
| |
719 | 720 |
| |
| |||
723 | 724 |
| |
724 | 725 |
| |
725 | 726 |
| |
726 |
| - | |
| 727 | + | |
727 | 728 |
| |
728 | 729 |
| |
729 | 730 |
| |
| |||
748 | 749 |
| |
749 | 750 |
| |
750 | 751 |
| |
751 |
| - | |
| 752 | + | |
752 | 753 |
| |
753 | 754 |
| |
754 | 755 |
| |
|
Lines changed: 57 additions & 51 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 |
| |
35 | 40 |
| |
36 | 41 |
| |
37 | 42 |
| |
38 |
| - | |
| 43 | + | |
39 | 44 |
| |
40 | 45 |
| |
41 | 46 |
| |
| |||
88 | 93 |
| |
89 | 94 |
| |
90 | 95 |
| |
91 |
| - | |
| 96 | + | |
92 | 97 |
| |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 |
| |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
| 108 | + | |
| 109 | + | |
106 | 110 |
| |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
111 | 116 |
| |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 |
| - | |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
129 | 123 |
| |
| 124 | + | |
130 | 125 |
| |
131 |
| - | |
132 |
| - | |
133 |
| - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
134 | 129 |
| |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
145 | 133 |
| |
146 |
| - | |
147 |
| - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
148 | 154 |
| |
149 | 155 |
| |
150 | 156 |
| |
| |||
167 | 173 |
| |
168 | 174 |
| |
169 | 175 |
| |
170 |
| - | |
| 176 | + | |
171 | 177 |
| |
172 | 178 |
| |
173 | 179 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
| 18 | + | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
|
0 commit comments
Comments
(0)