From ae3a93c9a6c3a94348f09a6d9fc522c4dd555306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 2 Apr 2014 06:31:17 +0000 Subject: [PATCH] fix for non C++11-compilers (mac); refs #28 --- src/cryptoki.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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