Commit 0823869
committed
On the user-defined-authn branch: In the interaction diagram, correct the
position in the handshake sequence where pipelining is optionally turned
off on a connection. Add the option to reset pipelining on two more
callbacks; current internal schemes sometimes restore it during the 'handle'
phase, and sometimes (notably spnego) during the response validation phase.
This makes the API for user-defined implementations more flexible at the
cost of having to deal with far too long argument lists. Ain't no fun if
it's less than six parameters, right?
* serf.h: Update the authentication interaction diagram.
(serf_authn_handle_func_t): Add the reset_pipelining argument and update
the docstring to hopefully make it clear what that argument means.
(serf_authn_setup_request_func_t): Add the reset_pipelining argument.
(serf_authn_validate_response_func_t): Update the docstring.
* auth/auth_user_defined.c
(struct authn_baton_wrapper::pipelining_was_reset): Rename from the shorter
but more ambiguous pipelining_reset.
(validate_handler): Add docstring.
(maybe_reset_pipelining): New. Now common code extracted from one of
the callbacks.
(serf__authn_user__handle,
serf__authn_user__setup_request): Implement the reset_pipelining argument.
(serf__authn_user__validate_response): Call maybe_reset_pipelining.
* test/test_auth.c
(user_authn_handle,
user_authn_setup_request): Implement the reset_pipelining argument.
git-svn-id: https://svn.apache.org/repos/asf/serf/branches/user-defined-authn@1926858 13f79535-47bb-0310-9956-ffa450edef681 parent c13ded1 commit 0823869
3 files changed
+70
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
92 | 121 | | |
93 | 122 | | |
94 | 123 | | |
| |||
135 | 164 | | |
136 | 165 | | |
137 | 166 | | |
138 | | - | |
| 167 | + | |
139 | 168 | | |
140 | | - | |
| 169 | + | |
141 | 170 | | |
142 | 171 | | |
143 | 172 | | |
| |||
156 | 185 | | |
157 | 186 | | |
158 | 187 | | |
| 188 | + | |
159 | 189 | | |
160 | 190 | | |
161 | 191 | | |
| |||
222 | 252 | | |
223 | 253 | | |
224 | 254 | | |
225 | | - | |
| 255 | + | |
| 256 | + | |
226 | 257 | | |
227 | 258 | | |
228 | 259 | | |
| |||
231 | 262 | | |
232 | 263 | | |
233 | 264 | | |
| 265 | + | |
234 | 266 | | |
235 | 267 | | |
236 | 268 | | |
| |||
249 | 281 | | |
250 | 282 | | |
251 | 283 | | |
| 284 | + | |
252 | 285 | | |
253 | 286 | | |
254 | 287 | | |
| |||
271 | 304 | | |
272 | 305 | | |
273 | 306 | | |
274 | | - | |
| 307 | + | |
| 308 | + | |
275 | 309 | | |
276 | 310 | | |
277 | 311 | | |
278 | 312 | | |
| 313 | + | |
| 314 | + | |
279 | 315 | | |
280 | 316 | | |
281 | 317 | | |
| |||
334 | 370 | | |
335 | 371 | | |
336 | 372 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 373 | + | |
350 | 374 | | |
351 | 375 | | |
352 | 376 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| 965 | + | |
965 | 966 | | |
966 | 967 | | |
967 | 968 | | |
968 | 969 | | |
969 | | - | |
| 970 | + | |
970 | 971 | | |
971 | 972 | | |
| 973 | + | |
| 974 | + | |
972 | 975 | | |
973 | 976 | | |
974 | 977 | | |
975 | 978 | | |
976 | 979 | | |
977 | | - | |
| 980 | + | |
978 | 981 | | |
979 | 982 | | |
980 | 983 | | |
| |||
1077 | 1080 | | |
1078 | 1081 | | |
1079 | 1082 | | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1080 | 1092 | | |
1081 | 1093 | | |
1082 | 1094 | | |
1083 | 1095 | | |
1084 | 1096 | | |
1085 | | - | |
| 1097 | + | |
| 1098 | + | |
1086 | 1099 | | |
1087 | 1100 | | |
1088 | 1101 | | |
| |||
1106 | 1119 | | |
1107 | 1120 | | |
1108 | 1121 | | |
| 1122 | + | |
| 1123 | + | |
1109 | 1124 | | |
1110 | 1125 | | |
1111 | 1126 | | |
1112 | 1127 | | |
1113 | 1128 | | |
1114 | | - | |
| 1129 | + | |
| 1130 | + | |
1115 | 1131 | | |
1116 | 1132 | | |
1117 | 1133 | | |
| |||
1134 | 1150 | | |
1135 | 1151 | | |
1136 | 1152 | | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
| 1153 | + | |
1140 | 1154 | | |
1141 | 1155 | | |
1142 | 1156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
736 | | - | |
| 736 | + | |
| 737 | + | |
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
| |||
753 | 754 | | |
754 | 755 | | |
755 | 756 | | |
| 757 | + | |
756 | 758 | | |
757 | 759 | | |
758 | 760 | | |
759 | | - | |
| 761 | + | |
| 762 | + | |
760 | 763 | | |
761 | 764 | | |
762 | 765 | | |
| |||
777 | 780 | | |
778 | 781 | | |
779 | 782 | | |
| 783 | + | |
| 784 | + | |
780 | 785 | | |
781 | 786 | | |
782 | 787 | | |
| |||
0 commit comments