Skip to content
Open
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions src/main/kotlin/Verifier.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sealed interface VerificationResult {

data object ChallengeMismatch : VerificationResult

data object PathValidationFailure : VerificationResult
data class PathValidationFailure(val cause: CertPathValidatorException) : VerificationResult

data object ChainParsingFailure : VerificationResult

Expand Down Expand Up @@ -118,7 +118,7 @@ open class Verifier(
try {
certPathValidator.validate(certPath, certPathParameters) as PKIXCertPathValidatorResult
} catch (e: CertPathValidatorException) {
return VerificationResult.PathValidationFailure
return VerificationResult.PathValidationFailure(e)
}

val keyDescription =
Expand Down