freerasp-react-native 1.0.0 → 2.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 (170) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +423 -413
  3. package/android/build.gradle +90 -87
  4. package/android/gradle.properties +4 -4
  5. package/android/src/main/AndroidManifest.xml +4 -4
  6. package/android/src/main/java/com/freeraspreactnative/FreeraspDeviceStateListener.kt +25 -0
  7. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +125 -108
  8. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativePackage.kt +17 -17
  9. package/example/Gemfile +6 -6
  10. package/example/android/app/_BUCK +55 -55
  11. package/example/android/app/build.gradle +313 -313
  12. package/example/android/app/build_defs.bzl +19 -19
  13. package/example/android/app/proguard-rules.pro +10 -10
  14. package/example/android/app/src/debug/AndroidManifest.xml +13 -13
  15. package/example/android/app/src/debug/java/com/freeraspreactnativeexample/ReactNativeFlipper.java +73 -73
  16. package/example/android/app/src/main/AndroidManifest.xml +26 -26
  17. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainActivity.java +48 -48
  18. package/example/android/app/src/main/java/com/freeraspreactnativeexample/MainApplication.java +91 -91
  19. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/MainApplicationReactNativeHost.java +116 -116
  20. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/components/MainComponentsRegistry.java +36 -36
  21. package/example/android/app/src/main/java/com/freeraspreactnativeexample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java +48 -48
  22. package/example/android/app/src/main/jni/CMakeLists.txt +7 -7
  23. package/example/android/app/src/main/jni/MainApplicationModuleProvider.cpp +32 -32
  24. package/example/android/app/src/main/jni/MainApplicationModuleProvider.h +16 -16
  25. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp +45 -45
  26. package/example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h +38 -38
  27. package/example/android/app/src/main/jni/MainComponentsRegistry.cpp +65 -65
  28. package/example/android/app/src/main/jni/MainComponentsRegistry.h +32 -32
  29. package/example/android/app/src/main/jni/OnLoad.cpp +11 -11
  30. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -36
  31. package/example/android/app/src/main/res/values/strings.xml +3 -3
  32. package/example/android/app/src/main/res/values/styles.xml +9 -9
  33. package/example/android/build.gradle +50 -53
  34. package/example/android/gradle/wrapper/gradle-wrapper.properties +5 -5
  35. package/example/android/gradle.properties +40 -40
  36. package/example/android/gradlew +234 -234
  37. package/example/android/settings.gradle +11 -11
  38. package/example/app.json +3 -3
  39. package/example/assets/checkmark-circle-outline.png +0 -0
  40. package/example/assets/checkmark-circle-outline.svg +1 -0
  41. package/example/assets/close-circle-outline.png +0 -0
  42. package/example/assets/close-circle-outline.svg +1 -0
  43. package/example/assets/talsec-logo.png +0 -0
  44. package/example/babel.config.js +17 -17
  45. package/example/index.js +5 -5
  46. package/example/ios/File.swift +6 -6
  47. package/example/ios/FreeraspReactNativeExample/AppDelegate.h +8 -8
  48. package/example/ios/FreeraspReactNativeExample/AppDelegate.mm +133 -133
  49. package/example/ios/FreeraspReactNativeExample/Images.xcassets/AppIcon.appiconset/Contents.json +53 -53
  50. package/example/ios/FreeraspReactNativeExample/Images.xcassets/Contents.json +6 -6
  51. package/example/ios/FreeraspReactNativeExample/Info.plist +55 -55
  52. package/example/ios/FreeraspReactNativeExample/LaunchScreen.storyboard +47 -47
  53. package/example/ios/FreeraspReactNativeExample/main.m +10 -10
  54. package/example/ios/FreeraspReactNativeExample-Bridging-Header.h +3 -3
  55. package/example/ios/FreeraspReactNativeExample.xcodeproj/project.pbxproj +4 -2
  56. package/example/ios/FreeraspReactNativeExample.xcodeproj/xcshareddata/xcschemes/FreeraspReactNativeExample.xcscheme +88 -106
  57. package/example/ios/FreeraspReactNativeExample.xcworkspace/contents.xcworkspacedata +10 -10
  58. package/example/ios/FreeraspReactNativeExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -8
  59. package/example/ios/FreeraspReactNativeExampleTests/FreeraspReactNativeExampleTests.m +66 -66
  60. package/example/ios/FreeraspReactNativeExampleTests/Info.plist +24 -24
  61. package/example/ios/Podfile +43 -43
  62. package/example/ios/Podfile.lock +590 -584
  63. package/example/metro.config.js +40 -40
  64. package/example/package.json +24 -21
  65. package/example/react-native.config.js +10 -10
  66. package/example/src/App.tsx +136 -89
  67. package/example/src/DemoApp.tsx +89 -0
  68. package/example/src/checks.ts +16 -0
  69. package/example/src/styles.ts +7 -0
  70. package/example/yarn.lock +4644 -4154
  71. package/freerasp-react-native.podspec +36 -36
  72. package/ios/FreeraspReactNative-Bridging-Header.h +3 -3
  73. package/ios/FreeraspReactNative.m +14 -14
  74. package/ios/FreeraspReactNative.swift +62 -53
  75. package/ios/FreeraspReactNative.xcodeproj/xcshareddata/xcschemes/FreeraspReactNative.xcscheme +67 -67
  76. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/Info.plist +40 -40
  77. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
  78. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator → TalsecRuntime.xcframework/ios-arm64}/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
  79. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +222 -222
  80. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
  81. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/curl.h +3029 -3029
  82. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +77 -77
  83. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator → TalsecRuntime.xcframework/ios-arm64}/TalsecRuntime.framework/Headers/easy.h +123 -123
  84. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator → TalsecRuntime.xcframework/ios-arm64}/TalsecRuntime.framework/Headers/mprintf.h +50 -50
  85. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/multi.h +456 -456
  86. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/options.h +68 -68
  87. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
  88. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/system.h +504 -504
  89. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +125 -125
  90. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  91. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +52 -51
  92. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +17 -17
  93. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  94. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/cacert.pem +3154 -3154
  95. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/module.modulemap +12 -12
  96. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +14 -14
  97. package/ios/{Release/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/CurlWrapper.h +25 -25
  98. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +450 -450
  99. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +23 -23
  100. package/ios/{Release/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/curl.h +3029 -3029
  101. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +77 -77
  102. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/easy.h +123 -123
  103. package/ios/{Release/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/mprintf.h +50 -50
  104. package/ios/{Release/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/multi.h +456 -456
  105. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +68 -68
  106. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +33 -33
  107. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/Headers/system.h +504 -504
  108. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +125 -125
  109. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  110. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +52 -51
  111. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +52 -51
  112. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +17 -17
  113. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  114. package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +344 -344
  115. package/ios/{Debug/TalsecRuntime.xcframework/ios-arm64 → TalsecRuntime.xcframework/ios-arm64_x86_64-simulator}/TalsecRuntime.framework/cacert.pem +3154 -3154
  116. package/ios/{Release/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +12 -12
  117. package/lib/commonjs/index.js.map +1 -1
  118. package/lib/module/index.js.map +1 -1
  119. package/lib/typescript/index.d.ts +36 -35
  120. package/lib/typescript/index.d.ts.map +1 -1
  121. package/package.json +161 -161
  122. package/src/index.tsx +91 -90
  123. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +0 -25
  124. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +0 -222
  125. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +0 -50
  126. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +0 -68
  127. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +0 -33
  128. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +0 -125
  129. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  130. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/module.modulemap +0 -17
  131. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  132. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/module.modulemap +0 -12
  133. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +0 -14
  134. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +0 -450
  135. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +0 -3029
  136. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +0 -456
  137. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +0 -504
  138. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  139. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -51
  140. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  141. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +0 -3154
  142. package/ios/Debug/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/module.modulemap +0 -12
  143. package/ios/Release/TalsecRuntime.xcframework/Info.plist +0 -40
  144. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +0 -23
  145. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +0 -77
  146. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +0 -123
  147. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  148. package/ios/Release/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +0 -51
  149. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CryptoBridgingHeader.h +0 -14
  150. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +0 -25
  151. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime_iOS.h +0 -23
  152. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +0 -3029
  153. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +0 -77
  154. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +0 -123
  155. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +0 -50
  156. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +0 -456
  157. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +0 -68
  158. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +0 -33
  159. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +0 -504
  160. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +0 -125
  161. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  162. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  163. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -51
  164. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/module.modulemap +0 -17
  165. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +0 -344
  166. package/ios/Release/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/cacert.pem +0 -3154
  167. package/ios/TalsecRuntime.xcframework +0 -1
  168. /package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  169. /package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  170. /package/ios/{Debug/TalsecRuntime.xcframework → TalsecRuntime.xcframework}/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
@@ -1,125 +1,125 @@
1
- #ifndef CURLINC_URLAPI_H
2
- #define CURLINC_URLAPI_H
3
- /***************************************************************************
4
- * _ _ ____ _
5
- * Project ___| | | | _ \| |
6
- * / __| | | | |_) | |
7
- * | (__| |_| | _ <| |___
8
- * \___|\___/|_| \_\_____|
9
- *
10
- * Copyright (C) 2018 - 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 "curl.h"
26
-
27
- #ifdef __cplusplus
28
- extern "C" {
29
- #endif
30
-
31
- /* the error codes for the URL API */
32
- typedef enum {
33
- CURLUE_OK,
34
- CURLUE_BAD_HANDLE, /* 1 */
35
- CURLUE_BAD_PARTPOINTER, /* 2 */
36
- CURLUE_MALFORMED_INPUT, /* 3 */
37
- CURLUE_BAD_PORT_NUMBER, /* 4 */
38
- CURLUE_UNSUPPORTED_SCHEME, /* 5 */
39
- CURLUE_URLDECODE, /* 6 */
40
- CURLUE_OUT_OF_MEMORY, /* 7 */
41
- CURLUE_USER_NOT_ALLOWED, /* 8 */
42
- CURLUE_UNKNOWN_PART, /* 9 */
43
- CURLUE_NO_SCHEME, /* 10 */
44
- CURLUE_NO_USER, /* 11 */
45
- CURLUE_NO_PASSWORD, /* 12 */
46
- CURLUE_NO_OPTIONS, /* 13 */
47
- CURLUE_NO_HOST, /* 14 */
48
- CURLUE_NO_PORT, /* 15 */
49
- CURLUE_NO_QUERY, /* 16 */
50
- CURLUE_NO_FRAGMENT /* 17 */
51
- } CURLUcode;
52
-
53
- typedef enum {
54
- CURLUPART_URL,
55
- CURLUPART_SCHEME,
56
- CURLUPART_USER,
57
- CURLUPART_PASSWORD,
58
- CURLUPART_OPTIONS,
59
- CURLUPART_HOST,
60
- CURLUPART_PORT,
61
- CURLUPART_PATH,
62
- CURLUPART_QUERY,
63
- CURLUPART_FRAGMENT,
64
- CURLUPART_ZONEID /* added in 7.65.0 */
65
- } CURLUPart;
66
-
67
- #define CURLU_DEFAULT_PORT (1<<0) /* return default port number */
68
- #define CURLU_NO_DEFAULT_PORT (1<<1) /* act as if no port number was set,
69
- if the port number matches the
70
- default for the scheme */
71
- #define CURLU_DEFAULT_SCHEME (1<<2) /* return default scheme if
72
- missing */
73
- #define CURLU_NON_SUPPORT_SCHEME (1<<3) /* allow non-supported scheme */
74
- #define CURLU_PATH_AS_IS (1<<4) /* leave dot sequences */
75
- #define CURLU_DISALLOW_USER (1<<5) /* no user+password allowed */
76
- #define CURLU_URLDECODE (1<<6) /* URL decode on get */
77
- #define CURLU_URLENCODE (1<<7) /* URL encode on set */
78
- #define CURLU_APPENDQUERY (1<<8) /* append a form style part */
79
- #define CURLU_GUESS_SCHEME (1<<9) /* legacy curl-style guessing */
80
- #define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
81
- scheme is unknown. */
82
-
83
- typedef struct Curl_URL CURLU;
84
-
85
- /*
86
- * curl_url() creates a new CURLU handle and returns a pointer to it.
87
- * Must be freed with curl_url_cleanup().
88
- */
89
- CURL_EXTERN CURLU *curl_url(void);
90
-
91
- /*
92
- * curl_url_cleanup() frees the CURLU handle and related resources used for
93
- * the URL parsing. It will not free strings previously returned with the URL
94
- * API.
95
- */
96
- CURL_EXTERN void curl_url_cleanup(CURLU *handle);
97
-
98
- /*
99
- * curl_url_dup() duplicates a CURLU handle and returns a new copy. The new
100
- * handle must also be freed with curl_url_cleanup().
101
- */
102
- CURL_EXTERN CURLU *curl_url_dup(CURLU *in);
103
-
104
- /*
105
- * curl_url_get() extracts a specific part of the URL from a CURLU
106
- * handle. Returns error code. The returned pointer MUST be freed with
107
- * curl_free() afterwards.
108
- */
109
- CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what,
110
- char **part, unsigned int flags);
111
-
112
- /*
113
- * curl_url_set() sets a specific part of the URL in a CURLU handle. Returns
114
- * error code. The passed in string will be copied. Passing a NULL instead of
115
- * a part string, clears that part.
116
- */
117
- CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
118
- const char *part, unsigned int flags);
119
-
120
-
121
- #ifdef __cplusplus
122
- } /* end of extern "C" */
123
- #endif
124
-
125
- #endif /* CURLINC_URLAPI_H */
1
+ #ifndef CURLINC_URLAPI_H
2
+ #define CURLINC_URLAPI_H
3
+ /***************************************************************************
4
+ * _ _ ____ _
5
+ * Project ___| | | | _ \| |
6
+ * / __| | | | |_) | |
7
+ * | (__| |_| | _ <| |___
8
+ * \___|\___/|_| \_\_____|
9
+ *
10
+ * Copyright (C) 2018 - 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 "curl.h"
26
+
27
+ #ifdef __cplusplus
28
+ extern "C" {
29
+ #endif
30
+
31
+ /* the error codes for the URL API */
32
+ typedef enum {
33
+ CURLUE_OK,
34
+ CURLUE_BAD_HANDLE, /* 1 */
35
+ CURLUE_BAD_PARTPOINTER, /* 2 */
36
+ CURLUE_MALFORMED_INPUT, /* 3 */
37
+ CURLUE_BAD_PORT_NUMBER, /* 4 */
38
+ CURLUE_UNSUPPORTED_SCHEME, /* 5 */
39
+ CURLUE_URLDECODE, /* 6 */
40
+ CURLUE_OUT_OF_MEMORY, /* 7 */
41
+ CURLUE_USER_NOT_ALLOWED, /* 8 */
42
+ CURLUE_UNKNOWN_PART, /* 9 */
43
+ CURLUE_NO_SCHEME, /* 10 */
44
+ CURLUE_NO_USER, /* 11 */
45
+ CURLUE_NO_PASSWORD, /* 12 */
46
+ CURLUE_NO_OPTIONS, /* 13 */
47
+ CURLUE_NO_HOST, /* 14 */
48
+ CURLUE_NO_PORT, /* 15 */
49
+ CURLUE_NO_QUERY, /* 16 */
50
+ CURLUE_NO_FRAGMENT /* 17 */
51
+ } CURLUcode;
52
+
53
+ typedef enum {
54
+ CURLUPART_URL,
55
+ CURLUPART_SCHEME,
56
+ CURLUPART_USER,
57
+ CURLUPART_PASSWORD,
58
+ CURLUPART_OPTIONS,
59
+ CURLUPART_HOST,
60
+ CURLUPART_PORT,
61
+ CURLUPART_PATH,
62
+ CURLUPART_QUERY,
63
+ CURLUPART_FRAGMENT,
64
+ CURLUPART_ZONEID /* added in 7.65.0 */
65
+ } CURLUPart;
66
+
67
+ #define CURLU_DEFAULT_PORT (1<<0) /* return default port number */
68
+ #define CURLU_NO_DEFAULT_PORT (1<<1) /* act as if no port number was set,
69
+ if the port number matches the
70
+ default for the scheme */
71
+ #define CURLU_DEFAULT_SCHEME (1<<2) /* return default scheme if
72
+ missing */
73
+ #define CURLU_NON_SUPPORT_SCHEME (1<<3) /* allow non-supported scheme */
74
+ #define CURLU_PATH_AS_IS (1<<4) /* leave dot sequences */
75
+ #define CURLU_DISALLOW_USER (1<<5) /* no user+password allowed */
76
+ #define CURLU_URLDECODE (1<<6) /* URL decode on get */
77
+ #define CURLU_URLENCODE (1<<7) /* URL encode on set */
78
+ #define CURLU_APPENDQUERY (1<<8) /* append a form style part */
79
+ #define CURLU_GUESS_SCHEME (1<<9) /* legacy curl-style guessing */
80
+ #define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
81
+ scheme is unknown. */
82
+
83
+ typedef struct Curl_URL CURLU;
84
+
85
+ /*
86
+ * curl_url() creates a new CURLU handle and returns a pointer to it.
87
+ * Must be freed with curl_url_cleanup().
88
+ */
89
+ CURL_EXTERN CURLU *curl_url(void);
90
+
91
+ /*
92
+ * curl_url_cleanup() frees the CURLU handle and related resources used for
93
+ * the URL parsing. It will not free strings previously returned with the URL
94
+ * API.
95
+ */
96
+ CURL_EXTERN void curl_url_cleanup(CURLU *handle);
97
+
98
+ /*
99
+ * curl_url_dup() duplicates a CURLU handle and returns a new copy. The new
100
+ * handle must also be freed with curl_url_cleanup().
101
+ */
102
+ CURL_EXTERN CURLU *curl_url_dup(CURLU *in);
103
+
104
+ /*
105
+ * curl_url_get() extracts a specific part of the URL from a CURLU
106
+ * handle. Returns error code. The returned pointer MUST be freed with
107
+ * curl_free() afterwards.
108
+ */
109
+ CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what,
110
+ char **part, unsigned int flags);
111
+
112
+ /*
113
+ * curl_url_set() sets a specific part of the URL in a CURLU handle. Returns
114
+ * error code. The passed in string will be copied. Passing a NULL instead of
115
+ * a part string, clears that part.
116
+ */
117
+ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
118
+ const char *part, unsigned int flags);
119
+
120
+
121
+ #ifdef __cplusplus
122
+ } /* end of extern "C" */
123
+ #endif
124
+
125
+ #endif /* CURLINC_URLAPI_H */
@@ -1,51 +1,52 @@
1
- // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
3
- // swift-module-flags: -target arm64-apple-ios11.2-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name TalsecRuntime
4
- import Foundation
5
- import LocalAuthentication
6
- import TalsecRuntime.Private
7
- import Security
8
- import Swift
9
- @_exported import TalsecRuntime
10
- import UIKit
11
- import _Concurrency
12
- public protocol SecurityThreatHandler {
13
- func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
14
- }
15
- @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
16
- @objc deinit
17
- }
18
- public struct TalsecConfig {
19
- public let appBundleIds: [Swift.String]
20
- public let appTeamId: Swift.String
21
- public let watcherMailAddress: Swift.String?
22
- public init(appBundleIds: [Swift.String], appTeamId: Swift.String, watcherMailAddress: Swift.String?)
23
- }
24
- @_hasMissingDesignatedInitializers public class Talsec {
25
- public static func start(config: TalsecRuntime.TalsecConfig)
26
- @objc deinit
27
- }
28
- public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Equatable {
29
- case signature
30
- case jailbreak
31
- case debugger
32
- case runtimeManipulation
33
- case passcode
34
- case passcodeChange
35
- case simulator
36
- case missingSecureEnclave
37
- case deviceChange
38
- case deviceID
39
- case unofficialStore
40
- public init?(rawValue: Swift.String)
41
- public typealias AllCases = [TalsecRuntime.SecurityThreat]
42
- public typealias RawValue = Swift.String
43
- public static var allCases: [TalsecRuntime.SecurityThreat] {
44
- get
45
- }
46
- public var rawValue: Swift.String {
47
- get
48
- }
49
- }
50
- extension TalsecRuntime.SecurityThreat : Swift.Hashable {}
51
- extension TalsecRuntime.SecurityThreat : Swift.RawRepresentable {}
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
3
+ // swift-module-flags: -target arm64-apple-ios11.2-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name TalsecRuntime
4
+ import Foundation
5
+ import LocalAuthentication
6
+ import TalsecRuntime.Private
7
+ import Security
8
+ import Swift
9
+ @_exported import TalsecRuntime
10
+ import UIKit
11
+ import _Concurrency
12
+ public protocol SecurityThreatHandler {
13
+ func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
14
+ }
15
+ @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
16
+ @objc deinit
17
+ }
18
+ public struct TalsecConfig {
19
+ public let appBundleIds: [Swift.String]
20
+ public let appTeamId: Swift.String
21
+ public let watcherMailAddress: Swift.String?
22
+ public let isProd: Swift.Bool?
23
+ public init(appBundleIds: [Swift.String], appTeamId: Swift.String, watcherMailAddress: Swift.String?, isProd: Swift.Bool? = true)
24
+ }
25
+ @_hasMissingDesignatedInitializers public class Talsec {
26
+ public static func start(config: TalsecRuntime.TalsecConfig)
27
+ @objc deinit
28
+ }
29
+ public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Equatable {
30
+ case signature
31
+ case jailbreak
32
+ case debugger
33
+ case runtimeManipulation
34
+ case passcode
35
+ case passcodeChange
36
+ case simulator
37
+ case missingSecureEnclave
38
+ case deviceChange
39
+ case deviceID
40
+ case unofficialStore
41
+ public init?(rawValue: Swift.String)
42
+ public typealias AllCases = [TalsecRuntime.SecurityThreat]
43
+ public typealias RawValue = Swift.String
44
+ public static var allCases: [TalsecRuntime.SecurityThreat] {
45
+ get
46
+ }
47
+ public var rawValue: Swift.String {
48
+ get
49
+ }
50
+ }
51
+ extension TalsecRuntime.SecurityThreat : Swift.Hashable {}
52
+ extension TalsecRuntime.SecurityThreat : Swift.RawRepresentable {}
@@ -1,51 +1,52 @@
1
- // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
3
- // swift-module-flags: -target x86_64-apple-ios11.2-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name TalsecRuntime
4
- import Foundation
5
- import LocalAuthentication
6
- import TalsecRuntime.Private
7
- import Security
8
- import Swift
9
- @_exported import TalsecRuntime
10
- import UIKit
11
- import _Concurrency
12
- public protocol SecurityThreatHandler {
13
- func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
14
- }
15
- @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
16
- @objc deinit
17
- }
18
- public struct TalsecConfig {
19
- public let appBundleIds: [Swift.String]
20
- public let appTeamId: Swift.String
21
- public let watcherMailAddress: Swift.String?
22
- public init(appBundleIds: [Swift.String], appTeamId: Swift.String, watcherMailAddress: Swift.String?)
23
- }
24
- @_hasMissingDesignatedInitializers public class Talsec {
25
- public static func start(config: TalsecRuntime.TalsecConfig)
26
- @objc deinit
27
- }
28
- public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Equatable {
29
- case signature
30
- case jailbreak
31
- case debugger
32
- case runtimeManipulation
33
- case passcode
34
- case passcodeChange
35
- case simulator
36
- case missingSecureEnclave
37
- case deviceChange
38
- case deviceID
39
- case unofficialStore
40
- public init?(rawValue: Swift.String)
41
- public typealias AllCases = [TalsecRuntime.SecurityThreat]
42
- public typealias RawValue = Swift.String
43
- public static var allCases: [TalsecRuntime.SecurityThreat] {
44
- get
45
- }
46
- public var rawValue: Swift.String {
47
- get
48
- }
49
- }
50
- extension TalsecRuntime.SecurityThreat : Swift.Hashable {}
51
- extension TalsecRuntime.SecurityThreat : Swift.RawRepresentable {}
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
3
+ // swift-module-flags: -target x86_64-apple-ios11.2-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name TalsecRuntime
4
+ import Foundation
5
+ import LocalAuthentication
6
+ import TalsecRuntime.Private
7
+ import Security
8
+ import Swift
9
+ @_exported import TalsecRuntime
10
+ import UIKit
11
+ import _Concurrency
12
+ public protocol SecurityThreatHandler {
13
+ func threatDetected(_ securityThreat: TalsecRuntime.SecurityThreat)
14
+ }
15
+ @_hasMissingDesignatedInitializers public class SecurityThreatCenter {
16
+ @objc deinit
17
+ }
18
+ public struct TalsecConfig {
19
+ public let appBundleIds: [Swift.String]
20
+ public let appTeamId: Swift.String
21
+ public let watcherMailAddress: Swift.String?
22
+ public let isProd: Swift.Bool?
23
+ public init(appBundleIds: [Swift.String], appTeamId: Swift.String, watcherMailAddress: Swift.String?, isProd: Swift.Bool? = true)
24
+ }
25
+ @_hasMissingDesignatedInitializers public class Talsec {
26
+ public static func start(config: TalsecRuntime.TalsecConfig)
27
+ @objc deinit
28
+ }
29
+ public enum SecurityThreat : Swift.String, Swift.Codable, Swift.CaseIterable, Swift.Equatable {
30
+ case signature
31
+ case jailbreak
32
+ case debugger
33
+ case runtimeManipulation
34
+ case passcode
35
+ case passcodeChange
36
+ case simulator
37
+ case missingSecureEnclave
38
+ case deviceChange
39
+ case deviceID
40
+ case unofficialStore
41
+ public init?(rawValue: Swift.String)
42
+ public typealias AllCases = [TalsecRuntime.SecurityThreat]
43
+ public typealias RawValue = Swift.String
44
+ public static var allCases: [TalsecRuntime.SecurityThreat] {
45
+ get
46
+ }
47
+ public var rawValue: Swift.String {
48
+ get
49
+ }
50
+ }
51
+ extension TalsecRuntime.SecurityThreat : Swift.Hashable {}
52
+ extension TalsecRuntime.SecurityThreat : Swift.RawRepresentable {}
@@ -1,17 +1,17 @@
1
- framework module TalsecRuntime {
2
- umbrella header "TalsecRuntime_iOS.h"
3
-
4
- export *
5
- module * { export * }
6
-
7
- explicit module Private {
8
- private header "CryptoBridgingHeader.h"
9
- private header "CurlWrapper.h"
10
- export *
11
- }
12
- }
13
-
14
- module TalsecRuntime.Swift {
15
- header "TalsecRuntime-Swift.h"
16
- requires objc
17
- }
1
+ framework module TalsecRuntime {
2
+ umbrella header "TalsecRuntime_iOS.h"
3
+
4
+ export *
5
+ module * { export * }
6
+
7
+ explicit module Private {
8
+ private header "CryptoBridgingHeader.h"
9
+ private header "CurlWrapper.h"
10
+ export *
11
+ }
12
+ }
13
+
14
+ module TalsecRuntime.Swift {
15
+ header "TalsecRuntime-Swift.h"
16
+ requires objc
17
+ }