summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-11-09 21:18:05 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-11-09 21:41:52 (GMT)
commitbc5b3a02de2e9131bff940c9667f28b2ae588807 (patch)
tree12db51e814fa92c219e102354f881a111e9f4f99 /Swiften/TLS/OpenSSL/OpenSSLCertificate.h
parentd27e3cbf2c9c99cb989d641466f252c6277c78fe (diff)
downloadswift-bc5b3a02de2e9131bff940c9667f28b2ae588807.zip
swift-bc5b3a02de2e9131bff940c9667f28b2ae588807.tar.bz2
Certificate::getCommonName -> getCommonNames.
Diffstat (limited to 'Swiften/TLS/OpenSSL/OpenSSLCertificate.h')
-rw-r--r--Swiften/TLS/OpenSSL/OpenSSLCertificate.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLCertificate.h b/Swiften/TLS/OpenSSL/OpenSSLCertificate.h
index fe2cddf..ad16081 100644
--- a/Swiften/TLS/OpenSSL/OpenSSLCertificate.h
+++ b/Swiften/TLS/OpenSSL/OpenSSLCertificate.h
@@ -18,8 +18,12 @@ namespace Swift {
OpenSSLCertificate(boost::shared_ptr<X509>);
OpenSSLCertificate(const ByteArray& der);
- String getCommonName() const {
- return commonName;
+ String getSubjectName() const {
+ return subjectName;
+ }
+
+ std::vector<String> getCommonNames() const {
+ return commonNames;
}
std::vector<String> getSRVNames() const {
@@ -51,13 +55,10 @@ namespace Swift {
xmppAddresses.push_back(addr);
}
- void setCommonName(const String& commonName) {
- this->commonName = commonName;
- }
-
private:
boost::shared_ptr<X509> cert;
- String commonName;
+ String subjectName;
+ std::vector<String> commonNames;
std::vector<String> dnsNames;
std::vector<String> xmppAddresses;
std::vector<String> srvNames;