@@ -344,7 +344,7 @@ impl Display for rustls_result {
344344 CertUnknownIssuer => Error :: InvalidCertificate ( CertificateError :: UnknownIssuer ) . fmt ( f) ,
345345 CertBadSignature => Error :: InvalidCertificate ( CertificateError :: BadSignature ) . fmt ( f) ,
346346 CertUnsupportedSignatureAlgorithm => {
347- Error :: InvalidCertificate ( CertificateError :: UnsupportedSignatureAlgorithm ) . fmt ( f )
347+ write ! ( f , "unsupported certificate signature algorithm" )
348348 }
349349 CertNotValidForName => {
350350 Error :: InvalidCertificate ( CertificateError :: NotValidForName ) . fmt ( f)
@@ -492,10 +492,9 @@ impl Display for rustls_result {
492492 CertRevocationListBadSignature => {
493493 Error :: InvalidCertRevocationList ( CertRevocationListError :: BadSignature ) . fmt ( f)
494494 }
495- CertRevocationListUnsupportedSignatureAlgorithm => Error :: InvalidCertRevocationList (
496- CertRevocationListError :: UnsupportedSignatureAlgorithm ,
497- )
498- . fmt ( f) ,
495+ CertRevocationListUnsupportedSignatureAlgorithm => {
496+ write ! ( f, "unsupported CRL signature algorithm" )
497+ }
499498 CertRevocationListInvalidCrlNumber => {
500499 Error :: InvalidCertRevocationList ( CertRevocationListError :: InvalidCrlNumber ) . fmt ( f)
501500 }
@@ -684,7 +683,7 @@ fn map_crl_error(err: CertRevocationListError) -> rustls_result {
684683
685684 match err {
686685 CertRevocationListError :: BadSignature => CertRevocationListBadSignature ,
687- CertRevocationListError :: UnsupportedSignatureAlgorithm => {
686+ CertRevocationListError :: UnsupportedSignatureAlgorithmContext { .. } => {
688687 CertRevocationListUnsupportedSignatureAlgorithm
689688 }
690689 CertRevocationListError :: InvalidCrlNumber => CertRevocationListInvalidCrlNumber ,
@@ -752,7 +751,9 @@ fn map_invalid_certificate_error(err: CertificateError) -> rustls_result {
752751 CertificateError :: ExpiredRevocationList
753752 | CertificateError :: ExpiredRevocationListContext { .. } => CertExpiredRevocationList ,
754753 CertificateError :: BadSignature => CertBadSignature ,
755- CertificateError :: UnsupportedSignatureAlgorithm => CertUnsupportedSignatureAlgorithm ,
754+ CertificateError :: UnsupportedSignatureAlgorithmContext { .. } => {
755+ CertUnsupportedSignatureAlgorithm
756+ }
756757 CertificateError :: NotValidForName | CertificateError :: NotValidForNameContext { .. } => {
757758 CertNotValidForName
758759 }
0 commit comments