fixed recently introduced bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user