mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8291509: Minor cleanup could be done in sun.security
Reviewed-by: weijun
This commit is contained in:
parent
6beeb8471c
commit
4cec141a90
298 changed files with 2650 additions and 3262 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2022, 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
|
||||
|
@ -74,7 +74,7 @@ implements CertAttrSet<String> {
|
|||
DerOutputStream tmp = new DerOutputStream();
|
||||
|
||||
if (ca) {
|
||||
tmp.putBoolean(ca);
|
||||
tmp.putBoolean(true);
|
||||
// Only encode pathLen when ca == true
|
||||
if (pathLen >= 0) {
|
||||
tmp.putInteger(pathLen);
|
||||
|
@ -194,11 +194,7 @@ implements CertAttrSet<String> {
|
|||
DerOutputStream tmp = new DerOutputStream();
|
||||
if (extensionValue == null) {
|
||||
this.extensionId = PKIXExtensions.BasicConstraints_Id;
|
||||
if (ca) {
|
||||
critical = true;
|
||||
} else {
|
||||
critical = false;
|
||||
}
|
||||
critical = ca;
|
||||
encodeThis();
|
||||
}
|
||||
super.encode(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue