Skip to content

Commit

Permalink
Fixed a typo in the IntermediateCA test certificate...no functional c…
Browse files Browse the repository at this point in the history
…hanges.
  • Loading branch information
cnoon committed Jul 19, 2015
1 parent b8f30a9 commit 3eb18f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tests/TLSEvaluationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import XCTest

private struct TestCertificates {
static let RootCA = TestCertificates.certificateWithFileName("root-ca-disig")
static let IntermedateCA = TestCertificates.certificateWithFileName("intermediate-ca-disig")
static let IntermediateCA = TestCertificates.certificateWithFileName("intermediate-ca-disig")
static let Leaf = TestCertificates.certificateWithFileName("testssl-expire.disig.sk")

static func certificateWithFileName(fileName: String) -> SecCertificate {
Expand All @@ -43,7 +43,7 @@ private struct TestCertificates {

private struct TestPublicKeys {
static let RootCA = TestPublicKeys.publicKeyForCertificate(TestCertificates.RootCA)
static let IntermediateCA = TestPublicKeys.publicKeyForCertificate(TestCertificates.IntermedateCA)
static let IntermediateCA = TestPublicKeys.publicKeyForCertificate(TestCertificates.IntermediateCA)
static let Leaf = TestPublicKeys.publicKeyForCertificate(TestCertificates.Leaf)

static func publicKeyForCertificate(certificate: SecCertificate) -> SecKey {
Expand Down Expand Up @@ -154,7 +154,7 @@ class TLSEvaluationExpiredLeafCertificateTestCase: BaseTestCase {

func testThatExpiredCertificateRequestFailsWhenPinningAllCertificates() {
// Given
let certificates = [TestCertificates.Leaf, TestCertificates.IntermedateCA, TestCertificates.RootCA]
let certificates = [TestCertificates.Leaf, TestCertificates.IntermediateCA, TestCertificates.RootCA]
let policies: [String: ServerTrustPolicy] = [
self.host: .PinCertificates(certificates: certificates, validateCertificateChain: true, validateHost: true)
]
Expand Down

0 comments on commit 3eb18f7

Please sign in to comment.