fixed recently introduced bug

This commit is contained in:
Marc Wäckerlin
2017-04-07 14:15:24 +00:00
parent c86e96f568
commit bb52e6438e
5 changed files with 16 additions and 11 deletions

View File

@@ -151,12 +151,10 @@ namespace suisseid {
Certificate(const std::string& v,
const std::string& l,
const std::string& s,
const std::string& si,
const cryptoki::Attribute& i):
std::string(v),
_label(l),
_subject(s),
_si(si),
_id(i) {
}
const std::string& label() {
@@ -168,13 +166,9 @@ namespace suisseid {
const cryptoki::Attribute& id() {
return _id;
}
const std::string& subjectInfo() {
return _si;
}
private:
std::string _label;
std::string _subject;
std::string _si;
cryptoki::Attribute _id;
};
@@ -283,7 +277,6 @@ namespace suisseid {
res.push_back(Certificate(cert->attribute(CKA_VALUE).value,
cert->attribute(CKA_LABEL).value,
cert->attribute(CKA_SUBJECT).value,
cert->attribute(CKA_SUBJECT_INFO).value,
cert->attribute(CKA_ID)));
return res;
}