| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-09-30 04:08:59 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-09-30 04:08:59 UTC |
| parent | 9f8f06910ba8c4d1e241f9d6dbba8bbd553ab6d5 |
| borogove/streams/XmppStropheStream.hx | +4 | -0 |
diff --git a/borogove/streams/XmppStropheStream.hx b/borogove/streams/XmppStropheStream.hx index 0fc4fef..ad123b0 100644 --- a/borogove/streams/XmppStropheStream.hx +++ b/borogove/streams/XmppStropheStream.hx @@ -211,6 +211,7 @@ class XmppStropheStream extends GenericStream { } public static function strophe_certfail_handler(cert:StropheTlsCert, err:RawConstPointer<Char>): Int { +#if STROPHE_HAVE_TLS_CERT_USERDATA final userdata = StropheTlsCert.get_userdata(cert); final stream: XmppStropheStream = untyped __cpp__("static_cast<hx::Object*>(userdata)"); final dnsNames: Array<String> = []; @@ -226,6 +227,9 @@ class XmppStropheStream extends GenericStream { default: return 0; } +#else + return 0; +#end } public static function strophe_stanza(conn:StropheConn, sstanza:StropheStanza, userdata:RawPointer<Void>):Int {