diff --git a/src/cryptoki.hxx b/src/cryptoki.hxx index f471a38..b9c753d 100644 --- a/src/cryptoki.hxx +++ b/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