Skip to content

Commit 8554fe6

Browse files
author
Jamil Nimeh
committed
8253866: Security Libs Terminology Refresh
Reviewed-by: erikj, weijun, mullan
1 parent c2a3c7e commit 8554fe6

File tree

15 files changed

+72
-70
lines changed

15 files changed

+72
-70
lines changed

make/ToolsJdk.gmk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -67,9 +67,9 @@ TOOL_GENERATECURRENCYDATA = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_
6767
TOOL_TZDB = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
6868
build.tools.tzdb.TzdbZoneRulesCompiler
6969

70-
TOOL_BLACKLISTED_CERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
70+
TOOL_BLOCKED_CERTS = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
7171
--add-exports java.base/sun.security.util=ALL-UNNAMED \
72-
build.tools.blacklistedcertsconverter.BlacklistedCertsConverter
72+
build.tools.blockedcertsconverter.BlockedCertsConverter
7373

7474
TOOL_MAKEJAVASECURITY = $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes \
7575
build.tools.makejavasecurity.MakeJavaSecurity

make/data/blacklistedcertsconverter/blacklisted.certs.pem renamed to make/data/blockedcertsconverter/blocked.certs.pem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! java BlacklistedCertsConverter SHA-256
1+
#! java BlockedCertsConverter SHA-256
22

33
# The line above must be the first line of this file. Do not
44
# remove it.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323
* questions.
2424
*/
2525

26-
package build.tools.blacklistedcertsconverter;
26+
package build.tools.blockedcertsconverter;
2727

2828
import java.io.IOException;
2929
import java.math.BigInteger;
@@ -45,15 +45,15 @@
4545
import sun.security.util.DerValue;
4646

