mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8274471: Verification of OCSP Response signed with RSASSA-PSS fails
Reviewed-by: hchao, jnimeh
This commit is contained in:
parent
f2404d60de
commit
f63c4a832a
9 changed files with 65 additions and 86 deletions
|
@ -312,7 +312,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
|
|||
*
|
||||
* @return DER encoded parameters, or null not present.
|
||||
*/
|
||||
public byte[] getEncodedParams() throws IOException {
|
||||
public byte[] getEncodedParams() {
|
||||
return (encodedParams == null ||
|
||||
algid.toString().equals(KnownOIDs.SpecifiedSHA2withECDSA.value()))
|
||||
? null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -820,13 +820,7 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
|
|||
* null if no parameters are present.
|
||||
*/
|
||||
public byte[] getSigAlgParams() {
|
||||
if (sigAlgId == null)
|
||||
return null;
|
||||
try {
|
||||
return sigAlgId.getEncodedParams();
|
||||
} catch (IOException e) {
|
||||
return null;
|
||||
}
|
||||
return sigAlgId == null ? null : sigAlgId.getEncodedParams();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1030,13 +1030,7 @@ public class X509CertImpl extends X509Certificate implements DerEncoder {
|
|||
* null if no parameters are present.
|
||||
*/
|
||||
public byte[] getSigAlgParams() {
|
||||
if (algId == null)
|
||||
return null;
|
||||
try {
|
||||
return algId.getEncodedParams();
|
||||
} catch (IOException e) {
|
||||
return null;
|
||||
}
|
||||
return algId == null ? null : algId.getEncodedParams();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue