Overview
Comment: | Perform SASLPrep on the username and Resourceprep on the resource
The username is not necessarily a nodepart, therefore SASLPrep is more |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ea9006fa3333f2a983d0b06733aff174 |
User & Date: | florob@babelmonkeys.de on 2011-02-15 02:52:16 |
Other Links: | manifest | tags |
Context
2011-02-16
| ||
19:23 | Make it compile. check-in: ca4f45a402 user: js tags: trunk | |
2011-02-15
| ||
02:52 | Perform SASLPrep on the username and Resourceprep on the resource check-in: ea9006fa33 user: florob@babelmonkeys.de tags: trunk | |
2011-02-13
| ||
01:07 | Add support for requesting a certain resource check-in: c322888ad7 user: florob@babelmonkeys.de tags: trunk | |
Changes
Modified src/XMPPConnection.m from [620a05ff31] to [2e30d4f8cc].
︙ | ︙ | |||
48 49 50 51 52 53 54 | - (void)setUsername: (OFString*)username_ { OFString *old = username; char *node; Stringprep_rc rc; | | | > > > > > > > > > > > > > > > > > > > > > | 48 49 50 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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | - (void)setUsername: (OFString*)username_ { OFString *old = username; char *node; Stringprep_rc rc; if ((rc = stringprep_profile([username_ cString], &node, "SASLprep", 0)) != STRINGPREP_OK) { of_log(@"SASLprep failed: %s", stringprep_strerror(rc)); assert(0); } @try { username = [[OFString alloc] initWithCString: node]; } @finally { free(node); } [old release]; } - (void)setResource: (OFString*)resource_ { OFString *old = resource; char *res; Stringprep_rc rc; if ((rc = stringprep_profile([resource_ cString], &res, "Resourceprep", 0)) != STRINGPREP_OK) { of_log(@"Resourceprep failed: %s", stringprep_strerror(rc)); assert(0); } @try { resource = [[OFString alloc] initWithCString: res]; } @finally { free(res); } [old release]; } - (void)setServer: (OFString*)server_ { OFString *old = server; |
︙ | ︙ |