Skip to content
This repository was archived by the owner on Apr 17, 2021. It is now read-only.

Upgrade to Visual Studio 2017 #6

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
8a2d154
Upgrade to Visual Studio 2017
kdurkin77 Sep 12, 2019
63b8533
Upgraded to use Visual Studio 2017/2019.
kdurkin77 Nov 14, 2019
8b571c8
Made library compatible with net standard 2.1, net47, net471, net472,…
kdurkin77 Nov 15, 2019
fc44786
Removing .vs and all bin and obj folders since they are not needed
kdurkin77 Nov 15, 2019
cf4d441
Adding gitignore
kdurkin77 Nov 15, 2019
9e6a37b
Adding the needed files for Makefile, CONTRIBUTING.md, CONTRIBUTORS, …
kdurkin77 Nov 15, 2019
311ea08
Updated the README.md, CONTRIBUTING.md, and CONTRIBUTORS
kdurkin77 Nov 15, 2019
2dda519
Removed the makefiles as they may no longer work
kdurkin77 Nov 15, 2019
f93d7a3
Nuget properties
kdurkin77 Nov 15, 2019
f502a20
Renamed MyTestClient to NetSnmpTestClien
kdurkin77 Nov 15, 2019
6a8e373
Fixed the naming problems
kdurkin77 Nov 15, 2019
31d62e9
Added a strong name and updated the assembly to DTLS2.Net
kdurkin77 Nov 18, 2019
1a5b02b
Updated version
kdurkin77 Nov 18, 2019
4618396
Updated assembly version
kdurkin77 Nov 18, 2019
64305ff
Added compatibility with NET452 and STANDARD1_3
kdurkin77 Nov 20, 2019
74b8437
Defaulting the _Version to _SupportedVersion, removed the null checks…
kdurkin77 Dec 11, 2019
7a1bb0c
Updated version
kdurkin77 Dec 11, 2019
f059335
Added a timeout for connecting to the server, throws an exception if …
kdurkin77 Dec 19, 2019
cc1198f
Increased socket buffer size to the max size a DTLS packet can be (18…
kdurkin77 Jan 3, 2020
78e9858
Increased version #
kdurkin77 Jan 3, 2020
389d62b
Using ThreadPool.QueueUserWorkItem instead of manually starting a new…
kdurkin77 Jan 9, 2020
a2a33d7
Moving to Tasks instead of manually handling threading. Added Async f…
kdurkin77 Jan 14, 2020
6684f97
Removing the user files and updating the version
kdurkin77 Jan 14, 2020
86ab699
Replaced NETSTANDARD1_3 with NETSTANDARD2_0
kdurkin77 Jan 16, 2020
e873a0e
Breaking changes - made real async functions now, removed the blockin…
kdurkin77 Jan 16, 2020
a8aab20
Updated version and added release note
kdurkin77 Jan 16, 2020
3dfa63d
Breaking changes - made real async functions now that will need await…
kdurkin77 Jan 16, 2020
c4cb52e
Updated the compiler conditionals for NETSTANDARD2_0, it can do the s…
kdurkin77 Jan 16, 2020
adcd0de
Using an action instead of an event to call after receiving data sinc…
kdurkin77 Jan 17, 2020
62d63eb
Fixed the bouncy castle version
kdurkin77 Jan 17, 2020
8cd0786
Made Client Disposable
kdurkin77 Jan 17, 2020
0ac9f34
Removed _ShouldTriggerRecordProccess since we're actually awaiting th…
kdurkin77 Jan 20, 2020
8ebcc6b
Added .ConfigureAwait(false) to all awaits
kdurkin77 Jan 20, 2020
1ccbaa6
Updated release notes and version
kdurkin77 Jan 20, 2020
8d1e0d9
Wrapping the completed task in a using to ensure it's disposed proper…
kdurkin77 Jan 28, 2020
dc27059
Typo in release notes
kdurkin77 Jan 28, 2020
9d3c439
Removing the console writes because they were causing high CPU usage
kdurkin77 Feb 3, 2020
4916a00
POSSIBLE BREAKING CHANGES
kdurkin77 Feb 4, 2020
684fe33
Changed the max packet size to work better with standards. For IPv4 m…
kdurkin77 Jun 11, 2020
77c3d07
Added some missing .ConfigureAwait(false)
kdurkin77 Aug 12, 2020
0f9f371
Updated version and notes
kdurkin77 Aug 12, 2020
1ac1807
BREAKING CHANGE: Removed support for NET452
kdurkin77 Aug 28, 2020
1e4624a
Updated author name and repo url
kdurkin77 Sep 15, 2020
f739966
updated version
kdurkin77 Sep 15, 2020
7e0e257
Updated Server to use the proper "safe" MTU size
kdurkin77 Mar 29, 2021
9afa222
Added ability to use more than 2 certs in the chain
kdurkin77 Jul 1, 2021
da2f25f
Corrected the project and repo URLs
kdurkin77 Jul 2, 2021
98e0b5e
updated frameworks, packages, and language features
kdurkin77 May 2, 2024
2af1578
using RSA instead of RSACryptoServiceProvider and CngKey
kdurkin77 May 2, 2024
47a7a7c
making the buffer for .net6+ the proper size
kdurkin77 May 2, 2024
fe85002
updated GetEncryptedRsaPreMasterSecret to use RSA
kdurkin77 May 2, 2024
ef7945e
attempting to use a RsaCng for signing
kdurkin77 May 3, 2024
3da2808
RSA instead of RSACng?
kdurkin77 May 3, 2024
bdff742
using obsolete method to get private/public keys :(
kdurkin77 May 3, 2024
adcc1ff
removing non net standard conditionals since we no longer have legacy…
kdurkin77 May 3, 2024
be46910
only netstandard support?
kdurkin77 May 3, 2024
21fbe30
hopefully works for everything but .net8
kdurkin77 May 3, 2024
3cda78c
additional test target frameworks
kdurkin77 May 3, 2024
e185b70
attempting RSA to RSACSP
kdurkin77 May 6, 2024
3b738bf
Revert "attempting RSA to RSACSP"
kdurkin77 May 6, 2024
c27612d
hopefully extended master secret extension works now
kdurkin77 May 6, 2024
a665710
updated label for extended master secret
kdurkin77 May 6, 2024
2c50a36
extended master secret works!
kdurkin77 May 7, 2024
218e8bc
not sending EncryptThenMac extension in the client hello since it's n…
kdurkin77 May 8, 2024
978ceb2
cleanup proj file package
kdurkin77 May 8, 2024
cc597de
updated release notes and version
kdurkin77 May 8, 2024
02f730a
Updated the way we get the private and public keys so that it works t…
kdurkin77 May 28, 2024
5c78d0e
updated version and package release notes
kdurkin77 May 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,5 @@ ModelManifest.xml

# FAKE - F# Make
.fake/
/TestClient/*.user
/TestServer/*.user
12 changes: 2 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@

![](doc/img.png)

----

# DTLS.Net contributor guide.


## Reporting issues and bugs.

If you discover a bug, or find an issue or area that you feel needs improvement:

* Navigate to the "Issues" tab on the project Github page https://github.com/CreatorDev/DTLS.Net/issues
* Navigate to the "Issues" tab on the project Github page https://github.com/kmiller77/DTLS.Net/issues
* Click the "New Issue" button.


Expand Down Expand Up @@ -83,7 +78,7 @@ Use the same email address that you used to sign up for your github account.
### Forking the repository.

If you want to contribute to the project the best practice is to create a fork. To do so
navigate to *https://github.com/CreatorDev/DTLS.Net* and click on the *fork* button at the top right of the
navigate to https://github.com/kmiller77/DTLS.Net and click on the *fork* button at the top right of the
screen. If you are a member of multiple organisations you will be presented with a selection screen
which can be used to select where to create the fork. Click on your user account to create the fork.

Expand Down Expand Up @@ -129,9 +124,6 @@ $ git checkout master -b dev-branch1 --track

Once you have created your branch make your changes, then commit them to your new branch.

### Coding style.

The DTLS.Net coding style guidelines can be found in the [coding style guide](doc/coding_style.md).

### Commit messages.

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Delme Thomas <[email protected]>
Tony Walsworth documentation <[email protected]>

Krissy Miller <[email protected]>
53 changes: 24 additions & 29 deletions DTLS.Net.sln
Original file line number Diff line number Diff line change
@@ -1,48 +1,43 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
# Visual Studio Version 16
VisualStudioVersion = 16.0.29509.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{F03FE972-A21E-403E-B93F-28CA681083E3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DTLS.Net", "DTLS.Net\DTLS.Net.csproj", "{B409CE38-996F-4D15-B336-FD1BAA5A7CC9}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{52BB0453-16F8-412F-AC41-A588994757CA}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
EndProjectSection
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestClient", "TestClient\TestClient.csproj", "{2F493C3D-E4F0-4578-A3A9-42B7F6356915}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "DTLS.Net", "src\DTLS.Net\DTLS.Net.xproj", "{6D15ED53-D821-4909-8318-859D1F98F1DA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestServer", "TestServer\TestServer.csproj", "{0A1FB939-36AF-472E-9D7F-6555D3EF9BE4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{296FC660-E501-4920-8F34-ADB6B9BCE099}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestServer", "test\TestServer\TestServer.xproj", "{A5380CE2-6DA3-44D2-B495-AF167CEF7520}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "TestClient", "test\TestClient\TestClient.xproj", "{EF71B497-E9D0-41D1-AEED-49F5532A4524}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetSnmpTestClient", "NetSnmpTestClient\NetSnmpTestClient.csproj", "{E9BD3CF2-8F1A-45D0-A7E2-B793B8F6A52A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6D15ED53-D821-4909-8318-859D1F98F1DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6D15ED53-D821-4909-8318-859D1F98F1DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6D15ED53-D821-4909-8318-859D1F98F1DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6D15ED53-D821-4909-8318-859D1F98F1DA}.Release|Any CPU.Build.0 = Release|Any CPU
{A5380CE2-6DA3-44D2-B495-AF167CEF7520}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A5380CE2-6DA3-44D2-B495-AF167CEF7520}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A5380CE2-6DA3-44D2-B495-AF167CEF7520}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A5380CE2-6DA3-44D2-B495-AF167CEF7520}.Release|Any CPU.Build.0 = Release|Any CPU
{EF71B497-E9D0-41D1-AEED-49F5532A4524}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF71B497-E9D0-41D1-AEED-49F5532A4524}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EF71B497-E9D0-41D1-AEED-49F5532A4524}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EF71B497-E9D0-41D1-AEED-49F5532A4524}.Release|Any CPU.Build.0 = Release|Any CPU
{B409CE38-996F-4D15-B336-FD1BAA5A7CC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B409CE38-996F-4D15-B336-FD1BAA5A7CC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B409CE38-996F-4D15-B336-FD1BAA5A7CC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B409CE38-996F-4D15-B336-FD1BAA5A7CC9}.Release|Any CPU.Build.0 = Release|Any CPU
{2F493C3D-E4F0-4578-A3A9-42B7F6356915}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2F493C3D-E4F0-4578-A3A9-42B7F6356915}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2F493C3D-E4F0-4578-A3A9-42B7F6356915}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2F493C3D-E4F0-4578-A3A9-42B7F6356915}.Release|Any CPU.Build.0 = Release|Any CPU
{0A1FB939-36AF-472E-9D7F-6555D3EF9BE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0A1FB939-36AF-472E-9D7F-6555D3EF9BE4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0A1FB939-36AF-472E-9D7F-6555D3EF9BE4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0A1FB939-36AF-472E-9D7F-6555D3EF9BE4}.Release|Any CPU.Build.0 = Release|Any CPU
{E9BD3CF2-8F1A-45D0-A7E2-B793B8F6A52A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E9BD3CF2-8F1A-45D0-A7E2-B793B8F6A52A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E9BD3CF2-8F1A-45D0-A7E2-B793B8F6A52A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E9BD3CF2-8F1A-45D0-A7E2-B793B8F6A52A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{6D15ED53-D821-4909-8318-859D1F98F1DA} = {F03FE972-A21E-403E-B93F-28CA681083E3}
{A5380CE2-6DA3-44D2-B495-AF167CEF7520} = {296FC660-E501-4920-8F34-ADB6B9BCE099}
{EF71B497-E9D0-41D1-AEED-49F5532A4524} = {296FC660-E501-4920-8F34-ADB6B9BCE099}
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {25A91A6B-0909-4602-9D97-CCAD8DD48A4D}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ products derived from this software without specific prior written permission.
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
***********************************************************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DTLS
{
public class CertificateInfo
Expand All @@ -35,10 +30,6 @@ public class CertificateInfo

public object PrivateKey { get; set; }

public CertificateInfo()
{

}

public CertificateInfo() { }
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ products derived from this software without specific prior written permission.

using Org.BouncyCastle.Asn1.X509;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DTLS
{
Expand All @@ -43,42 +39,44 @@ public class CertificateSubject

public string Country { get; set; }

public CertificateSubject()
{

}
public CertificateSubject() { }

internal CertificateSubject(X509CertificateStructure cert)
{
IList ids = cert.Subject.GetOidList();
IList values = cert.Subject.GetValueList();
for (int index = 0; index < ids.Count; index++)
if (cert == null)
{
throw new ArgumentNullException(nameof(cert));
}

var ids = cert.Subject.GetOidList();
var values = cert.Subject.GetValueList();
for (var index = 0; index < ids.Count; index++)
{
if (X509Name.CN.Equals(ids[index]))
{
CommonName = (string)values[index];
this.CommonName = (string)values[index];
}
else if (X509Name.O.Equals(ids[index]))
{
Organistion = (string)values[index];
this.Organistion = (string)values[index];
}
else if (X509Name.OU.Equals(ids[index]))
{
OrganistionUnit = (string)values[index];
this.OrganistionUnit = (string)values[index];
}
else if (X509Name.L.Equals(ids[index]))
{
Location = (string)values[index];
this.Location = (string)values[index];
}
else if (X509Name.ST.Equals(ids[index]))
{
State = (string)values[index];
this.State = (string)values[index];
}
else if (X509Name.C.Equals(ids[index]))
{
Country = (string)values[index];
this.Country = (string)values[index];
}
}
}
}
}
}
Loading