fix for non C++11-compilers (mac); refs #28

master
Marc Wäckerlin 11 years ago
parent 3012a6c5ed
commit ae3a93c9a6
  1. 10
      src/cryptoki.hxx

@ -2015,7 +2015,10 @@ namespace cryptoki {
Attribute attribute(CK_ATTRIBUTE_TYPE a) {
CRYPTOLOG("log");
Attribute res;
CK_ATTRIBUTE attr(CK_ATTRIBUTE{a, 0, 0});
CK_ATTRIBUTE attr;
attr.type = a;
attr.pValue = 0:
attr.ulValueLen = 0;
//! calls @c C_GetAttributeValue
if (!check(_session._slot.library()->C_GetAttributeValue
(_session._session, _object, &attr, 1),
@ -2139,7 +2142,10 @@ namespace cryptoki {
CK_ATTRIBUTE attr;
for (AttributeTypeList::const_iterator it(attrs.begin());
it!=attrs.end(); ++it) {
attr = CK_ATTRIBUTE{*it, 0, 0};
CK_ATTRIBUTE attr;
attr.type = *it;
attr.pValue = 0:
attr.ulValueLen = 0;
try {
//! calls @c C_GetAttributeValue
if (_session._slot.library()->C_GetAttributeValue

Loading…
Cancel
Save