forked from wixtoolset/wix
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
f646f02
commit 451ba3c
Showing
14 changed files
with
733 additions
and
261 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
104 changes: 104 additions & 0 deletions
104
src/ext/Http/wixext/Symbols/WixHttpCertificateSymbol.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,104 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
|
||
namespace WixToolset.Http | ||
{ | ||
using WixToolset.Data; | ||
using WixToolset.Http.Symbols; | ||
|
||
public static partial class HttpSymbolDefinitions | ||
{ | ||
public static readonly IntermediateSymbolDefinition WixHttpCertificate = new IntermediateSymbolDefinition( | ||
HttpSymbolDefinitionType.WixHttpCertificate.ToString(), | ||
new[] | ||
{ | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.ComponentRef), IntermediateFieldType.String), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.Name), IntermediateFieldType.String), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.StoreLocation), IntermediateFieldType.Number), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.StoreName), IntermediateFieldType.String), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.Attributes), IntermediateFieldType.Number), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.BinaryRef), IntermediateFieldType.String), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.CertificatePath), IntermediateFieldType.String), | ||
new IntermediateFieldDefinition(nameof(HttpCertificateSymbolFields.PfxPassword), IntermediateFieldType.String), | ||
}, | ||
typeof(WixHttpCertificateSymbol)); | ||
} | ||
} | ||
|
||
namespace WixToolset.Http.Symbols | ||
{ | ||
using WixToolset.Data; | ||
using WixToolset.Http; | ||
|
||
public enum HttpCertificateSymbolFields | ||
{ | ||
ComponentRef, | ||
Name, | ||
StoreLocation, | ||
StoreName, | ||
Attributes, | ||
BinaryRef, | ||
CertificatePath, | ||
PfxPassword, | ||
} | ||
|
||
public class WixHttpCertificateSymbol : IntermediateSymbol | ||
{ | ||
public WixHttpCertificateSymbol() : base(HttpSymbolDefinitions.WixHttpCertificate, null, null) | ||
{ | ||
} | ||
|
||
public WixHttpCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpSymbolDefinitions.WixHttpCertificate, sourceLineNumber, id) | ||
{ | ||
} | ||
|
||
public IntermediateField this[HttpCertificateSymbolFields index] => this.Fields[(int)index]; | ||
|
||
public string ComponentRef | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.ComponentRef].AsString(); | ||
set => this.Set((int)HttpCertificateSymbolFields.ComponentRef, value); | ||
} | ||
|
||
public string Name | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.Name].AsString(); | ||
set => this.Set((int)HttpCertificateSymbolFields.Name, value); | ||
} | ||
|
||
public int StoreLocation | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.StoreLocation].AsNumber(); | ||
set => this.Set((int)HttpCertificateSymbolFields.StoreLocation, value); | ||
} | ||
|
||
public string StoreName | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.StoreName].AsString(); | ||
set => this.Set((int)HttpCertificateSymbolFields.StoreName, value); | ||
} | ||
|
||
public int Attributes | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.Attributes].AsNumber(); | ||
set => this.Set((int)HttpCertificateSymbolFields.Attributes, value); | ||
} | ||
|
||
public string BinaryRef | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.BinaryRef].AsString(); | ||
set => this.Set((int)HttpCertificateSymbolFields.BinaryRef, value); | ||
} | ||
|
||
public string CertificatePath | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.CertificatePath].AsString(); | ||
set => this.Set((int)HttpCertificateSymbolFields.CertificatePath, value); | ||
} | ||
|
||
public string PfxPassword | ||
{ | ||
get => this.Fields[(int)HttpCertificateSymbolFields.PfxPassword].AsString(); | ||
set => this.Set((int)HttpCertificateSymbolFields.PfxPassword, value); | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/ext/Http/wixext/Symbols/WixHttpSslBindingCertificateSymbol.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,55 @@ | ||
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
|
||
namespace WixToolset.Http | ||
{ | ||
using WixToolset.Data; | ||
using WixToolset.Http.Symbols; | ||
|
||
public static partial class HttpSymbolDefinitions | ||
{ | ||
public static readonly IntermediateSymbolDefinition WixHttpSslBindingCertificates = new IntermediateSymbolDefinition( | ||
HttpSymbolDefinitionType.WixHttpSslBindingCertificates.ToString(), | ||
new[] | ||
{ | ||
new IntermediateFieldDefinition(nameof(HttpSslBindingCertificatesSymbolFields.BindingRef), IntermediateFieldType.String), | ||
new IntermediateFieldDefinition(nameof(HttpSslBindingCertificatesSymbolFields.CertificateRef), IntermediateFieldType.String), | ||
}, | ||
typeof(WixHttpSslBindingCertificateSymbol)); | ||
} | ||
} | ||
|
||
namespace WixToolset.Http.Symbols | ||
{ | ||
using WixToolset.Data; | ||
|
||
public enum HttpSslBindingCertificatesSymbolFields | ||
{ | ||
BindingRef, | ||
CertificateRef, | ||
} | ||
|
||
public class WixHttpSslBindingCertificateSymbol : IntermediateSymbol | ||
{ | ||
public WixHttpSslBindingCertificateSymbol() : base(HttpSymbolDefinitions.WixHttpSslBindingCertificates, null, null) | ||
{ | ||
} | ||
|
||
public WixHttpSslBindingCertificateSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(HttpSymbolDefinitions.WixHttpSslBindingCertificates, sourceLineNumber, id) | ||
{ | ||
} | ||
|
||
public IntermediateField this[HttpSslBindingCertificatesSymbolFields index] => this.Fields[(int)index]; | ||
|
||
public string BindingRef | ||
{ | ||
get => this.Fields[(int)HttpSslBindingCertificatesSymbolFields.BindingRef].AsString(); | ||
set => this.Set((int)HttpSslBindingCertificatesSymbolFields.BindingRef, value); | ||
} | ||
|
||
public string CertificateRef | ||
{ | ||
get => this.Fields[(int)HttpSslBindingCertificatesSymbolFields.CertificateRef].AsString(); | ||
set => this.Set((int)HttpSslBindingCertificatesSymbolFields.CertificateRef, value); | ||
} | ||
} | ||
} |
Oops, something went wrong.