summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-02-08 08:59:54 (GMT)
committerNikolai Merinov <n.merinov@samsung.com>2019-02-08 09:00:01 (GMT)
commit0eaf95240b7115d0e5a6513bf9d5b3b2d8a1ace6 (patch)
treeeb3438d930f746397521b95b09db88dead252145
parent9fd75522d715192fa5fd621b968c58a4ec7415d7 (diff)
downloadkey-manager-sandbox/nmerinov/llvm.zip
key-manager-sandbox/nmerinov/llvm.tar.gz
key-manager-sandbox/nmerinov/llvm.tar.bz2
Enable visiblity of dependency class to actually export CKM::CryptoAlgorithmsandbox/nmerinov/llvm
-rw-r--r--src/include/ckm/ckm-raw-buffer.h4
-rw-r--r--src/include/ckm/ckm-type.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/include/ckm/ckm-raw-buffer.h b/src/include/ckm/ckm-raw-buffer.h
index 8ae908f..7fad01d 100644
--- a/src/include/ckm/ckm-raw-buffer.h
+++ b/src/include/ckm/ckm-raw-buffer.h
@@ -26,10 +26,12 @@
#include <string.h>
#include <vector>
+#define KEY_MANAGER_API __attribute__((visibility("default")))
+
namespace CKM {
template <typename T>
-struct std_erase_on_dealloc {
+struct KEY_MANAGER_API std_erase_on_dealloc {
// MJK: if re-factoring, remember not to inherit from the std::allocator !
// MJK: to be replaced with much shorter version once std::allocator_traits
// becomes supported in STL containers (i.e. list, vector and string)
diff --git a/src/include/ckm/ckm-type.h b/src/include/ckm/ckm-type.h
index 5a07a3d..f7fb978 100644
--- a/src/include/ckm/ckm-type.h
+++ b/src/include/ckm/ckm-type.h
@@ -117,7 +117,7 @@ enum Permission : int {
};
// algorithm parameters
-enum class ParamName : int {
+enum class KEY_MANAGER_API ParamName : int {
ALGO_TYPE = 1, // If there's no such param, the service will try to deduce the algorithm
// type from the key.