capacitor-freerasp 2.2.2 → 2.3.0

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.
Files changed (118) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/CapacitorFreerasp.podspec +1 -1
  3. package/README.md +8 -8
  4. package/android/build.gradle +1 -1
  5. package/android/src/main/java/com/aheaditec/freerasp/FreeraspPlugin.kt +39 -18
  6. package/android/src/main/java/com/aheaditec/freerasp/ScreenProtector.kt +24 -2
  7. package/android/src/main/java/com/aheaditec/freerasp/ThreatHandler.kt +36 -18
  8. package/android/src/main/java/com/aheaditec/freerasp/events/BaseRaspEvent.kt +7 -0
  9. package/android/src/main/java/com/aheaditec/freerasp/events/RaspExecutionStateEvent.kt +22 -0
  10. package/android/src/main/java/com/aheaditec/freerasp/events/ThreatEvent.kt +69 -0
  11. package/android/src/main/java/com/aheaditec/freerasp/models/CapSuspiciousAppInfo.kt +1 -0
  12. package/android/src/main/java/com/aheaditec/freerasp/utils/Extensions.kt +1 -0
  13. package/android/src/main/java/com/aheaditec/freerasp/utils/RandomGenerator.kt +24 -0
  14. package/android/src/main/java/com/aheaditec/freerasp/utils/Utils.kt +3 -5
  15. package/dist/esm/api/listeners/raspExecutionState.d.ts +2 -0
  16. package/dist/esm/api/listeners/raspExecutionState.js +23 -0
  17. package/dist/esm/api/listeners/raspExecutionState.js.map +1 -0
  18. package/dist/esm/api/listeners/threat.d.ts +2 -0
  19. package/dist/esm/api/listeners/threat.js +84 -0
  20. package/dist/esm/api/listeners/threat.js.map +1 -0
  21. package/dist/esm/api/methods/capacitor.d.ts +4 -0
  22. package/dist/esm/api/methods/capacitor.js +11 -0
  23. package/dist/esm/api/methods/capacitor.js.map +1 -0
  24. package/dist/esm/api/methods/native.d.ts +6 -0
  25. package/dist/esm/api/methods/native.js +32 -0
  26. package/dist/esm/api/methods/native.js.map +1 -0
  27. package/dist/esm/api/nativeModules.d.ts +2 -0
  28. package/dist/esm/api/nativeModules.js +3 -0
  29. package/dist/esm/api/nativeModules.js.map +1 -0
  30. package/dist/esm/channels/raspExecutionState.d.ts +3 -0
  31. package/dist/esm/channels/raspExecutionState.js +27 -0
  32. package/dist/esm/channels/raspExecutionState.js.map +1 -0
  33. package/dist/esm/channels/threat.d.ts +3 -0
  34. package/dist/esm/channels/threat.js +34 -0
  35. package/dist/esm/channels/threat.js.map +1 -0
  36. package/dist/esm/index.d.ts +7 -12
  37. package/dist/esm/index.js +7 -158
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/models/raspExecutionState.d.ts +6 -0
  40. package/dist/esm/models/raspExecutionState.js +10 -0
  41. package/dist/esm/models/raspExecutionState.js.map +1 -0
  42. package/dist/esm/models/threat.d.ts +26 -0
  43. package/dist/esm/{definitions.js → models/threat.js} +7 -3
  44. package/dist/esm/models/threat.js.map +1 -0
  45. package/dist/esm/{definitions.d.ts → types/types.d.ts} +37 -44
  46. package/dist/esm/types/types.js +2 -0
  47. package/dist/esm/types/types.js.map +1 -0
  48. package/dist/esm/utils/malware.d.ts +3 -0
  49. package/dist/esm/utils/malware.js +22 -0
  50. package/dist/esm/utils/malware.js.map +1 -0
  51. package/dist/esm/utils/utils.d.ts +3 -0
  52. package/dist/esm/utils/utils.js +12 -0
  53. package/dist/esm/utils/utils.js.map +1 -0
  54. package/dist/plugin.cjs.js +153 -78
  55. package/dist/plugin.cjs.js.map +1 -1
  56. package/dist/plugin.js +153 -78
  57. package/dist/plugin.js.map +1 -1
  58. package/ios/Plugin/FreeraspPlugin.m +2 -0
  59. package/ios/Plugin/FreeraspPlugin.swift +50 -75
  60. package/ios/Plugin/Info.plist +1 -1
  61. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  62. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeResources +100 -298
  63. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  64. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  65. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +7 -2
  66. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +380 -281
  67. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +5 -6
  68. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +4 -4
  69. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +1 -1
  70. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +11 -4
  71. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +62 -22
  72. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +2 -2
  73. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +76 -164
  74. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
  75. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +5 -4
  76. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +17 -3
  77. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  78. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +233 -528
  79. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +7 -3
  80. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  81. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +7 -3
  82. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  83. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  84. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +14 -4
  85. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +380 -281
  86. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +5 -6
  87. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +4 -4
  88. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +1 -1
  89. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +11 -4
  90. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +62 -22
  91. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +2 -2
  92. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +76 -164
  93. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/typecheck-gcc.h +947 -0
  94. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +5 -4
  95. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +17 -3
  96. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  97. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +233 -528
  98. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +7 -3
  99. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  100. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -3
  101. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +233 -528
  102. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +7 -3
  103. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  104. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +7 -3
  105. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  106. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +56 -45
  107. package/ios/Plugin/models/RaspExecutionStates.swift +15 -0
  108. package/ios/Plugin/models/SecurityThreat.swift +40 -0
  109. package/ios/Plugin/utils/EventIdentifiers.swift +17 -0
  110. package/ios/Plugin/utils/RandomGenerator.swift +23 -0
  111. package/ios/Plugin/utils/Utils.swift +32 -0
  112. package/package.json +15 -10
  113. package/android/src/main/java/com/aheaditec/freerasp/Threat.kt +0 -58
  114. package/dist/esm/definitions.js.map +0 -1
  115. package/dist/esm/utils.d.ts +0 -2
  116. package/dist/esm/utils.js +0 -8
  117. package/dist/esm/utils.js.map +0 -1
  118. package/ios/Plugin/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
@@ -26,7 +26,7 @@
26
26
 
27
27
  #include "curl.h"
28
28
 
29
- #ifdef __cplusplus
29
+ #ifdef __cplusplus
30
30
  extern "C" {
31
31
  #endif
32
32
 
@@ -97,11 +97,12 @@ typedef enum {
97
97
  #define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
98
98
  scheme is unknown. */
99
99
  #define CURLU_ALLOW_SPACE (1<<11) /* Allow spaces in the URL */
100
- #define CURLU_PUNYCODE (1<<12) /* get the host name in punycode */
100
+ #define CURLU_PUNYCODE (1<<12) /* get the hostname in punycode */
101
101
  #define CURLU_PUNY2IDN (1<<13) /* punycode => IDN conversion */
102
102
  #define CURLU_GET_EMPTY (1<<14) /* allow empty queries and fragments
103
103
  when extracting the URL or the
104
104
  components */
105
+ #define CURLU_NO_GUESS_SCHEME (1<<15) /* for get, do not accept a guess */
105
106
 
106
107
  typedef struct Curl_URL CURLU;
107
108
 
@@ -142,8 +143,8 @@ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
142
143
 
143
144
  /*
144
145
  * curl_url_strerror() turns a CURLUcode value into the equivalent human
145
- * readable error string. This is useful for printing meaningful error
146
- * messazsW.
146
+ * readable error string. This is useful for printing meaningful error
147
+ * messaGlH.
147
148
  */
148
149
  CURL_EXTERN const char *curl_url_strerror(CURLUcode);
149
150
 
@@ -24,7 +24,7 @@
24
24
  *
25
25
  ***************************************************************************/
26
26
 
27
- #ifdef __cplusplus
27
+ #ifdef __cplusplus
28
28
  extern "C" {
29
29
  #endif
30
30
 
@@ -72,12 +72,26 @@ CURL_EXTERN CURLcode curl_ws_send(CURL *curl, const void *buffer,
72
72
  curl_off_t fragsize,
73
73
  unsigned int flags);
74
74
 
75
+ /*
76
+ * NAME curl_ws_start_frame()
77
+ *
78
+ * DESCRIPTION
79
+ *
80
+ * Buffers a websocket frame header with the given flags and length.
81
+ * Errors when a previous frame is not complete, e.g. not all its
82
+ * payload has been added.
83
+ */
84
+ CURL_EXTERN CURLcode curl_ws_start_frame(CURL *curl,
85
+ unsigned int flags,
86
+ curl_off_t frame_len);
87
+
75
88
  /* bits for the CURLOPT_WS_OPTIONS bitmask: */
76
- #define CURLWS_RAW_MODE (1<<0)
89
+ #define CURLWS_RAW_MODE (1L<<0)
90
+ #define CURLWS_NOAUTOPONG (1L<<1)
77
91
 
78
92
  CURL_EXTERN const struct curl_ws_frame *curl_ws_meta(CURL *curl);
79
93
 
80
- #ifdef __cplusplus
94
+ #ifdef __cplusplus
81
95
  }
82
96
  #endif
83
97