-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor out TLSOptions and add TLSConfiguration protocol (#702)
- Loading branch information
Showing
7 changed files
with
90 additions
and
90 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
29 changes: 29 additions & 0 deletions
29
Sources/ClientRuntime/Networking/Http/CRT/TLSConfiguration.swift
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,29 @@ | ||
// | ||
// Copyright Amazon.com Inc. or its affiliates. | ||
// All Rights Reserved. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// | ||
|
||
/** | ||
* Configuration settings about TLS set up. | ||
* All settings are optional. | ||
* Not specifying them will use the SDK defaults | ||
*/ | ||
public protocol TLSConfiguration { | ||
|
||
// Optional path to a PEM certificate | ||
var certificate: String? { get set } | ||
|
||
// Optional path to certificate directory | ||
var certificateDir: String? { get set } | ||
|
||
// Optional path to a PEM format private key | ||
var privateKey: String? { get set } | ||
|
||
// Optional path to PKCS #12 certificate , in PEM format | ||
var pkcs12Path: String? { get set } | ||
|
||
// Optional PKCS#12 password | ||
var pkcs12Password: String? { get set } | ||
} |
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 was deleted.
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