1
2
3
4
5
6
7
8
9
10
|
1
2
3
4
5
6
7
8
9
10
|
-
+
|
/*
* Copyright (c) 2012, Florian Zeitz <florob@babelmonkeys.de>
* Copyright (c) 2019, Jonathan Schleifer <js@heap.zone>
* Copyright (c) 2019, 2021, Jonathan Schleifer <js@nil.im>
*
* 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.
*
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
-
+
-
|
#include "config.h"
#import "XMPPEXTERNALAuth.h"
@implementation XMPPEXTERNALAuth: XMPPAuthenticator
+ (instancetype)EXTERNALAuth
{
return [[[self alloc] initWithAuthcid: nil
return [[[self alloc] initWithAuthcid: nil password: nil] autorelease];
password: nil] autorelease];
}
+ (instancetype)EXTERNALAuthWithAuthzid: (OFString *)authzid
{
return [[[self alloc] initWithAuthzid: authzid
authcid: nil
password: nil] autorelease];
|