4747
/**
48-
* Converts blacklisted.certs.pem from System.in to blacklisted.certs in
48+
* Converts blocked.certs.pem from System.in to blocked.certs in
4949
* System.out. The input must start with a #! line including the fingerprint
5050
* algorithm. The output is sorted and unique.
5151
*/
52-
public class BlacklistedCertsConverter {
52+
public class BlockedCertsConverter {
5353

5454
public static void main(String[] args) throws Exception {
5555

56-
byte[] pattern = "#! java BlacklistedCertsConverter ".getBytes();
56+
byte[] pattern = "#! java BlockedCertsConverter ".getBytes();
5757
String mdAlg = "";
5858

5959
for (int i=0; ; i++) {

make/modules/java.base/Gendata.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -29,7 +29,7 @@ include gendata/GendataBreakIterator.gmk
2929

3030
include gendata/GendataTZDB.gmk
3131

32-
include gendata/GendataBlacklistedCerts.gmk
32+
include gendata/GendataBlockedCerts.gmk
3333

3434
include gendata/GendataCryptoPolicy.gmk
3535

make/modules/java.base/gendata/GendataBlacklistedCerts.gmk renamed to make/modules/java.base/gendata/GendataBlockedCerts.gmk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -23,12 +23,12 @@
2323
# questions.
2424
#
2525

26-
GENDATA_BLACKLISTED_CERTS_SRC += $(TOPDIR)/make/data/blacklistedcertsconverter/blacklisted.certs.pem
27-
GENDATA_BLACKLISTED_CERTS := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/security/blacklisted.certs
26+
GENDATA_BLOCKED_CERTS_SRC += $(TOPDIR)/make/data/blockedcertsconverter/blocked.certs.pem
27+
GENDATA_BLOCKED_CERTS := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE)/security/blocked.certs
2828

29-
$(GENDATA_BLACKLISTED_CERTS): $(BUILD_TOOLS_JDK) $(GENDATA_BLACKLISTED_CERTS_SRC)
30-
$(call LogInfo, Generating blacklisted certs)
29+
$(GENDATA_BLOCKED_CERTS): $(BUILD_TOOLS_JDK) $(GENDATA_BLOCKED_CERTS_SRC)
30+
$(call LogInfo, Generating blocked certs)
3131
$(call MakeDir, $(@D))
32-
($(CAT) $(GENDATA_BLACKLISTED_CERTS_SRC) | $(TOOL_BLACKLISTED_CERTS) > $@) || exit 1
32+
($(CAT) $(GENDATA_BLOCKED_CERTS_SRC) | $(TOOL_BLOCKED_CERTS) > $@) || exit 1
3333

34-
TARGETS += $(GENDATA_BLACKLISTED_CERTS)
34+
TARGETS += $(GENDATA_BLOCKED_CERTS)

make/scripts/compare.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
3+
# Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
#
66
# This code is free software; you can redistribute it and/or modify it
@@ -1084,7 +1084,7 @@ compare_all_execs() {
10841084
-o -name '*.zip' -o -name '*.jimage' -o -name '*.java' -o -name '*.mf' \
10851085
-o -name '*.jpg' -o -name '*.wsdl' -o -name '*.js' -o -name '*.sh' \
10861086
-o -name '*.bat' -o -name '*LICENSE' -o -name '*.d' -o -name '*store' \
1087-
-o -name 'blacklist' -o -name '*certs' -o -name '*.ttf' \
1087+
-o -name 'blocked' -o -name '*certs' -o -name '*.ttf' \
10881088
-o -name '*.jfc' -o -name '*.dat' -o -name 'release' -o -name '*.dir'\
10891089
-o -name '*.sym' -o -name '*.idl' -o -name '*.h' -o -name '*.access' \
10901090
-o -name '*.template' -o -name '*.policy' -o -name '*.security' \

src/java.base/share/classes/com/sun/crypto/provider/JceKeyStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -551,7 +551,7 @@ public void engineStore(OutputStream stream, char[] password)
551551
* }
552552
*
553553
* ended by a keyed SHA1 hash (bytes only) of
554-
* { password + whitener + preceding body }
554+
* { password + extra data + preceding body }
555555
*/
556556

557557
// password is mandatory when storing
@@ -897,7 +897,7 @@ public void engineLoad(InputStream stream, char[] password)
897897

898898
/**
899899
* To guard against tampering with the keystore, we append a keyed
900-
* hash with a bit of whitener.
900+
* hash with a bit of extra data.
901901
*/
902902
private MessageDigest getPreKeyedHash(char[] password)
903903
throws NoSuchAlgorithmException

src/java.base/share/classes/java/util/jar/JarVerifier.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -90,7 +90,7 @@ class JarVerifier {
9090
/** makes code source singleton instances unique to us */
9191
private Object csdomain = new Object();
9292

93-
/** collect -DIGEST-MANIFEST values for blacklist */
93+
/** collect -DIGEST-MANIFEST values for deny list */
9494
private List<Object> manifestDigests;
9595

9696
public JarVerifier(byte rawBytes[]) {

src/java.base/share/classes/sun/security/provider/JavaKeyStore.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -551,7 +551,7 @@ public void engineStore(OutputStream stream, char[] password)
551551
* }
552552
*
553553
* ended by a keyed SHA1 hash (bytes only) of
554-
* { password + whitener + preceding body }
554+
* { password + extra data + preceding body }
555555
*/
556556

557557
// password is mandatory when storing
@@ -817,7 +817,7 @@ public void engineLoad(InputStream stream, char[] password)
817817

818818
/**
819819
* To guard against tampering with the keystore, we append a keyed
820-
* hash with a bit of whitener.
820+
* hash with a bit of extra data.
821821
*/
822822
private MessageDigest getPreKeyedHash(char[] password)
823823
throws NoSuchAlgorithmException

src/java.base/share/classes/sun/security/util/UntrustedCertificates.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2012, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -55,12 +55,12 @@ public final class UntrustedCertificates {
5555
@Override
5656
public Void run() {
5757
File f = new File(StaticProperty.javaHome(),
58-
"lib/security/blacklisted.certs");
58+
"lib/security/blocked.certs");
5959
try (FileInputStream fin = new FileInputStream(f)) {
6060
props.load(fin);
6161
} catch (IOException fnfe) {
6262
if (debug != null) {
63-
debug.println("Error parsing blacklisted.certs");
63+
debug.println("Error parsing blocked.certs");
6464
}
6565
}
6666
return null;

0 commit comments

Comments
 (0)