summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 18:57:18 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 21:36:32 (GMT)
commitcb05f5a908e20006c954ce38755c2e422ecc2388 (patch)
treea793551a5fe279a57d4330119560e8542f745484 /Swiften/TLS/SimpleCertificate.h
parentcad974b45c0fb9355e68d9728e42c9ae3dbcebc7 (diff)
downloadswift-contrib-cb05f5a908e20006c954ce38755c2e422ecc2388.zip
swift-contrib-cb05f5a908e20006c954ce38755c2e422ecc2388.tar.bz2
Removed Swift::String.
Diffstat (limited to 'Swiften/TLS/SimpleCertificate.h')
-rw-r--r--Swiften/TLS/SimpleCertificate.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/Swiften/TLS/SimpleCertificate.h b/Swiften/TLS/SimpleCertificate.h
index 7af8530..a81a23e 100644
--- a/Swiften/TLS/SimpleCertificate.h
+++ b/Swiften/TLS/SimpleCertificate.h
@@ -6,7 +6,7 @@
#pragma once
-#include "Swiften/Base/String.h"
+#include <string>
#include "Swiften/TLS/Certificate.h"
namespace Swift {
@@ -14,43 +14,43 @@ namespace Swift {
public:
typedef boost::shared_ptr<SimpleCertificate> ref;
- void setSubjectName(const String& name) {
+ void setSubjectName(const std::string& name) {
subjectName = name;
}
- String getSubjectName() const {
+ std::string getSubjectName() const {
return subjectName;
}
- std::vector<String> getCommonNames() const {
+ std::vector<std::string> getCommonNames() const {
return commonNames;
}
- void addCommonName(const String& name) {
+ void addCommonName(const std::string& name) {
commonNames.push_back(name);
}
- void addSRVName(const String& name) {
+ void addSRVName(const std::string& name) {
srvNames.push_back(name);
}
- void addDNSName(const String& name) {
+ void addDNSName(const std::string& name) {
dnsNames.push_back(name);
}
- void addXMPPAddress(const String& addr) {
+ void addXMPPAddress(const std::string& addr) {
xmppAddresses.push_back(addr);
}
- std::vector<String> getSRVNames() const {
+ std::vector<std::string> getSRVNames() const {
return srvNames;
}
- std::vector<String> getDNSNames() const {
+ std::vector<std::string> getDNSNames() const {
return dnsNames;
}
- std::vector<String> getXMPPAddresses() const {
+ std::vector<std::string> getXMPPAddresses() const {
return xmppAddresses;
}
@@ -66,11 +66,11 @@ namespace Swift {
void parse();
private:
- String subjectName;
+ std::string subjectName;
ByteArray der;
- std::vector<String> commonNames;
- std::vector<String> dnsNames;
- std::vector<String> xmppAddresses;
- std::vector<String> srvNames;
+ std::vector<std::string> commonNames;
+ std::vector<std::string> dnsNames;
+ std::vector<std::string> xmppAddresses;
+ std::vector<std::string> srvNames;
};
}