-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4177b03
commit bdac45b
Showing
9 changed files
with
354 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
source/nanoFramework.Tools.DebugLibrary.Shared/DeviceConfiguration/X509CaRootBundleBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Copyright (c) 2018 The nanoFramework project contributors | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
namespace nanoFramework.Tools.Debugger | ||
{ | ||
public class X509CaRootBundleBase | ||
{ | ||
/// <summary> | ||
/// This is the marker placeholder for this configuration block | ||
/// 4 bytes length. | ||
/// </summary> | ||
public byte[] Marker; | ||
|
||
/// <summary> | ||
/// Size of the certificate. | ||
/// </summary> | ||
public uint CertificateSize; | ||
|
||
/// <summary> | ||
/// Certificate | ||
/// </summary> | ||
public byte[] Certificate; | ||
|
||
public X509CaRootBundleBase() | ||
{ | ||
// need to init these here to match the expected size on the struct to be sent to the device | ||
Marker = new byte[4]; | ||
Certificate = new byte[64]; | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...Framework.Tools.DebugLibrary.Shared/DeviceConfiguration/X509CaRootBundlePropertiesBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// Copyright (c) 2018 The nanoFramework project contributors | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
using PropertyChanged; | ||
|
||
namespace nanoFramework.Tools.Debugger | ||
{ | ||
[AddINotifyPropertyChangedInterface] | ||
public class X509CaRootBundlePropertiesBase | ||
{ | ||
private byte[] _certificate; | ||
|
||
public uint CertificateSize { get; set; } | ||
|
||
public byte[] Certificate | ||
{ | ||
get => _certificate; | ||
set | ||
{ | ||
_certificate = value; | ||
CertificateSize = (uint)value.Length; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.