Fix compile error when using nss libs:
PATCH 1/1 Fix compile error when using nss libs:
In reply to a message not in the archiveauth/Crypto.cc:218: error: expected primary-expression before ‘}’ token auth/Crypto.cc:218: error: expected ‘;’ before ‘}’ token
Perhaps something more is missing here but this gets things going... apparently not used much?
---
src/auth/Crypto.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
src/auth/Crypto.cc +0 -0
@@ -215,6 +215,7 @@ static void nss_aes_operation(CK_ATTRIBUTE_TYPE
op, const bufferptr& secret,
err_slot:
PK11_FreeSlot(slot);
err:
+ ;
}
#else
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · Marcus Sorensen
auth/Crypto.cc:218: error: expected primary-expression before ?}? token auth/Crypto.cc:218: error: expected ?;? before ?}? token
Perhaps something more is missing here but this gets things going... apparently not used much?
Looks right. Maybe only some compiler versions bork on that? We also usually build with crypto++ when we can (libnss sucks a several ways).
Can I add your signed-off-by?
Thanks-
sage
Quoted 25 lines
---
src/auth/Crypto.cc | 1 +1 files changed, 1 insertions(+), 0 deletions(-)src/auth/Crypto.cc +0
-0@@ -215,6 +215,7 @@ static void nss_aes_operation(CK_ATTRIBUTE_TYPE op, const bufferptr& secret,err_slot:
PK11_FreeSlot(slot);
err:
+ ;
}#else
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Yeah, sorry. This was a CentOS 6 system, didn't seem to have any immediate provider of libcrypto++, so just skipped to nss. I figured that not many people are probably using the nss path, so I'm not sure if this is just untested or something wonky on the compiler... at any rate an extra semicolon shouldn't break others :-)
Quoted 33 lines · Sage Weil
Quoted 5 lines · Marcus Sorensen
auth/Crypto.cc:218: error: expected primary-expression before ?}? token auth/Crypto.cc:218: error: expected ?;? before ?}? token
Perhaps something more is missing here but this gets things going... apparently not used much?
Looks right. Maybe only some compiler versions bork on that? We also usually build with crypto++ when we can (libnss sucks a several ways).
Can I add your signed-off-by?
Thanks-
sageQuoted 16 lines
---
src/auth/Crypto.cc | 1 +1 files changed, 1 insertions(+), 0 deletions(-)src/auth/Crypto.cc +0
-0@@ -215,6 +215,7 @@ static void nss_aes_operation(CK_ATTRIBUTE_TYPE op, const bufferptr& secret,err_slot:
PK11_FreeSlot(slot);
err:
+ ;
}
Quoted 9 lines
Quoted 9 lines
#else
--
1.7.4.1
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html