engage-engine 1.236.90760003 → 1.240.90800005

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 CHANGED
@@ -752,6 +752,12 @@ NAN_METHOD(leaveGroup)
752
752
  NANRETI(engageLeaveGroup(STRVAL(0)));
753
753
  }
754
754
 
755
+ //--------------------------------------------------------
756
+ NAN_METHOD(setGroupRules)
757
+ {
758
+ NANRETI(engageSetGroupRules(STRVAL(0), STRVAL(1)));
759
+ }
760
+
755
761
  //--------------------------------------------------------
756
762
  NAN_METHOD(beginGroupTx)
757
763
  {
@@ -1040,6 +1046,19 @@ NAN_METHOD(getCertStoreCertificatePem)
1040
1046
  NANRETS(rc);
1041
1047
  }
1042
1048
 
1049
+ //--------------------------------------------------------
1050
+ NAN_METHOD(getArrayOfCertificateDescriptorsFromPem)
1051
+ {
1052
+ const char *rc = engageGetArrayOfCertificateDescriptorsFromPem(STRVAL(0));
1053
+
1054
+ if(rc == nullptr)
1055
+ {
1056
+ rc = "";
1057
+ }
1058
+
1059
+ NANRETS(rc);
1060
+ }
1061
+
1043
1062
  //--------------------------------------------------------
1044
1063
  NAN_METHOD(getCertificateDescriptorFromPem)
1045
1064
  {
@@ -1202,6 +1221,7 @@ NAN_MODULE_INIT(Init)
1202
1221
  ENGAGE_BINDING(deleteGroup);
1203
1222
  ENGAGE_BINDING(joinGroup);
1204
1223
  ENGAGE_BINDING(leaveGroup);
1224
+ ENGAGE_BINDING(setGroupRules);
1205
1225
 
1206
1226
  ENGAGE_BINDING(beginGroupTx);
1207
1227
  ENGAGE_BINDING(beginGroupTxAdvanced);