engage-engine 1.232.90720001 → 1.232.90720002
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/engage.cpp +16 -0
- package/package.json +1 -1
package/engage.cpp
CHANGED
|
@@ -1147,6 +1147,20 @@ NAN_METHOD(setCertStore)
|
|
|
1147
1147
|
NANRETI(engageSetCertStore((uint8_t*) node::Buffer::Data(info[0]), INTVAL(1), STRVAL(2)));
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
+
//--------------------------------------------------------
|
|
1151
|
+
NAN_METHOD(getDeviceId)
|
|
1152
|
+
{
|
|
1153
|
+
const char *rc = engageGetDeviceId();
|
|
1154
|
+
|
|
1155
|
+
if(rc == nullptr)
|
|
1156
|
+
{
|
|
1157
|
+
rc = "";
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
NANRETS(rc);
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
|
|
1150
1164
|
//--------------------------------------------------------
|
|
1151
1165
|
NAN_MODULE_INIT(Init)
|
|
1152
1166
|
{
|
|
@@ -1220,6 +1234,8 @@ NAN_MODULE_INIT(Init)
|
|
|
1220
1234
|
|
|
1221
1235
|
ENGAGE_BINDING(setFipsCrypto);
|
|
1222
1236
|
ENGAGE_BINDING(isCryptoFipsValidated);
|
|
1237
|
+
|
|
1238
|
+
ENGAGE_BINDING(getDeviceId);
|
|
1223
1239
|
}
|
|
1224
1240
|
|
|
1225
1241
|
NODE_MODULE(engage, Init)
|
package/package.json
CHANGED