Merge pull request #113 from ultrasonic/add-support-api-implementations

Add supported (tested) subsonic api implementations in README.
This commit is contained in:
Yahor Berdnikau 2017-12-27 22:30:31 +01:00 committed by GitHub
commit b5aae0c01c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -21,6 +21,15 @@ otherwise open [a new issue](https://github.com/ultrasonic/ultrasonic/issues/new
See [CONTRIBUTING](CONTRIBUTING.md). See [CONTRIBUTING](CONTRIBUTING.md).
## Supported (tested) Subsonic API implementations
- [Subsonic](http://www.subsonic.org/pages/index.jsp)
- [Airsonic](https://github.com/airsonic/airsonic)
- [Supysonic](https://github.com/spl0k/supysonic)
Other *Subsonic API* implementations should work as well as long as they follow API
[documentation](http://www.subsonic.org/pages/api.jsp).
## License ## License
This software is licensed under the terms of the GNU General Public License version 3 (GPLv3). This software is licensed under the terms of the GNU General Public License version 3 (GPLv3).

View File

@ -48,8 +48,8 @@ class SubsonicApiSSLTest {
cert = (CertificateFactory.getInstance("X.509") cert = (CertificateFactory.getInstance("X.509")
.generateCertificate(certificatePemStream)) as X509Certificate .generateCertificate(certificatePemStream)) as X509Certificate
} }
val alias = cert?.subjectX500Principal?.name ?: val alias = cert?.subjectX500Principal?.name
throw IllegalStateException("Failed to load certificate") ?: throw IllegalStateException("Failed to load certificate")
trustStore.setCertificateEntry(alias, cert) trustStore.setCertificateEntry(alias, cert)
val tmf = TrustManagerFactory.getInstance("X509") val tmf = TrustManagerFactory.getInstance("X509")