36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
-
+
-
+
-
-
+
+
+
+
+
|
+ (instancetype)EXTERNALAuthWithAuthzid: (OFString *)authzid
{
return [[[self alloc] initWithAuthzid: authzid
authcid: nil
password: nil] autorelease];
}
- (OFDataArray *)initialMessage
- (OFData *)initialMessage
{
OFDataArray *message = [OFDataArray dataArray];
OFMutableData *message = [OFMutableData data];
/* authzid */
if (_authzid)
[message addItem: _authzid];
if (_authzid != nil)
[message addItems: [_authzid UTF8String]
count: [_authzid UTF8StringLength]];
[message makeImmutable];
return message;
}
@end
|