Overview
Comment: | Update to recent ObjFW changes. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
fb7805c61b2eb6486fa376e96c4c2d71 |
User & Date: | js on 2011-09-12 20:08:45 |
Other Links: | manifest | tags |
Context
2011-09-14
| ||
20:09 | Make it possible to require TLS. check-in: 44237d2647 user: js tags: trunk | |
2011-09-12
| ||
20:08 | Update to recent ObjFW changes. check-in: fb7805c61b user: js tags: trunk | |
2011-09-10
| ||
18:24 | Remove obsolete comment check-in: 92e951e73f user: florob@babelmonkeys.de tags: trunk | |
Changes
Modified src/XMPPConnection.m from [09cb9f4b6c] to [6deb2fd84f].
︙ | |||
92 93 94 95 96 97 98 | 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 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | - + - + - + - + - + - + - + - + - + - + | - (void)setUsername: (OFString*)username_ { OFString *old = username; char *node; Stringprep_rc rc; |
︙ | |||
237 238 239 240 241 242 243 | 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 | - + - + | char *cDomainToASCII; Idna_rc rc; if (server) [sock connectToHost: server port: port]; else { |
︙ |
Modified src/XMPPJID.m from [a2663297e0] to [29e551d558].
︙ | |||
106 107 108 109 110 111 112 | 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | - + - + - + - + | if (node_ == nil) { [old release]; node = nil; return; } |
︙ | |||
166 167 168 169 170 171 172 | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | - + - + | if (resource_ == nil) { [old release]; resource = nil; return; } |
︙ |
Modified src/XMPPPLAINAuth.m from [ee98e083fb] to [0f39082dfe].
︙ | |||
52 53 54 55 56 57 58 | 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | - - + + - - + + | if (authzid) [message addItem: authzid]; /* separator */ [message addItem: ""]; /* authcid */ |
︙ |
Modified src/XMPPSCRAMAuth.m from [b88bfe5c49] to [e3e56c14fb].
︙ | |||
164 165 166 167 168 169 170 | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | - - + + - - + + | [clientFirstMessageBare release]; clientFirstMessageBare = nil; clientFirstMessageBare = [[OFString alloc] initWithFormat: @"n=%@,r=%@", authcid, cNonce]; |
︙ | |||
194 195 196 197 198 199 200 | 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | - - - + + + | GOT_ITERCOUNT = 0x04 } got = 0; hash = [[[hashType alloc] init] autorelease]; ret = [OFDataArray dataArrayWithItemSize: 1]; authMessage = [OFDataArray dataArrayWithItemSize: 1]; |
︙ | |||
228 229 230 231 232 233 234 | 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 | - - + + - - + + - - + + - - + + - - + + | } if (got != (GOT_SNONCE | GOT_SALT | GOT_ITERCOUNT)) @throw [OFInvalidServerReplyException newWithClass: isa]; // Add c=<base64(GS2Header+channelBindingData)> tmpArray = [OFDataArray dataArrayWithItemSize: 1]; |
︙ | |||
340 341 342 343 344 345 346 | 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 | - - + + - - - + + + | } // Add p=<base64(ClientProof)> [ret addItem: ","]; [ret addNItems: 2 fromCArray: "p="]; tmpString = [tmpArray stringByBase64Encoding]; |
︙ | |||
389 390 391 392 393 394 395 396 397 398 399 400 401 402 | 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | + | while (tmp == ',') tmp = ((buf[i] >> 1) % ('~' - '!')) + '!'; buf[i] = tmp; } return [OFString stringWithCString: (char*)buf encoding: OF_STRING_ENCODING_ASCII length: 64]; } - (uint8_t*)XMPP_HMACWithKey: (OFDataArray*)key data: (OFDataArray*)data { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; |
︙ |
Modified src/XMPPSRVLookup.m from [4fcb2e211c] to [50f66c7748].
︙ | |||
98 99 100 101 102 103 104 | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | - + + + | port = ntohs(rdata[2]); if (dn_expand(ns_msg_base(handle), ns_msg_end(handle), (uint8_t*)&rdata[3], buffer, NS_MAXDNAME) < 1) @throw [OFInitializationFailedException newWithClass: isa]; |
︙ | |||
209 210 211 212 213 214 215 | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 | - - + + + | if (res_ninit(&resState)) @throw [OFAddressTranslationFailedException newWithClass: isa socket: nil host: domain]; answer = [self allocMemoryWithSize: of_pagesize]; |
︙ |