capacitor-freerasp 1.0.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 (80) hide show
  1. package/CapacitorFreerasp.podspec +19 -0
  2. package/LICENSE +20 -0
  3. package/README.md +431 -0
  4. package/android/build.gradle +75 -0
  5. package/android/consumer-rules.pro +1 -0
  6. package/android/gradle.properties +22 -0
  7. package/android/proguard-rules.pro +21 -0
  8. package/android/settings.gradle +2 -0
  9. package/android/src/main/AndroidManifest.xml +2 -0
  10. package/android/src/main/java/com/aheaditec/freerasp/FreeraspPlugin.kt +120 -0
  11. package/android/src/main/res/.gitkeep +0 -0
  12. package/dist/esm/definitions.d.ts +36 -0
  13. package/dist/esm/definitions.js +2 -0
  14. package/dist/esm/definitions.js.map +1 -0
  15. package/dist/esm/index.d.ts +7 -0
  16. package/dist/esm/index.js +25 -0
  17. package/dist/esm/index.js.map +1 -0
  18. package/dist/esm/web.d.ts +9 -0
  19. package/dist/esm/web.js +8 -0
  20. package/dist/esm/web.js.map +1 -0
  21. package/dist/plugin.cjs.js +45 -0
  22. package/dist/plugin.cjs.js.map +1 -0
  23. package/dist/plugin.js +48 -0
  24. package/dist/plugin.js.map +1 -0
  25. package/ios/Plugin/Freerasp.swift +8 -0
  26. package/ios/Plugin/FreeraspPlugin.h +10 -0
  27. package/ios/Plugin/FreeraspPlugin.m +9 -0
  28. package/ios/Plugin/FreeraspPlugin.swift +66 -0
  29. package/ios/Plugin/Info.plist +24 -0
  30. package/ios/Plugin/TalsecRuntime.xcframework/Info.plist +40 -0
  31. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -0
  32. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -0
  33. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +297 -0
  34. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -0
  35. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -0
  36. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -0
  37. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +123 -0
  38. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +50 -0
  39. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -0
  40. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -0
  41. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -0
  42. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -0
  43. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -0
  44. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  45. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +5255 -0
  46. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +54 -0
  47. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  48. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +54 -0
  49. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -0
  50. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  51. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -0
  52. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -0
  53. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -0
  54. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -0
  55. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +590 -0
  56. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -0
  57. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +3029 -0
  58. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -0
  59. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +123 -0
  60. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +50 -0
  61. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +456 -0
  62. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -0
  63. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -0
  64. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +504 -0
  65. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -0
  66. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  67. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +5220 -0
  68. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +54 -0
  69. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  70. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +54 -0
  71. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +5220 -0
  72. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +54 -0
  73. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  74. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +54 -0
  75. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -0
  76. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  77. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +388 -0
  78. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +3154 -0
  79. package/ios/Plugin/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -0
  80. package/package.json +92 -0
@@ -0,0 +1,77 @@
1
+ #ifndef CURLINC_CURLVER_H
2
+ #define CURLINC_CURLVER_H
3
+ /***************************************************************************
4
+ * _ _ ____ _
5
+ * Project ___| | | | _ \| |
6
+ * / __| | | | |_) | |
7
+ * | (__| |_| | _ <| |___
8
+ * \___|\___/|_| \_\_____|
9
+ *
10
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
11
+ *
12
+ * This software is licensed as described in the file COPYING, which
13
+ * you should have received as part of this distribution. The terms
14
+ * are also available at https://curl.se/docs/copyright.html.
15
+ *
16
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17
+ * copies of the Software, and permit persons to whom the Software is
18
+ * furnished to do so, under the terms of the COPYING file.
19
+ *
20
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
+ * KIND, either express or implied.
22
+ *
23
+ ***************************************************************************/
24
+
25
+ /* This header file contains nothing but libcurl version info, generated by
26
+ a script at release-time. This was made its own header file in 7.11.2 */
27
+
28
+ /* This is the global package copyright */
29
+ #define LIBCURL_COPYRIGHT "1996 - 2020 Daniel Stenberg, <daniel@haxx.se>."
30
+
31
+ /* This is the version number of the libcurl package from which this header
32
+ file origins: */
33
+ #define LIBCURL_VERSION "7.74.0"
34
+
35
+ /* The numeric version number is also available "in parts" by using these
36
+ defines: */
37
+ #define LIBCURL_VERSION_MAJOR 7
38
+ #define LIBCURL_VERSION_MINOR 74
39
+ #define LIBCURL_VERSION_PATCH 0
40
+
41
+ /* This is the numeric version of the libcurl version number, meant for easier
42
+ parsing and comparisons by programs. The LIBCURL_VERSION_NUM define will
43
+ always follow this syntax:
44
+
45
+ 0xXXYYZZ
46
+
47
+ Where XX, YY and ZZ are the main version, release and patch numbers in
48
+ hexadecimal (using 8 bits each). All three numbers are always represented
49
+ using two digits. 1.2 would appear as "0x010200" while version 9.11.7
50
+ appears as "0x090b07".
51
+
52
+ This 6-digit (24 bits) hexadecimal number does not show pre-release number,
53
+ and it is always a greater number in a more recent release. It makes
54
+ comparisons with greater than and less than work.
55
+
56
+ Note: This define is the full hex number and _does not_ use the
57
+ CURL_VERSION_BITS() macro since curl's own configure script greps for it
58
+ and needs it to contain the full number.
59
+ */
60
+ #define LIBCURL_VERSION_NUM 0x074a00
61
+
62
+ /*
63
+ * This is the date and time when the full source package was created. The
64
+ * timestamp is not stored in git, as the timestamp is properly set in the
65
+ * tarballs by the maketgz script.
66
+ *
67
+ * The format of the date follows this template:
68
+ *
69
+ * "2007-11-23"
70
+ */
71
+ #define LIBCURL_TIMESTAMP "2020-12-09"
72
+
73
+ #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
74
+ #define CURL_AT_LEAST_VERSION(x,y,z) \
75
+ (LIBCURL_VERSION_NUM >= CURL_VERSION_BITS(x, y, z))
76
+
77
+ #endif /* CURLINC_CURLVER_H */
@@ -0,0 +1,123 @@
1
+ #ifndef CURLINC_EASY_H
2
+ #define CURLINC_EASY_H
3
+ /***************************************************************************
4
+ * _ _ ____ _
5
+ * Project ___| | | | _ \| |
6
+ * / __| | | | |_) | |
7
+ * | (__| |_| | _ <| |___
8
+ * \___|\___/|_| \_\_____|
9
+ *
10
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
11
+ *
12
+ * This software is licensed as described in the file COPYING, which
13
+ * you should have received as part of this distribution. The terms
14
+ * are also available at https://curl.se/docs/copyright.html.
15
+ *
16
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17
+ * copies of the Software, and permit persons to whom the Software is
18
+ * furnished to do so, under the terms of the COPYING file.
19
+ *
20
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
+ * KIND, either express or implied.
22
+ *
23
+ ***************************************************************************/
24
+ #ifdef __cplusplus
25
+ extern "C" {
26
+ #endif
27
+
28
+ /* Flag bits in the curl_blob struct: */
29
+ #define CURL_BLOB_COPY 1 /* tell libcurl to copy the data */
30
+ #define CURL_BLOB_NOCOPY 0 /* tell libcurl to NOT copy the data */
31
+
32
+ struct curl_blob {
33
+ void *data;
34
+ size_t len;
35
+ unsigned int flags; /* bit 0 is defined, the rest are reserved and should be
36
+ left zeroes */
37
+ };
38
+
39
+ CURL_EXTERN CURL *curl_easy_init(void);
40
+ CURL_EXTERN CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...);
41
+ CURL_EXTERN CURLcode curl_easy_perform(CURL *curl);
42
+ CURL_EXTERN void curl_easy_cleanup(CURL *curl);
43
+
44
+ /*
45
+ * NAME curl_easy_getinfo()
46
+ *
47
+ * DESCRIPTION
48
+ *
49
+ * Request internal information from the curl session with this function. The
50
+ * third argument MUST be a pointer to a long, a pointer to a char * or a
51
+ * pointer to a double (as the documentation describes elsewhere). The data
52
+ * pointed to will be filled in accordingly and can be relied upon only if the
53
+ * function returns CURLE_OK. This function is intended to get used *AFTER* a
54
+ * performed transfer, all results from this function are undefined until the
55
+ * transfer is completed.
56
+ */
57
+ CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
58
+
59
+
60
+ /*
61
+ * NAME curl_easy_duphandle()
62
+ *
63
+ * DESCRIPTION
64
+ *
65
+ * Creates a new curl session handle with the same options set for the handle
66
+ * passed in. Duplicating a handle could only be a matter of cloning data and
67
+ * options, internal state info and things like persistent connections cannot
68
+ * be transferred. It is useful in multithreaded applications when you can run
69
+ * curl_easy_duphandle() for each new thread to avoid a series of identical
70
+ * curl_easy_setopt() invokes in every thread.
71
+ */
72
+ CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl);
73
+
74
+ /*
75
+ * NAME curl_easy_reset()
76
+ *
77
+ * DESCRIPTION
78
+ *
79
+ * Re-initializes a CURL handle to the default values. This puts back the
80
+ * handle to the same state as it was in when it was just created.
81
+ *
82
+ * It does keep: live connections, the Session ID cache, the DNS cache and the
83
+ * cookies.
84
+ */
85
+ CURL_EXTERN void curl_easy_reset(CURL *curl);
86
+
87
+ /*
88
+ * NAME curl_easy_recv()
89
+ *
90
+ * DESCRIPTION
91
+ *
92
+ * Receives data from the connected socket. Use after successful
93
+ * curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
94
+ */
95
+ CURL_EXTERN CURLcode curl_easy_recv(CURL *curl, void *buffer, size_t buflen,
96
+ size_t *n);
97
+
98
+ /*
99
+ * NAME curl_easy_send()
100
+ *
101
+ * DESCRIPTION
102
+ *
103
+ * Sends data over the connected socket. Use after successful
104
+ * curl_easy_perform() with CURLOPT_CONNECT_ONLY option.
105
+ */
106
+ CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer,
107
+ size_t buflen, size_t *n);
108
+
109
+
110
+ /*
111
+ * NAME curl_easy_upkeep()
112
+ *
113
+ * DESCRIPTION
114
+ *
115
+ * Performs connection upkeep for the given session handle.
116
+ */
117
+ CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl);
118
+
119
+ #ifdef __cplusplus
120
+ }
121
+ #endif
122
+
123
+ #endif
@@ -0,0 +1,50 @@
1
+ #ifndef CURLINC_MPRINTF_H
2
+ #define CURLINC_MPRINTF_H
3
+ /***************************************************************************
4
+ * _ _ ____ _
5
+ * Project ___| | | | _ \| |
6
+ * / __| | | | |_) | |
7
+ * | (__| |_| | _ <| |___
8
+ * \___|\___/|_| \_\_____|
9
+ *
10
+ * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
11
+ *
12
+ * This software is licensed as described in the file COPYING, which
13
+ * you should have received as part of this distribution. The terms
14
+ * are also available at https://curl.se/docs/copyright.html.
15
+ *
16
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17
+ * copies of the Software, and permit persons to whom the Software is
18
+ * furnished to do so, under the terms of the COPYING file.
19
+ *
20
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
+ * KIND, either express or implied.
22
+ *
23
+ ***************************************************************************/
24
+
25
+ #include <stdarg.h>
26
+ #include <stdio.h> /* needed for FILE */
27
+ #include "curl.h" /* for CURL_EXTERN */
28
+
29
+ #ifdef __cplusplus
30
+ extern "C" {
31
+ #endif
32
+
33
+ CURL_EXTERN int curl_mprintf(const char *format, ...);
34
+ CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);
35
+ CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);
36
+ CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
37
+ const char *format, ...);
38
+ CURL_EXTERN int curl_mvprintf(const char *format, va_list args);
39
+ CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);
40
+ CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);
41
+ CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
42
+ const char *format, va_list args);
43
+ CURL_EXTERN char *curl_maprintf(const char *format, ...);
44
+ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
45
+
46
+ #ifdef __cplusplus
47
+ }
48
+ #endif
49
+
50
+ #endif /* CURLINC_MPRINTF_H */