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