aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/tls.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/tls.vala')
-rw-r--r--xmpp-vala/src/module/tls.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/tls.vala b/xmpp-vala/src/module/tls.vala
index 06535319..0d4a7e73 100644
--- a/xmpp-vala/src/module/tls.vala
+++ b/xmpp-vala/src/module/tls.vala
@@ -5,6 +5,7 @@ namespace Xmpp.Tls {
public class Module : XmppStreamNegotiationModule {
public const string ID = "tls_module";
+ public static ModuleIdentity<Module> IDENTITY = new ModuleIdentity<Module>(NS_URI, ID);
public bool require { get; set; default = true; }
public bool server_supports_tls = false;
@@ -67,7 +68,7 @@ namespace Xmpp.Tls {
}
public static Module? get_module(XmppStream stream) {
- return (Module?) stream.get_module(NS_URI, ID);
+ return (Module?) stream.get_module(IDENTITY);
}
public override bool mandatory_outstanding(XmppStream stream) {