Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumblekit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/MKConnection.m')
-rw-r--r--src/MKConnection.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/MKConnection.m b/src/MKConnection.m
index 46704a6..2e6e822 100644
--- a/src/MKConnection.m
+++ b/src/MKConnection.m
@@ -325,7 +325,7 @@ static void MKConnectionUDPCallback(CFSocketRef sock, CFSocketCallBackType type,
#pragma mark -
-- (void) authenticateWithUsername:(NSString *)userName password:(NSString *)password {
+- (void) authenticateWithUsername:(NSString *)userName password:(NSString *)password accessTokens:(NSArray *)tokens {
NSData *data;
MPVersion_Builder *version = [MPVersion builder];
@@ -355,6 +355,9 @@ static void MKConnectionUDPCallback(CFSocketRef sock, CFSocketCallBackType type,
if (password) {
[authenticate setPassword:password];
}
+ if (tokens) {
+ [authenticate setTokensArray:tokens];
+ }
[authenticate addCeltVersions:MUMBLEKIT_CELT_BITSTREAM];
data = [[authenticate build] data];
[self sendMessageWithType:AuthenticateMessage data:data];