You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* #178 Fix API calls hangs by checking Tls12 support or enforce Tls12 depending of the target:
- net40 : check that (SecurityProtocolType)3072 is specified
- net45 : check that SecurityProtocolType.Tls12 is specified
- net46 : check that SecurityProtocolType.Tls12 is specified
- net47 (target added) : check that SecurityProtocolType.Tls12 or SecurityProtocolType.UseDefault is specified
- net471 (target added) : force usage of Tls12 in HttpClient ctor
- netstandard1.3 : force usage of Tls12 in HttpClient ctor
- netstandard2.0 : force usage of Tls12 in HttpClient ctor
* #178 Update documentation about Tls 1.2 requirements
thrownewNotSupportedException("mega.nz API requires support for TLS v1.2 or higher. Check https://gpailler.github.io/MegaApiClient/#compatibility for additional information");
thrownewNotSupportedException("mega.nz API requires support for TLS v1.2 or higher. Check https://gpailler.github.io/MegaApiClient/#compatibility for additional information");
thrownewNotSupportedException("mega.nz API requires support for TLS v1.2 or higher. Check https://gpailler.github.io/MegaApiClient/#compatibility for additional information");
Copy file name to clipboardExpand all lines: docs/index.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,26 +14,28 @@ Getting started with MegaApiClient
14
14
15
15
#### Compatibility
16
16
17
-
The library supports .NET 4.0, .NET 4.5, .NET 4.6 and [.NET Standard 1.3](https://docs.microsoft.com/en-us/dotnet/standard/net-standard). Here is the list of all supported implementations:
17
+
The library is built for the following targets: .NET 4.0, .NET 4.5, .NET 4.6, .NET 4.7, .NET 4.7.1, .NET Standard 1.3 and .NET Standard 2.0.
18
+
Here is the list of all supported implementations:
18
19
19
20
| Implementation | Version |
20
21
|----------------------------|-----------|
21
22
| .NET Framework | 4.0 |
22
23
| .NET Framework | >= 4.5 |
23
-
| .NET Core | >= 1.0 |
24
+
| .NET Core / .NET| >= 1.0 |
24
25
| Mono | >= 4.6 |
25
26
| Xamarin.iOS | >= 10.0 |
26
27
| Xamarin.Mac | >= 3.0 |
27
28
| Xamarin.Android | >= 7.0 |
28
29
| Universal Windows Platform | >= 10.0 |
29
30
| Unity*| >= 2018.2 |
30
31
31
-
⚠️ TLS 1.2 support should be configured explicitely when using .NET Framework <= 4.5 or all the API calls to Mega will hang.
32
-
- For .NET Framework 4.5, add `ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;`
32
+
---
33
+
⚠️ TLS 1.2 support should be enforced when using .NET Framework <= 4.7 or all the API calls to Mega will hang.
34
+
- For .NET Framework from 4.5 to 4.7.0, add `ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;`
33
35
- For .NET Framework 4, add `ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;` (.NET 4.5 should be installed on the machine).
36
+
- Alternatively, you can add relevant switches in your app.config https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls
34
37
35
38
---
36
-
37
39
\* Need a link.xml file if IL2CPP is used:
38
40
```
39
41
<linker>
@@ -44,7 +46,6 @@ The library supports .NET 4.0, .NET 4.5, .NET 4.6 and [.NET Standard 1.3](https:
44
46
</assembly>
45
47
</linker>
46
48
```
47
-
48
49
---
49
50
50
51
MegaApiClient source is available on [GitHub](https://github.com/gpailler/MegaApiClient) and is released under [MIT](https://choosealicense.com/licenses/mit/) license.
0 commit comments