@@ -344,7 +344,7 @@ impl Display for rustls_result {
344
344
CertUnknownIssuer => Error :: InvalidCertificate ( CertificateError :: UnknownIssuer ) . fmt ( f) ,
345
345
CertBadSignature => Error :: InvalidCertificate ( CertificateError :: BadSignature ) . fmt ( f) ,
346
346
CertUnsupportedSignatureAlgorithm => {
347
- Error :: InvalidCertificate ( CertificateError :: UnsupportedSignatureAlgorithm ) . fmt ( f )
347
+ write ! ( f , "unsupported certificate signature algorithm" )
348
348
}
349
349
CertNotValidForName => {
350
350
Error :: InvalidCertificate ( CertificateError :: NotValidForName ) . fmt ( f)
@@ -492,10 +492,9 @@ impl Display for rustls_result {
492
492
CertRevocationListBadSignature => {
493
493
Error :: InvalidCertRevocationList ( CertRevocationListError :: BadSignature ) . fmt ( f)
494
494
}
495
- CertRevocationListUnsupportedSignatureAlgorithm => Error :: InvalidCertRevocationList (
496
- CertRevocationListError :: UnsupportedSignatureAlgorithm ,
497
- )
498
- . fmt ( f) ,
495
+ CertRevocationListUnsupportedSignatureAlgorithm => {
496
+ write ! ( f, "unsupported CRL signature algorithm" )
497
+ }
499
498
CertRevocationListInvalidCrlNumber => {
500
499
Error :: InvalidCertRevocationList ( CertRevocationListError :: InvalidCrlNumber ) . fmt ( f)
501
500
}
@@ -684,7 +683,7 @@ fn map_crl_error(err: CertRevocationListError) -> rustls_result {
684
683
685
684
match err {
686
685
CertRevocationListError :: BadSignature => CertRevocationListBadSignature ,
687
- CertRevocationListError :: UnsupportedSignatureAlgorithm => {
686
+ CertRevocationListError :: UnsupportedSignatureAlgorithmContext { .. } => {
688
687
CertRevocationListUnsupportedSignatureAlgorithm
689
688
}
690
689
CertRevocationListError :: InvalidCrlNumber => CertRevocationListInvalidCrlNumber ,
@@ -752,7 +751,9 @@ fn map_invalid_certificate_error(err: CertificateError) -> rustls_result {
752
751
CertificateError :: ExpiredRevocationList
753
752
| CertificateError :: ExpiredRevocationListContext { .. } => CertExpiredRevocationList ,
754
753
CertificateError :: BadSignature => CertBadSignature ,
755
- CertificateError :: UnsupportedSignatureAlgorithm => CertUnsupportedSignatureAlgorithm ,
754
+ CertificateError :: UnsupportedSignatureAlgorithmContext { .. } => {
755
+ CertUnsupportedSignatureAlgorithm
756
+ }
756
757
CertificateError :: NotValidForName | CertificateError :: NotValidForNameContext { .. } => {
757
758
CertNotValidForName
758
759
}
0 commit comments