Overview
Comment: | Style improvements. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
58085da5c55c67c39daf638f9a17dd76 |
User & Date: | js on 2012-01-26 12:35:05 |
Other Links: | manifest | tags |
Context
2012-01-26
| ||
22:22 | Add missing headers to Xcode project. check-in: 93de763475 user: js tags: trunk | |
12:35 | Style improvements. check-in: 58085da5c5 user: js tags: trunk | |
12:34 | Update Xcode project and reexport ObjOpenSSL. check-in: 42adbaeaf5 user: js tags: trunk | |
Changes
Modified src/XMPPCallback.h from [d3b2ead060] to [e7183d6d5f].
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | - + + - - + + + | */ #import <ObjFW/ObjFW.h> @class XMPPIQ; #ifdef OF_HAVE_BLOCKS |
Modified src/XMPPCallback.m from [00c028907e] to [d293755462].
︙ | |||
24 25 26 27 28 29 30 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | - + - + | # include "config.h" #endif #import "XMPPCallback.h" @implementation XMPPCallback #ifdef OF_HAVE_BLOCKS |
︙ | |||
51 52 53 54 55 56 57 | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | - - + - - - + | } - initWithCallbackObject: (id)object_ selector: (SEL)selector_ { self = [super init]; |
Modified src/XMPPConnection.m from [93e7490cdd] to [677aa509d2].
︙ | |||
379 380 381 382 383 384 385 | 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | - - - + + + - - + + | @selector(connection:didSendElement:)]) [delegate connection: self didSendElement: element]; [sock writeString: [element XMLString]]; } |
︙ | |||
929 930 931 932 933 934 935 | 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 | - - - + + + | if (resource != nil) [bind addChild: [OFXMLElement elementWithName: @"resource" namespace: XMPP_NS_BIND stringValue: resource]]; [iq addChild: bind]; |
︙ | |||
988 989 990 991 992 993 994 | 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 | - - - + + + | { XMPPIQ *iq; iq = [XMPPIQ IQWithType: @"set" ID: [self generateStanzaID]]; [iq addChild: [OFXMLElement elementWithName: @"session" namespace: XMPP_NS_SESSION]]; |
︙ |
Modified src/XMPPEXTERNALAuth.m from [aad38dee82] to [b61498fa1a].
︙ | |||
38 39 40 41 42 43 44 | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - + | return [[[self alloc] initWithAuthzid: authzid_ authcid: nil password: nil] autorelease]; } - (OFDataArray*)initialMessage { |
︙ |
Modified src/XMPPPLAINAuth.m from [3b4c3d710b] to [755e5fff17].
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - + | return [[[self alloc] initWithAuthzid: authzid authcid: authcid password: password] autorelease]; } - (OFDataArray*)initialMessage { |
︙ |
Modified src/XMPPPresence.m from [9d5fdb884e] to [929fa57282].
︙ | |||
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | + + | ID: ID_]; } - (OFString*)type { if (type == nil) return @"available"; return type; } - (void)addShow: (OFString*)show { [self addChild: [OFXMLElement elementWithName: @"show" namespace: XMPP_NS_CLIENT stringValue: show]]; |
︙ |
Modified src/XMPPSCRAMAuth.m from [50454e1c4a] to [8bb70cd016].
︙ | |||
141 142 143 144 145 146 147 | 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | - + | authcid = nil; [old release]; } - (OFDataArray*)initialMessage { |
︙ | |||
211 212 213 214 215 216 217 | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | - - + + | enum { GOT_SNONCE = 0x01, GOT_SALT = 0x02, GOT_ITERCOUNT = 0x04 } got = 0; hash = [[[hashType alloc] init] autorelease]; |
︙ | |||
248 249 250 251 252 253 254 | 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | - + | } } if (got != (GOT_SNONCE | GOT_SALT | GOT_ITERCOUNT)) @throw [OFInvalidServerReplyException exceptionWithClass: isa]; // Add c=<base64(GS2Header+channelBindingData)> |
︙ | |||
274 275 276 277 278 279 280 | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | - + | [ret addNItems: [sNonce UTF8StringLength] fromCArray: [sNonce UTF8String]]; /* * IETF RFC 5802: * SaltedPassword := Hi(Normalize(password), salt, i) */ |
︙ | |||
301 302 303 304 305 306 307 | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 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 | - + - + - + - + - + - + | [authMessage addNItems: [ret count] fromCArray: [ret cArray]]; /* * IETF RFC 5802: * ClientKey := HMAC(SaltedPassword, "Client Key") */ |
︙ | |||
424 425 426 427 428 429 430 | 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | - + | length: 64]; } - (uint8_t*)XMPP_HMACWithKey: (OFDataArray*)key data: (OFDataArray*)data { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; |
︙ | |||
501 502 503 504 505 506 507 | 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 | - + - + | uOld = [self XMPP_HMACWithKey: str data: salty]; for (j = 0; j < digestSize; j++) result[j] ^= uOld[j]; for (j = 0; j < i - 1; j++) { |