Differences From Artifact [4ce23edb9d]:
- File
src/XMPPPLAINAuth.m
— part of check-in
[cd21ff1157]
at
2018-11-05 22:30:18
on branch trunk
— Kill #ifdef HAVE_CONFIG_H
There no longer is an Xcode project for which it is needed. (user: js, size: 2214) [annotate] [blame] [check-ins using]
To Artifact [aab4070d6d]:
- File src/XMPPPLAINAuth.m — part of check-in [abf66b5c9b] at 2019-03-16 20:58:13 on branch trunk — Use dot syntax (user: js, size: 2261) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 | /* * Copyright (c) 2011, Florian Zeitz <florob@babelmonkeys.de> * * https://heap.zone/objxmpp/ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice is present in all copies. * | > | 1 2 3 4 5 6 7 8 9 10 | /* * Copyright (c) 2011, Florian Zeitz <florob@babelmonkeys.de> * Copyright (c) 2019, Jonathan Schleifer <js@webkeks.org> * * https://heap.zone/objxmpp/ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice is present in all copies. * |
︙ | ︙ | |||
44 45 46 47 48 49 50 | - (OFData *)initialMessage { OFMutableData *message = [OFMutableData data]; /* authzid */ if (_authzid != nil) | | | | | | | | 45 46 47 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 | - (OFData *)initialMessage { OFMutableData *message = [OFMutableData data]; /* authzid */ if (_authzid != nil) [message addItems: _authzid.UTF8String count: _authzid.UTF8StringLength]; /* separator */ [message addItem: ""]; /* authcid */ [message addItems: _authcid.UTF8String count: _authcid.UTF8StringLength]; /* separator */ [message addItem: ""]; /* passwd */ [message addItems: _password.UTF8String count: _password.UTF8StringLength]; [message makeImmutable]; return message; } @end |