mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Smack 4.0.6
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAABCgBmBQJUci2fXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxMzU3QjAxODY1QjI1MDNDMTg0NTNEMjA4 Q0FDMkE5Njc4NTQ4RTM1AAoJEIysKpZ4VI415IIH/j1eCvLIjNqNP6ytXdgomYY+ j2i5KRHMv69La1JqtdmAeTeZfD13549s/66I5VUfegEfaADGUPr1NGrQKlb8lJBe YSqthMaQUybLBuCL9Lwg/3jE6s27GixRjW/Wip4ntac1wS2R3qD18lAxYIivsGJh gvyGHGoXvdct6teu9X0RtmyE/EOBfV63y1gVJG07Jv5/AJ2wCh9dIOD4jFuqvkoA cz2OfVJOIFletBV2psLxc0VVeqU9Lpba5TZuW1ZylY61z+X2rpt9BwCgBD35jTF9 ztP2ytQY80+vZO6uP+Tl75QxdQd/e0O9oGnYbmMp1gfYQjgETaHUDxAL2uw4XNo= =7UY+ -----END PGP SIGNATURE----- Merge tag '4.0.6' Smack 4.0.6 Conflicts: smack-core/src/main/java/org/jivesoftware/smack/util/DNSUtil.java smack-extensions/src/main/java/org/jivesoftware/smackx/caps/EntityCapsManager.java version.gradle
This commit is contained in:
commit
cc09192095
3 changed files with 29 additions and 22 deletions
|
@ -141,6 +141,17 @@ hr {
|
|||
|
||||
<div id="pageBody">
|
||||
|
||||
<h2>4.0.6 -- <span style="font-weight: normal;">2014-11-23</span></h2>
|
||||
|
||||
<h2> Bug
|
||||
</h2>
|
||||
<ul>
|
||||
<li>[<a href='https://igniterealtime.org/issues/browse/SMACK-616'>SMACK-616</a>] - Smack should fallback to using host with default port if DNS SRV lookup fails
|
||||
</li>
|
||||
<li>[<a href='https://igniterealtime.org/issues/browse/SMACK-617'>SMACK-617</a>] - Message Digest in EntityCapsManager should be synchronized
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h2>4.0.5 -- <span style="font-weight: normal;">2014-10-22</span></h2>
|
||||
|
||||
<h2> Bug
|
||||
|
|
|
@ -96,17 +96,13 @@ public class DNSUtil {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a list of HostAddresses under which the specified XMPP server can be
|
||||
* reached at for client-to-server communication. A DNS lookup for a SRV
|
||||
* record in the form "_xmpp-client._tcp.example.com" is attempted, according
|
||||
* to section 14.4 of RFC 3920. If that lookup fails, a lookup in the older form
|
||||
* of "_jabber._tcp.example.com" is attempted since servers that implement an
|
||||
* older version of the protocol may be listed using that notation. If that
|
||||
* lookup fails as well, it's assumed that the XMPP server lives at the
|
||||
* host resolved by a DNS lookup at the specified domain on the default port
|
||||
* of 5222.<p>
|
||||
*
|
||||
* Returns a list of HostAddresses under which the specified XMPP server can be reached at for client-to-server
|
||||
* communication. A DNS lookup for a SRV record in the form "_xmpp-client._tcp.example.com" is attempted, according
|
||||
* to section 3.2.1 of RFC 6120. If that lookup fails, it's assumed that the XMPP server lives at the host resolved
|
||||
* by a DNS lookup at the specified domain on the default port of 5222.
|
||||
* <p>
|
||||
* As an example, a lookup for "example.com" may return "im.example.com:5269".
|
||||
* </p>
|
||||
*
|
||||
* @param domain the domain.
|
||||
* @return List of HostAddress, which encompasses the hostname and port that the
|
||||
|
@ -124,17 +120,13 @@ public class DNSUtil {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a list of HostAddresses under which the specified XMPP server can be
|
||||
* reached at for server-to-server communication. A DNS lookup for a SRV
|
||||
* record in the form "_xmpp-server._tcp.example.com" is attempted, according
|
||||
* to section 14.4 of RFC 3920. If that lookup fails, a lookup in the older form
|
||||
* of "_jabber._tcp.example.com" is attempted since servers that implement an
|
||||
* older version of the protocol may be listed using that notation. If that
|
||||
* lookup fails as well, it's assumed that the XMPP server lives at the
|
||||
* host resolved by a DNS lookup at the specified domain on the default port
|
||||
* of 5269.<p>
|
||||
*
|
||||
* Returns a list of HostAddresses under which the specified XMPP server can be reached at for server-to-server
|
||||
* communication. A DNS lookup for a SRV record in the form "_xmpp-server._tcp.example.com" is attempted, according
|
||||
* to section 3.2.1 of RFC 6120. If that lookup fails , it's assumed that the XMPP server lives at the host resolved
|
||||
* by a DNS lookup at the specified domain on the default port of 5269.
|
||||
* <p>
|
||||
* As an example, a lookup for "example.com" may return "im.example.com:5269".
|
||||
* </p>
|
||||
*
|
||||
* @param domain the domain.
|
||||
* @return List of HostAddress, which encompasses the hostname and port that the
|
||||
|
@ -178,7 +170,8 @@ public class DNSUtil {
|
|||
addresses.addAll(sortedRecords);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOGGER.log(Level.WARNING, "Exception while resolving SRV records for " + domain, e);
|
||||
LOGGER.log(Level.WARNING, "Exception while resovling SRV records for " + domain
|
||||
+ ". Consider adding '_xmpp-(server|client)._tcp' DNS SRV Records", e);
|
||||
}
|
||||
|
||||
// Step two: Add the hostname to the end of the list
|
||||
|
|
|
@ -678,7 +678,10 @@ public class EntityCapsManager extends Manager {
|
|||
// encoded using Base64 as specified in Section 4 of RFC 4648
|
||||
// (note: the Base64 output MUST NOT include whitespace and MUST set
|
||||
// padding bits to zero).
|
||||
byte[] digest = md.digest(sb.toString().getBytes());
|
||||
byte[] digest;
|
||||
synchronized(md) {
|
||||
digest = md.digest(sb.toString().getBytes());
|
||||
}
|
||||
return Base64.encodeToString(digest);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue