Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
a495795c
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a495795c
编写于
10月 17, 2019
作者:
A
andrew
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
dbffd531
17b457e6
变更
108
展开全部
隐藏空白更改
内联
并排
Showing
108 changed file
with
3388 addition
and
767 deletion
+3388
-767
.hgtags
.hgtags
+5
-0
THIRD_PARTY_README
THIRD_PARTY_README
+5
-10
make/data/tzdata/VERSION
make/data/tzdata/VERSION
+1
-1
make/data/tzdata/africa
make/data/tzdata/africa
+141
-29
make/data/tzdata/antarctica
make/data/tzdata/antarctica
+7
-7
make/data/tzdata/asia
make/data/tzdata/asia
+131
-108
make/data/tzdata/australasia
make/data/tzdata/australasia
+111
-43
make/data/tzdata/europe
make/data/tzdata/europe
+193
-103
make/data/tzdata/factory
make/data/tzdata/factory
+1
-1
make/data/tzdata/leapseconds
make/data/tzdata/leapseconds
+22
-19
make/data/tzdata/northamerica
make/data/tzdata/northamerica
+187
-104
make/data/tzdata/pacificnew
make/data/tzdata/pacificnew
+1
-1
make/data/tzdata/southamerica
make/data/tzdata/southamerica
+38
-39
make/data/tzdata/systemv
make/data/tzdata/systemv
+1
-1
make/data/tzdata/zone.tab
make/data/tzdata/zone.tab
+4
-1
make/lib/NetworkingLibraries.gmk
make/lib/NetworkingLibraries.gmk
+1
-1
src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java
...classes/com/sun/security/auth/module/Krb5LoginModule.java
+10
-2
src/share/classes/java/awt/Font.java
src/share/classes/java/awt/Font.java
+5
-1
src/share/classes/java/io/FilePermission.java
src/share/classes/java/io/FilePermission.java
+37
-0
src/share/classes/java/net/NetPermission.java
src/share/classes/java/net/NetPermission.java
+10
-1
src/share/classes/java/net/ServerSocket.java
src/share/classes/java/net/ServerSocket.java
+15
-0
src/share/classes/java/net/Socket.java
src/share/classes/java/net/Socket.java
+18
-0
src/share/classes/java/net/URL.java
src/share/classes/java/net/URL.java
+10
-0
src/share/classes/java/util/regex/Pattern.java
src/share/classes/java/util/regex/Pattern.java
+13
-1
src/share/classes/javax/security/auth/kerberos/JavaxSecurityAuthKerberosAccessImpl.java
...ty/auth/kerberos/JavaxSecurityAuthKerberosAccessImpl.java
+7
-3
src/share/classes/javax/security/auth/kerberos/KerberosTicket.java
.../classes/javax/security/auth/kerberos/KerberosTicket.java
+18
-2
src/share/classes/sun/font/CMap.java
src/share/classes/sun/font/CMap.java
+17
-5
src/share/classes/sun/font/FileFont.java
src/share/classes/sun/font/FileFont.java
+1
-1
src/share/classes/sun/font/FontScaler.java
src/share/classes/sun/font/FontScaler.java
+6
-0
src/share/classes/sun/font/FreetypeFontScaler.java
src/share/classes/sun/font/FreetypeFontScaler.java
+21
-3
src/share/classes/sun/font/GlyphList.java
src/share/classes/sun/font/GlyphList.java
+14
-0
src/share/classes/sun/java2d/SunGraphics2D.java
src/share/classes/sun/java2d/SunGraphics2D.java
+4
-2
src/share/classes/sun/misc/Launcher.java
src/share/classes/sun/misc/Launcher.java
+3
-0
src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
.../classes/sun/net/www/protocol/http/HttpURLConnection.java
+4
-0
src/share/classes/sun/net/www/protocol/jar/Handler.java
src/share/classes/sun/net/www/protocol/jar/Handler.java
+14
-1
src/share/classes/sun/rmi/registry/RegistryImpl_Skel.java
src/share/classes/sun/rmi/registry/RegistryImpl_Skel.java
+10
-10
src/share/classes/sun/rmi/registry/RegistryImpl_Stub.java
src/share/classes/sun/rmi/registry/RegistryImpl_Stub.java
+15
-12
src/share/classes/sun/rmi/transport/DGCImpl_Skel.java
src/share/classes/sun/rmi/transport/DGCImpl_Skel.java
+9
-8
src/share/classes/sun/rmi/transport/DGCImpl_Stub.java
src/share/classes/sun/rmi/transport/DGCImpl_Stub.java
+29
-21
src/share/classes/sun/rmi/transport/StreamRemoteCall.java
src/share/classes/sun/rmi/transport/StreamRemoteCall.java
+21
-1
src/share/classes/sun/security/jgss/krb5/Krb5Context.java
src/share/classes/sun/security/jgss/krb5/Krb5Context.java
+5
-3
src/share/classes/sun/security/jgss/krb5/Krb5InitCredential.java
...re/classes/sun/security/jgss/krb5/Krb5InitCredential.java
+8
-4
src/share/classes/sun/security/jgss/krb5/Krb5MechFactory.java
...share/classes/sun/security/jgss/krb5/Krb5MechFactory.java
+3
-1
src/share/classes/sun/security/jgss/krb5/Krb5NameElement.java
...share/classes/sun/security/jgss/krb5/Krb5NameElement.java
+2
-2
src/share/classes/sun/security/jgss/krb5/Krb5ProxyCredential.java
...e/classes/sun/security/jgss/krb5/Krb5ProxyCredential.java
+29
-2
src/share/classes/sun/security/jgss/krb5/Krb5Util.java
src/share/classes/sun/security/jgss/krb5/Krb5Util.java
+23
-6
src/share/classes/sun/security/krb5/Credentials.java
src/share/classes/sun/security/krb5/Credentials.java
+20
-16
src/share/classes/sun/security/krb5/JavaxSecurityAuthKerberosAccess.java
...es/sun/security/krb5/JavaxSecurityAuthKerberosAccess.java
+12
-3
src/share/classes/sun/security/krb5/Realm.java
src/share/classes/sun/security/krb5/Realm.java
+0
-1
src/share/classes/sun/security/krb5/internal/ccache/CCacheInputStream.java
.../sun/security/krb5/internal/ccache/CCacheInputStream.java
+20
-12
src/share/classes/sun/security/krb5/internal/ccache/CCacheOutputStream.java
...sun/security/krb5/internal/ccache/CCacheOutputStream.java
+15
-1
src/share/classes/sun/security/krb5/internal/ccache/Credentials.java
...lasses/sun/security/krb5/internal/ccache/Credentials.java
+20
-0
src/share/classes/sun/security/krb5/internal/ccache/CredentialsCache.java
...s/sun/security/krb5/internal/ccache/CredentialsCache.java
+58
-7
src/share/classes/sun/security/krb5/internal/ccache/FileCredentialsCache.java
...n/security/krb5/internal/ccache/FileCredentialsCache.java
+102
-3
src/share/classes/sun/security/ssl/EllipticCurvesExtension.java
...are/classes/sun/security/ssl/EllipticCurvesExtension.java
+5
-14
src/share/classes/sun/security/util/SecurityConstants.java
src/share/classes/sun/security/util/SecurityConstants.java
+5
-1
src/share/classes/sun/security/util/SecurityProperties.java
src/share/classes/sun/security/util/SecurityProperties.java
+82
-0
src/share/classes/sun/util/calendar/ZoneInfoFile.java
src/share/classes/sun/util/calendar/ZoneInfoFile.java
+5
-15
src/share/lib/security/java.security-aix
src/share/lib/security/java.security-aix
+29
-0
src/share/lib/security/java.security-linux
src/share/lib/security/java.security-linux
+29
-0
src/share/lib/security/java.security-macosx
src/share/lib/security/java.security-macosx
+29
-0
src/share/lib/security/java.security-solaris
src/share/lib/security/java.security-solaris
+29
-0
src/share/lib/security/java.security-windows
src/share/lib/security/java.security-windows
+29
-0
src/share/native/sun/font/DrawGlyphList.c
src/share/native/sun/font/DrawGlyphList.c
+18
-0
src/share/native/sun/font/freetypeScaler.c
src/share/native/sun/font/freetypeScaler.c
+77
-10
src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
+4
-0
src/share/native/sun/font/layout/CursiveAttachmentSubtables.cpp
...are/native/sun/font/layout/CursiveAttachmentSubtables.cpp
+4
-0
src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
...re/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MarkToMarkPosnSubtables.cpp
src/share/native/sun/font/layout/MarkToMarkPosnSubtables.cpp
+4
-0
src/share/native/sun/font/layout/MorphTables.cpp
src/share/native/sun/font/layout/MorphTables.cpp
+4
-2
src/share/native/sun/font/layout/PairPositioningSubtables.cpp
...share/native/sun/font/layout/PairPositioningSubtables.cpp
+12
-0
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
+2
-0
src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp
src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp
+2
-0
src/share/native/sun/font/layout/SegmentSingleProcessor.cpp
src/share/native/sun/font/layout/SegmentSingleProcessor.cpp
+2
-0
src/share/native/sun/font/layout/SegmentSingleProcessor2.cpp
src/share/native/sun/font/layout/SegmentSingleProcessor2.cpp
+2
-0
src/share/native/sun/font/layout/SimpleArrayProcessor.cpp
src/share/native/sun/font/layout/SimpleArrayProcessor.cpp
+2
-0
src/share/native/sun/font/layout/SinglePositioningSubtables.cpp
...are/native/sun/font/layout/SinglePositioningSubtables.cpp
+12
-0
src/share/native/sun/font/layout/SingleSubstitutionSubtables.cpp
...re/native/sun/font/layout/SingleSubstitutionSubtables.cpp
+12
-0
src/share/native/sun/font/layout/SingleTableProcessor.cpp
src/share/native/sun/font/layout/SingleTableProcessor.cpp
+2
-0
src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h
src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h
+2
-0
src/share/native/sun/java2d/loops/LoopMacros.h
src/share/native/sun/java2d/loops/LoopMacros.h
+4
-4
src/share/native/sun/java2d/opengl/OGLBlitLoops.c
src/share/native/sun/java2d/opengl/OGLBlitLoops.c
+18
-24
src/share/native/sun/security/krb5/nativeccache.c
src/share/native/sun/security/krb5/nativeccache.c
+44
-0
src/solaris/classes/sun/font/XRGlyphCache.java
src/solaris/classes/sun/font/XRGlyphCache.java
+3
-0
src/solaris/classes/sun/font/XRTextRenderer.java
src/solaris/classes/sun/font/XRTextRenderer.java
+3
-0
src/solaris/classes/sun/nio/fs/BsdFileStore.java
src/solaris/classes/sun/nio/fs/BsdFileStore.java
+6
-14
src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java
src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java
+15
-1
src/solaris/classes/sun/nio/fs/UnixNativeDispatcher.java
src/solaris/classes/sun/nio/fs/UnixNativeDispatcher.java
+1
-1
src/solaris/native/sun/java2d/x11/X11FontScaler_md.c
src/solaris/native/sun/java2d/x11/X11FontScaler_md.c
+5
-1
src/solaris/native/sun/nio/fs/BsdNativeDispatcher.c
src/solaris/native/sun/nio/fs/BsdNativeDispatcher.c
+22
-1
src/solaris/native/sun/security/smartcardio/MUSCLE/COPYING
src/solaris/native/sun/security/smartcardio/MUSCLE/COPYING
+95
-0
src/windows/classes/java/lang/ProcessImpl.java
src/windows/classes/java/lang/ProcessImpl.java
+106
-48
src/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
...es/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
+12
-2
src/windows/classes/sun/security/krb5/internal/tools/Klist.java
...ndows/classes/sun/security/krb5/internal/tools/Klist.java
+35
-3
src/windows/native/sun/java2d/d3d/D3DContext.cpp
src/windows/native/sun/java2d/d3d/D3DContext.cpp
+3
-1
src/windows/native/sun/net/www/protocol/http/ntlm/NTLMAuthentication.c
...ative/sun/net/www/protocol/http/ntlm/NTLMAuthentication.c
+29
-3
test/java/awt/FontClass/FontSize1Test.java
test/java/awt/FontClass/FontSize1Test.java
+56
-0
test/java/awt/image/DrawImage/IncorrectManagedImageSourceOffset.java
...wt/image/DrawImage/IncorrectManagedImageSourceOffset.java
+188
-0
test/java/awt/image/DrawImage/IncorrectUnmanagedImageSourceOffset.java
.../image/DrawImage/IncorrectUnmanagedImageSourceOffset.java
+54
-11
test/java/awt/image/DrawImage/SimpleManagedImage.java
test/java/awt/image/DrawImage/SimpleManagedImage.java
+196
-0
test/java/awt/image/DrawImage/SimpleUnmanagedImage.java
test/java/awt/image/DrawImage/SimpleUnmanagedImage.java
+201
-0
test/java/io/FilePermission/Invalid.java
test/java/io/FilePermission/Invalid.java
+67
-0
test/java/rmi/testlibrary/TestSocketFactory.java
test/java/rmi/testlibrary/TestSocketFactory.java
+16
-4
test/java/util/TimeZone/TimeZoneTest.java
test/java/util/TimeZone/TimeZoneTest.java
+3
-4
test/lib/testlibrary/jdk/testlibrary/net/URIBuilder.java
test/lib/testlibrary/jdk/testlibrary/net/URIBuilder.java
+111
-0
test/sun/net/www/protocol/http/TestTransparentNTLM.java
test/sun/net/www/protocol/http/TestTransparentNTLM.java
+203
-0
未找到文件。
.hgtags
浏览文件 @
a495795c
...
...
@@ -1006,3 +1006,8 @@ c7a97c9b7e5932d651eda37c8a907311818491d7 jdk8u222-b07
3ef3348195ffeb3c268af4a43928f2f09c5fa83a jdk8u232-b04
6d60b8cf1bd4a5fa371b1ddad9d186ff546b25f5 jdk8u232-b05
1e8cdf311133ecde0ccae37e6137e49adc6164fb jdk8u242-b00
5d57817931e1f5b6a460158342f132ea348e14ef jdk8u232-b06
3560e0ebe876ce658c5261070fe728e47994210f jdk8u232-b07
69c4f673b33e255599d2aa257fa50fd8b48b7b95 jdk8u232-b08
5456f24496f43f72b0cf4f0db3a73ea49c33f94f jdk8u232-b09
5456f24496f43f72b0cf4f0db3a73ea49c33f94f jdk8u232-ga
THIRD_PARTY_README
浏览文件 @
a495795c
...
...
@@ -2130,13 +2130,13 @@ Exhibit B - "Incompatible With Secondary Licenses" Notice
-------------------------------------------------------------------------------
%% This notice is provided with respect to PC/SC Lite
for Suse Linux v.1.1.1
,
%% This notice is provided with respect to PC/SC Lite
v1.8.24
,
which may be included with JRE 8, JDK 8, and OpenJDK 8 on Linux and Solaris.
--- begin of LICENSE ---
Copyright (c) 1999-200
4
David Corcoran <corcoran@linuxnet.com>
Copyright (c)
1999-2004 Ludovic Rousseau <ludovic.rousseau (at)
free.fr>
Copyright (c) 1999-200
3
David Corcoran <corcoran@linuxnet.com>
Copyright (c)
2001-2011 Ludovic Rousseau <ludovic.rousseau@
free.fr>
All rights reserved.
Redistribution and use in source and binary forms, with or without
...
...
@@ -2148,15 +2148,10 @@ are met:
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by:
David Corcoran <corcoran@linuxnet.com>
http://www.linuxnet.com (MUSCLE)
4. The name of the author may not be used to endorse or promote products
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
Changes to this license can be made only by the copyright author with
Changes to this license can be made only by the copyright author with
explicit written consent.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
...
...
make/data/tzdata/VERSION
浏览文件 @
a495795c
...
...
@@ -21,4 +21,4 @@
# or visit www.oracle.com if you need additional information or have any
# questions.
#
tzdata2019
a
tzdata2019
c
make/data/tzdata/africa
浏览文件 @
a495795c
...
...
@@ -112,7 +112,7 @@ Rule Algeria 1980 only - Apr 25 0:00 1:00 S
Rule Algeria 1980 only - Oct 31 2:00 0 -
# Shanks & Pottenger give 0:09:20 for Paris Mean Time; go with Howse's
# more precise 0:09:21.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Algiers 0:12:12 - LMT 1891 Mar 15 0:01
0:09:21 - PMT 1911 Mar 11 # Paris Mean Time
0:00 Algeria WE%sT 1940 Feb 25 2:00
...
...
@@ -147,7 +147,7 @@ Zone Africa/Algiers 0:12:12 - LMT 1891 Mar 15 0:01
# For now, ignore that and follow the 1911-05-26 Portuguese decree
# (see Europe/Lisbon).
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Atlantic/Cape_Verde -1:34:04 - LMT 1912 Jan 01 2:00u # Praia
-2:00 - -02 1942 Sep
-2:00 1:00 -01 1945 Oct 15
...
...
@@ -158,7 +158,7 @@ Zone Atlantic/Cape_Verde -1:34:04 - LMT 1912 Jan 01 2:00u # Praia
# See Africa/Lagos.
# Chad
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena
1:00 - WAT 1979 Oct 14
1:00 1:00 WAST 1980 Mar 8
...
...
@@ -174,7 +174,7 @@ Zone Africa/Ndjamena 1:00:12 - LMT 1912 # N'Djamena
# See Africa/Lagos.
# Côte d'Ivoire / Ivory Coast
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Abidjan -0:16:08 - LMT 1912
0:00 - GMT
Link Africa/Abidjan Africa/Bamako # Mali
...
...
@@ -379,7 +379,7 @@ Rule Egypt 2014 only - Jun 26 24:00 0 -
Rule Egypt 2014 only - Jul 31 24:00 1:00 S
Rule Egypt 2014 only - Sep lastThu 24:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Cairo 2:05:09 - LMT 1900 Oct
2:00 Egypt EE%sT
...
...
@@ -437,7 +437,7 @@ Zone Africa/Cairo 2:05:09 - LMT 1900 Oct
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Ghana 1920 1942 - Sep 1 0:00 0:20 -
Rule Ghana 1920 1942 - Dec 31 0:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Accra -0:00:52 - LMT 1918
0:00 Ghana GMT/+0020
...
...
@@ -451,13 +451,13 @@ Zone Africa/Accra -0:00:52 - LMT 1918
# evidently confusing the date of the Portuguese decree
# (see Europe/Lisbon) with the date that it took effect.
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Bissau -1:02:20 - LMT 1912 Jan 1 1:00u
-1:00 - -01 1975
0:00 - GMT
# Kenya
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Nairobi 2:27:16 - LMT 1928 Jul
3:00 - EAT 1930
2:30 - +0230 1940
...
...
@@ -492,7 +492,7 @@ Link Africa/Nairobi Indian/Mayotte
# Use the abbreviation "MMT" before 1972, as the more-accurate numeric
# abbreviation "-004430" would be one byte over the POSIX limit.
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Monrovia -0:43:08 - LMT 1882
-0:43:08 - MMT 1919 Mar # Monrovia Mean Time
-0:44:30 - MMT 1972 Jan 7 # approximately MMT
...
...
@@ -542,7 +542,7 @@ Rule Libya 1997 only - Apr 4 0:00 1:00 S
Rule Libya 1997 only - Oct 4 0:00 0 -
Rule Libya 2013 only - Mar lastFri 1:00 1:00 S
Rule Libya 2013 only - Oct lastFri 2:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Tripoli 0:52:44 - LMT 1920
1:00 Libya CE%sT 1959
2:00 - EET 1982
...
...
@@ -652,7 +652,7 @@ Rule Mauritius 1982 only - Oct 10 0:00 1:00 -
Rule Mauritius 1983 only - Mar 21 0:00 0 -
Rule Mauritius 2008 only - Oct lastSun 2:00 1:00 -
Rule Mauritius 2009 only - Mar lastSun 2:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Indian/Mauritius 3:50:00 - LMT 1907 # Port Louis
4:00 Mauritius +04/+05
# Agalega Is, Rodriguez
...
...
@@ -883,18 +883,24 @@ Zone Indian/Mauritius 3:50:00 - LMT 1907 # Port Louis
# the week end after.... The government does not announce yet the decision
# about this temporary change. But it s 99% sure that it will be the case,
# as in previous years. An unofficial survey was done these days, showing
# that 64% of asked peop
k
e are ok for moving from +1 to +0 during Ramadan.
# that 64% of asked peop
l
e are ok for moving from +1 to +0 during Ramadan.
# https://leconomiste.com/article/1035870-enquete-l-economiste-sunergia-64-des-marocains-plebiscitent-le-gmt-pendant-ramadan
# From Naoufal Semlali (2019-04-16):
# Morocco will be on GMT starting from Sunday, May 5th 2019 at 3am.
# The switch to GMT+1 will occur on Sunday, June 9th 2019 at 2am....
# http://fr.le360.ma/societe/voici-la-date-du-retour-a-lheure-legale-au-maroc-188222
#
# From Paul Eggert (2018-11-01):
# For now, guess that Morocco will fall back at 03:00 the last Sunday
# before Ramadan, and spring forward at 02:00 the first Sunday after
# From Paul Eggert (2019-05-20):
# This agrees with our 2018-11-01 guess that the Moroccan government
# would continue the practice of falling back at 03:00 the last Sunday
# before Ramadan, and of springing forward at 02:00 the first Sunday after
# Ramadan, as this has been the practice since 2012. To implement this,
# transition dates for 2019 through 20
3
7 were determined by running the
# following program under GNU Emacs 26.
1
.
# transition dates for 2019 through 20
8
7 were determined by running the
# following program under GNU Emacs 26.
2
.
# (let ((islamic-year 1440))
# (require 'cal-islam)
# (while (< islamic-year 1
460
)
# (while (< islamic-year 1
511
)
# (let ((a (calendar-islamic-to-absolute (list 9 1 islamic-year)))
# (b (calendar-islamic-to-absolute (list 10 1 islamic-year)))
# (sunday 0))
...
...
@@ -993,8 +999,114 @@ Rule Morocco 2036 only - Oct 19 3:00 0 -
Rule Morocco 2036 only - Nov 23 2:00 1:00 -
Rule Morocco 2037 only - Oct 4 3:00 0 -
Rule Morocco 2037 only - Nov 15 2:00 1:00 -
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Rule Morocco 2038 only - Sep 26 3:00 0 -
Rule Morocco 2038 only - Oct 31 2:00 1:00 -
Rule Morocco 2039 only - Sep 18 3:00 0 -
Rule Morocco 2039 only - Oct 23 2:00 1:00 -
Rule Morocco 2040 only - Sep 2 3:00 0 -
Rule Morocco 2040 only - Oct 14 2:00 1:00 -
Rule Morocco 2041 only - Aug 25 3:00 0 -
Rule Morocco 2041 only - Sep 29 2:00 1:00 -
Rule Morocco 2042 only - Aug 10 3:00 0 -
Rule Morocco 2042 only - Sep 21 2:00 1:00 -
Rule Morocco 2043 only - Aug 2 3:00 0 -
Rule Morocco 2043 only - Sep 6 2:00 1:00 -
Rule Morocco 2044 only - Jul 24 3:00 0 -
Rule Morocco 2044 only - Aug 28 2:00 1:00 -
Rule Morocco 2045 only - Jul 9 3:00 0 -
Rule Morocco 2045 only - Aug 20 2:00 1:00 -
Rule Morocco 2046 only - Jul 1 3:00 0 -
Rule Morocco 2046 only - Aug 5 2:00 1:00 -
Rule Morocco 2047 only - Jun 23 3:00 0 -
Rule Morocco 2047 only - Jul 28 2:00 1:00 -
Rule Morocco 2048 only - Jun 7 3:00 0 -
Rule Morocco 2048 only - Jul 19 2:00 1:00 -
Rule Morocco 2049 only - May 30 3:00 0 -
Rule Morocco 2049 only - Jul 4 2:00 1:00 -
Rule Morocco 2050 only - May 15 3:00 0 -
Rule Morocco 2050 only - Jun 26 2:00 1:00 -
Rule Morocco 2051 only - May 7 3:00 0 -
Rule Morocco 2051 only - Jun 11 2:00 1:00 -
Rule Morocco 2052 only - Apr 28 3:00 0 -
Rule Morocco 2052 only - Jun 2 2:00 1:00 -
Rule Morocco 2053 only - Apr 13 3:00 0 -
Rule Morocco 2053 only - May 25 2:00 1:00 -
Rule Morocco 2054 only - Apr 5 3:00 0 -
Rule Morocco 2054 only - May 10 2:00 1:00 -
Rule Morocco 2055 only - Mar 28 3:00 0 -
Rule Morocco 2055 only - May 2 2:00 1:00 -
Rule Morocco 2056 only - Mar 12 3:00 0 -
Rule Morocco 2056 only - Apr 23 2:00 1:00 -
Rule Morocco 2057 only - Mar 4 3:00 0 -
Rule Morocco 2057 only - Apr 8 2:00 1:00 -
Rule Morocco 2058 only - Feb 17 3:00 0 -
Rule Morocco 2058 only - Mar 31 2:00 1:00 -
Rule Morocco 2059 only - Feb 9 3:00 0 -
Rule Morocco 2059 only - Mar 16 2:00 1:00 -
Rule Morocco 2060 only - Feb 1 3:00 0 -
Rule Morocco 2060 only - Mar 7 2:00 1:00 -
Rule Morocco 2061 only - Jan 16 3:00 0 -
Rule Morocco 2061 only - Feb 27 2:00 1:00 -
Rule Morocco 2062 only - Jan 8 3:00 0 -
Rule Morocco 2062 only - Feb 12 2:00 1:00 -
Rule Morocco 2062 only - Dec 31 3:00 0 -
Rule Morocco 2063 only - Feb 4 2:00 1:00 -
Rule Morocco 2063 only - Dec 16 3:00 0 -
Rule Morocco 2064 only - Jan 20 2:00 1:00 -
Rule Morocco 2064 only - Dec 7 3:00 0 -
Rule Morocco 2065 only - Jan 11 2:00 1:00 -
Rule Morocco 2065 only - Nov 22 3:00 0 -
Rule Morocco 2066 only - Jan 3 2:00 1:00 -
Rule Morocco 2066 only - Nov 14 3:00 0 -
Rule Morocco 2066 only - Dec 19 2:00 1:00 -
Rule Morocco 2067 only - Nov 6 3:00 0 -
Rule Morocco 2067 only - Dec 11 2:00 1:00 -
Rule Morocco 2068 only - Oct 21 3:00 0 -
Rule Morocco 2068 only - Dec 2 2:00 1:00 -
Rule Morocco 2069 only - Oct 13 3:00 0 -
Rule Morocco 2069 only - Nov 17 2:00 1:00 -
Rule Morocco 2070 only - Oct 5 3:00 0 -
Rule Morocco 2070 only - Nov 9 2:00 1:00 -
Rule Morocco 2071 only - Sep 20 3:00 0 -
Rule Morocco 2071 only - Oct 25 2:00 1:00 -
Rule Morocco 2072 only - Sep 11 3:00 0 -
Rule Morocco 2072 only - Oct 16 2:00 1:00 -
Rule Morocco 2073 only - Aug 27 3:00 0 -
Rule Morocco 2073 only - Oct 8 2:00 1:00 -
Rule Morocco 2074 only - Aug 19 3:00 0 -
Rule Morocco 2074 only - Sep 23 2:00 1:00 -
Rule Morocco 2075 only - Aug 11 3:00 0 -
Rule Morocco 2075 only - Sep 15 2:00 1:00 -
Rule Morocco 2076 only - Jul 26 3:00 0 -
Rule Morocco 2076 only - Sep 6 2:00 1:00 -
Rule Morocco 2077 only - Jul 18 3:00 0 -
Rule Morocco 2077 only - Aug 22 2:00 1:00 -
Rule Morocco 2078 only - Jul 10 3:00 0 -
Rule Morocco 2078 only - Aug 14 2:00 1:00 -
Rule Morocco 2079 only - Jun 25 3:00 0 -
Rule Morocco 2079 only - Jul 30 2:00 1:00 -
Rule Morocco 2080 only - Jun 16 3:00 0 -
Rule Morocco 2080 only - Jul 21 2:00 1:00 -
Rule Morocco 2081 only - Jun 1 3:00 0 -
Rule Morocco 2081 only - Jul 13 2:00 1:00 -
Rule Morocco 2082 only - May 24 3:00 0 -
Rule Morocco 2082 only - Jun 28 2:00 1:00 -
Rule Morocco 2083 only - May 16 3:00 0 -
Rule Morocco 2083 only - Jun 20 2:00 1:00 -
Rule Morocco 2084 only - Apr 30 3:00 0 -
Rule Morocco 2084 only - Jun 11 2:00 1:00 -
Rule Morocco 2085 only - Apr 22 3:00 0 -
Rule Morocco 2085 only - May 27 2:00 1:00 -
Rule Morocco 2086 only - Apr 14 3:00 0 -
Rule Morocco 2086 only - May 19 2:00 1:00 -
Rule Morocco 2087 only - Mar 30 3:00 0 -
Rule Morocco 2087 only - May 4 2:00 1:00 -
# For dates after the somewhat-arbitrary cutoff of 2087, assume that
# Morocco will no longer observe DST. At some point this table will
# need to be extended, though quite possibly Morocco will change the
# rules first.
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Africa/Casablanca -0:30:20 - LMT 1913 Oct 26
0:00 Morocco +00/+01 1984 Mar 16
1:00 - +01 1986
...
...
@@ -1024,7 +1136,7 @@ Zone Africa/El_Aaiun -0:52:48 - LMT 1934 Jan # El Aaiún
# https://dre.pt/pdf1sdip/1911/05/12500/23132313.pdf
# merely made it official?
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Maputo 2:10:20 - LMT 1903 Mar
2:00 - CAT
Link Africa/Maputo Africa/Blantyre # Malawi
...
...
@@ -1096,7 +1208,7 @@ Rule Namibia 1994 2017 - Sep Sun>=1 2:00 1:00 CAT
Rule Namibia 1995 2017 - Apr Sun>=1 2:00 0 WAT
# End of rearguard section.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Windhoek 1:08:24 - LMT 1892 Feb 8
1:30 - +0130 1903 Mar
2:00 - SAST 1942 Sep 20 2:00
...
...
@@ -1117,7 +1229,7 @@ Zone Africa/Windhoek 1:08:24 - LMT 1892 Feb 8
# See Africa/Lagos.
# Nigeria
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Lagos 0:13:36 - LMT 1919 Sep
1:00 - WAT
Link Africa/Lagos Africa/Bangui # Central African Republic
...
...
@@ -1131,7 +1243,7 @@ Link Africa/Lagos Africa/Niamey # Niger
Link Africa/Lagos Africa/Porto-Novo # Benin
# Réunion
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Indian/Reunion 3:41:52 - LMT 1911 Jun # Saint-Denis
4:00 - +04
#
...
...
@@ -1191,7 +1303,7 @@ Zone Africa/Sao_Tome 0:26:56 - LMT 1884
# See Africa/Abidjan.
# Seychelles
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Indian/Mahe 3:41:48 - LMT 1906 Jun # Victoria
4:00 - +04
# From Paul Eggert (2001-05-30):
...
...
@@ -1211,7 +1323,7 @@ Zone Indian/Mahe 3:41:48 - LMT 1906 Jun # Victoria
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule SA 1942 1943 - Sep Sun>=15 2:00 1:00 -
Rule SA 1943 1944 - Mar Sun>=15 2:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Johannesburg 1:52:00 - LMT 1892 Feb 8
1:30 - SAST 1903 Mar
2:00 SA SAST
...
...
@@ -1246,14 +1358,14 @@ Rule Sudan 1970 only - May 1 0:00 1:00 S
Rule Sudan 1970 1985 - Oct 15 0:00 0 -
Rule Sudan 1971 only - Apr 30 0:00 1:00 S
Rule Sudan 1972 1985 - Apr lastSun 0:00 1:00 S
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Khartoum 2:10:08 - LMT 1931
2:00 Sudan CA%sT 2000 Jan 15 12:00
3:00 - EAT 2017 Nov 1
2:00 - CAT
# South Sudan
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Juba 2:06:28 - LMT 1931
2:00 Sudan CA%sT 2000 Jan 15 12:00
3:00 - EAT
...
...
@@ -1359,7 +1471,7 @@ Rule Tunisia 2006 2008 - Oct lastSun 2:00s 0 -
# Shanks & Pottenger give 0:09:20 for Paris Mean Time; go with Howse's
# more precise 0:09:21.
# Shanks & Pottenger say the 1911 switch was on Mar 9; go with Howse's Mar 11.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Africa/Tunis 0:40:44 - LMT 1881 May 12
0:09:21 - PMT 1911 Mar 11 # Paris Mean Time
1:00 Tunisia CE%sT
...
...
make/data/tzdata/antarctica
浏览文件 @
a495795c
...
...
@@ -36,7 +36,7 @@
# for information.
# Unless otherwise specified, we have no time zone information.
# FORMAT is '-00' and
GMT
OFF is 0 for locations while uninhabited.
# FORMAT is '-00' and
STD
OFF is 0 for locations while uninhabited.
# Argentina - year-round bases
# Belgrano II, Confin Coast, -770227-0343737, since 1972-02-05
...
...
@@ -93,7 +93,7 @@
# Australian Antarctica Division informed us that Casey changed time
# zone to UTC+11 in "the morning of 22nd October 2016".
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Antarctica/Casey 0 - -00 1969
8:00 - +08 2009 Oct 18 2:00
11:00 - +11 2010 Mar 5 2:00
...
...
@@ -165,7 +165,7 @@ Zone Antarctica/Mawson 0 - -00 1954 Feb 13
# St Paul Island - near Amsterdam, uninhabited
# fishing stations operated variously 1819/1931
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Indian/Kerguelen 0 - -00 1950 # Port-aux-Français
5:00 - +05
#
...
...
@@ -176,7 +176,7 @@ Zone Indian/Kerguelen 0 - -00 1950 # Port-aux-Français
# Another base at Port-Martin, 50km east, began operation in 1947.
# It was destroyed by fire on 1952-01-14.
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Antarctica/DumontDUrville 0 - -00 1947
10:00 - +10 1952 Jan 14
0 - -00 1956 Nov
...
...
@@ -204,7 +204,7 @@ Zone Antarctica/DumontDUrville 0 - -00 1947
# Syowa station, which is the first antarctic station of Japan,
# was established on 1957-01-29. Since Syowa station is still the main
# station of Japan, it's appropriate for the principal location.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Antarctica/Syowa 0 - -00 1957 Jan 29
3:00 - +03
# See:
...
...
@@ -254,7 +254,7 @@ Rule Troll 2005 max - Mar lastSun 1:00u 2:00 +02
#Rule Troll 2004 max - Nov 7 1:00u 0:00 +00
# Remove the following line when uncommenting the above '#Rule' lines.
Rule Troll 2004 max - Oct lastSun 1:00u 0:00 +00
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Antarctica/Troll 0 - -00 2005 Feb 12
0:00 Troll %s
...
...
@@ -328,7 +328,7 @@ Zone Antarctica/Vostok 0 - -00 1957 Dec 16
# From Paul Eggert (2002-10-22)
# <http://webexhibits.org/daylightsaving/g.html> says Rothera is -03 all year.
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Antarctica/Rothera 0 - -00 1976 Dec 1
-3:00 - -03
...
...
make/data/tzdata/asia
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
make/data/tzdata/australasia
浏览文件 @
a495795c
...
...
@@ -48,7 +48,7 @@ Rule Aus 1943 only - Oct 3 2:00 1:00 D
# says W Australia didn't use DST in 1943/1944. Ignore Whitman's claim that
# 1944/1945 was just like 1943/1944.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
# Northern Territory
Zone Australia/Darwin 8:43:20 - LMT 1895 Feb
9:00 - ACST 1899 May
...
...
@@ -125,7 +125,7 @@ Rule AS 2006 only - Apr 2 2:00s 0 S
Rule AS 2007 only - Mar lastSun 2:00s 0 S
Rule AS 2008 max - Apr Sun>=1 2:00s 0 S
Rule AS 2008 max - Oct Sun>=1 2:00s 1:00 D
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Australia/Adelaide 9:14:20 - LMT 1895 Feb
9:00 - ACST 1899 May
9:30 Aus AC%sT 1971
...
...
@@ -157,7 +157,7 @@ Rule AT 2001 max - Oct Sun>=1 2:00s 1:00 D
Rule AT 2006 only - Apr Sun>=1 2:00s 0 S
Rule AT 2007 only - Mar lastSun 2:00s 0 S
Rule AT 2008 max - Apr Sun>=1 2:00s 0 S
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Australia/Hobart 9:49:16 - LMT 1895 Sep
10:00 - AEST 1916 Oct 1 2:00
10:00 1:00 AEDT 1917 Feb
...
...
@@ -185,7 +185,7 @@ Rule AV 2006 only - Apr Sun>=1 2:00s 0 S
Rule AV 2007 only - Mar lastSun 2:00s 0 S
Rule AV 2008 max - Apr Sun>=1 2:00s 0 S
Rule AV 2008 max - Oct Sun>=1 2:00s 1:00 D
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Australia/Melbourne 9:39:52 - LMT 1895 Feb
10:00 Aus AE%sT 1971
10:00 AV AE%sT
...
...
@@ -208,7 +208,7 @@ Rule AN 2006 only - Apr Sun>=1 2:00s 0 S
Rule AN 2007 only - Mar lastSun 2:00s 0 S
Rule AN 2008 max - Apr Sun>=1 2:00s 0 S
Rule AN 2008 max - Oct Sun>=1 2:00s 1:00 D
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Australia/Sydney 10:04:52 - LMT 1895 Feb
10:00 Aus AE%sT 1971
10:00 AN AE%sT
...
...
@@ -279,14 +279,14 @@ Zone Antarctica/Macquarie 0 - -00 1899 Nov
11:00 - +11
# Christmas
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Indian/Christmas 7:02:52 - LMT 1895 Feb
7:00 - +07
# Cocos (Keeling) Is
# These islands were ruled by the Ross family from about 1830 to 1978.
# We don't know when standard time was introduced; for now, we guess 1900.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Indian/Cocos 6:27:40 - LMT 1900
6:30 - +0630
...
...
@@ -390,13 +390,18 @@ Zone Indian/Cocos 6:27:40 - LMT 1900
# From Raymond Kumar (2018-07-13):
# http://www.fijitimes.com/government-approves-2018-daylight-saving/
# ... The daylight saving period will end at 3am on Sunday January 13, 2019.
#
# From Paul Eggert (2018-07-15):
# For now, guess DST from 02:00 the first Sunday in November to 03:00
# the first Sunday on or after January 13. January transitions reportedly
# From Paul Eggert (2019-08-06):
# Today Raymond Kumar reported the Government of Fiji Gazette Supplement No. 27
# (2019-08-02) said that Fiji observes DST "commencing at 2.00 am on
# Sunday, 10 November 2019 and ending at 3.00 am on Sunday, 12 January 2020."
# For now, guess DST from 02:00 the second Sunday in November to 03:00
# the first Sunday on or after January 12. January transitions reportedly
# depend on when school terms start. Although the guess is ad hoc, it matches
# transitions since late 2014 and seems more likely to match future
# practice than guessing no DST.
# transitions planned this year and seems more likely to match future practice
# than guessing no DST.
# From Michael Deckers (2019-08-06):
# https://www.laws.gov.fj/LawsAsMade/downloadfile/848
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Fiji 1998 1999 - Nov Sun>=1 2:00 1:00 -
...
...
@@ -407,14 +412,15 @@ Rule Fiji 2010 2013 - Oct Sun>=21 2:00 1:00 -
Rule Fiji 2011 only - Mar Sun>=1 3:00 0 -
Rule Fiji 2012 2013 - Jan Sun>=18 3:00 0 -
Rule Fiji 2014 only - Jan Sun>=18 2:00 0 -
Rule Fiji 2014 max - Nov Sun>=1 2:00 1:00 -
Rule Fiji 2015 max - Jan Sun>=13 3:00 0 -
# Zone NAME GMTOFF RULES FORMAT [UNTIL]
Rule Fiji 2014 2018 - Nov Sun>=1 2:00 1:00 -
Rule Fiji 2015 max - Jan Sun>=12 3:00 0 -
Rule Fiji 2019 max - Nov Sun>=8 2:00 1:00 -
# Zone NAME STDOFF RULES FORMAT [UNTIL]
Zone Pacific/Fiji 11:55:44 - LMT 1915 Oct 26 # Suva
12:00 Fiji +12/+13
# French Polynesia
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Gambier -8:59:48 - LMT 1912 Oct # Rikitea
-9:00 - -09
Zone Pacific/Marquesas -9:18:00 - LMT 1912 Oct
...
...
@@ -457,7 +463,7 @@ Rule Guam 1977 only - Apr 24 2:00 1:00 D
# http://documents.guam.gov/wp-content/uploads/E.O.-77-18-Guam-Standard-Time.pdf
Rule Guam 1977 only - Aug 28 2:00 0 S
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Guam -14:21:00 - LMT 1844 Dec 31
9:39:00 - LMT 1901 # Agana
10:00 - GST 1941 Dec 10 # Guam
...
...
@@ -467,7 +473,7 @@ Zone Pacific/Guam -14:21:00 - LMT 1844 Dec 31
Link Pacific/Guam Pacific/Saipan # N Mariana Is
# Kiribati
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Tarawa 11:32:04 - LMT 1901 # Bairiki
12:00 - +12
Zone Pacific/Enderbury -11:24:20 - LMT 1901
...
...
@@ -483,7 +489,7 @@ Zone Pacific/Kiritimati -10:29:20 - LMT 1901
# See Pacific/Guam.
# Marshall Is
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Majuro 11:24:48 - LMT 1901
11:00 - +11 1914 Oct
9:00 - +09 1919 Feb 1
...
...
@@ -501,7 +507,7 @@ Zone Pacific/Kwajalein 11:09:20 - LMT 1901
12:00 - +12
# Micronesia
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Chuuk -13:52:52 - LMT 1844 Dec 31
10:07:08 - LMT 1901
10:00 - +10 1914 Oct
...
...
@@ -529,7 +535,7 @@ Zone Pacific/Kosrae -13:08:04 - LMT 1844 Dec 31
11:00 - +11
# Nauru
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Nauru 11:07:40 - LMT 1921 Jan 15 # Uaobe
11:30 - +1130 1942 Aug 29
9:00 - +09 1945 Sep 8
...
...
@@ -543,7 +549,7 @@ Rule NC 1978 1979 - Feb 27 0:00 0 -
Rule NC 1996 only - Dec 1 2:00s 1:00 -
# Shanks & Pottenger say the following was at 2:00; go with IATA.
Rule NC 1997 only - Mar 2 2:00s 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Noumea 11:05:48 - LMT 1912 Jan 13 # Nouméa
11:00 NC +11/+12
...
...
@@ -582,7 +588,7 @@ Rule NZ 2007 max - Sep lastSun 2:00s 1:00 D
Rule Chatham 2007 max - Sep lastSun 2:45s 1:00 -
Rule NZ 2008 max - Apr Sun>=1 2:00s 0 S
Rule Chatham 2008 max - Apr Sun>=1 2:45s 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Auckland 11:39:04 - LMT 1868 Nov 2
11:30 NZ NZ%sT 1946 Jan 1
12:00 NZ NZ%sT
...
...
@@ -608,7 +614,7 @@ Link Pacific/Auckland Antarctica/McMurdo
Rule Cook 1978 only - Nov 12 0:00 0:30 -
Rule Cook 1979 1991 - Mar Sun>=1 0:00 0 -
Rule Cook 1979 1990 - Oct lastSun 0:00 0:30 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Rarotonga -10:39:04 - LMT 1901 # Avarua
-10:30 - -1030 1978 Nov 12
-10:00 Cook -10/-0930
...
...
@@ -617,29 +623,30 @@ Zone Pacific/Rarotonga -10:39:04 - LMT 1901 # Avarua
# Niue
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Niue -11:19:40 - LMT 1901 # Alofi
-11:20 - -1120 1951
-11:30 - -1130 1978 Oct 1
-11:00 - -11
# Norfolk
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Norfolk 11:11:52 - LMT 1901 # Kingston
11:12 - +1112 1951
11:30 - +1130 1974 Oct 27 02:00
11:30 1:00 +1230 1975 Mar 2 02:00
11:30 - +1130 2015 Oct 4 02:00
11:00 - +11
11:30 - +1130 1974 Oct 27 02:00s
11:30 1:00 +1230 1975 Mar 2 02:00s
11:30 - +1130 2015 Oct 4 02:00s
11:00 - +11 2019 Jul
11:00 AN +11/+12
# Palau (Belau)
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Palau -15:02:04 - LMT 1844 Dec 31 # Koror
8:57:56 - LMT 1901
9:00 - +09
# Papua New Guinea
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Port_Moresby 9:48:40 - LMT 1880
9:48:32 - PMMT 1895 # Port Moresby Mean Time
10:00 - +10
...
...
@@ -669,7 +676,7 @@ Zone Pacific/Bougainville 10:22:16 - LMT 1880
11:00 - +11
# Pitcairn
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Pitcairn -8:40:20 - LMT 1901 # Adamstown
-8:30 - -0830 1998 Apr 27 0:00
-8:00 - -08
...
...
@@ -754,7 +761,7 @@ Rule WS 2011 only - Apr Sat>=1 4:00 0 -
Rule WS 2011 only - Sep lastSat 3:00 1 -
Rule WS 2012 max - Apr Sun>=1 4:00 0 -
Rule WS 2012 max - Sep lastSun 3:00 1 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Apia 12:33:04 - LMT 1892 Jul 5
-11:26:56 - LMT 1911
-11:30 - -1130 1950
...
...
@@ -763,7 +770,7 @@ Zone Pacific/Apia 12:33:04 - LMT 1892 Jul 5
# Solomon Is
# excludes Bougainville, for which see Papua New Guinea
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Guadalcanal 10:39:48 - LMT 1912 Oct # Honiara
11:00 - +11
...
...
@@ -786,7 +793,7 @@ Zone Pacific/Guadalcanal 10:39:48 - LMT 1912 Oct # Honiara
# was "11 hours slow on G.M.T." Go with Thorsen and assume Shanks & Pottenger
# are off by an hour starting in 1901.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Fakaofo -11:24:56 - LMT 1901
-11:00 - -11 2011 Dec 30
13:00 - +13
...
...
@@ -799,14 +806,14 @@ Rule Tonga 2000 2001 - Nov Sun>=1 2:00 1:00 -
Rule Tonga 2001 2002 - Jan lastSun 2:00 0 -
Rule Tonga 2016 only - Nov Sun>=1 2:00 1:00 -
Rule Tonga 2017 only - Jan Sun>=15 3:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Tongatapu 12:19:20 - LMT 1901
12:20 - +1220 1941
13:00 - +13 1999
13:00 Tonga +13/+14
# Tuvalu
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Funafuti 11:56:52 - LMT 1901
12:00 - +12
...
...
@@ -867,7 +874,7 @@ Zone Pacific/Funafuti 11:56:52 - LMT 1901
# uninhabited since World War II; was probably like Pacific/Kiritimati
# Wake
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Wake 11:06:28 - LMT 1901
12:00 - +12
...
...
@@ -880,12 +887,12 @@ Rule Vanuatu 1984 only - Oct 23 0:00 1:00 -
Rule Vanuatu 1985 1991 - Sep Sun>=23 0:00 1:00 -
Rule Vanuatu 1992 1993 - Jan Sun>=23 0:00 0 -
Rule Vanuatu 1992 only - Oct Sun>=23 0:00 1:00 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Efate 11:13:16 - LMT 1912 Jan 13 # Vila
11:00 Vanuatu +11/+12
# Wallis and Futuna
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Pacific/Wallis 12:15:20 - LMT 1901
12:00 - +12
...
...
@@ -1271,6 +1278,22 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
# in WA or its introduction in SA had anything to do with the genesis
# of this time zone. My hunch is that it's been around since well
# before 1975. I remember seeing it noted on road maps decades ago.
#
# From Gilmore Davidson (2019-04-08):
# https://www.abc.net.au/news/2019-04-08/this-remote-stretch-of-desert-has-its-own-custom-time-zone/10981000
# ... include[s] a rough description of the geographical boundaries...
# "The time zone exists for about 340 kilometres and takes in the tiny
# roadhouse communities of Cocklebiddy, Madura, Eucla and Border Village."
# ... and an indication that the zone has definitely been in existence
# since before the 1970 cut-off of the database ...
# From Paul Eggert (2019-05-17):
# That ABC Esperance story by Christien de Garis also says:
# Although the Central Western Time Zone is not officially recognised (your
# phones won't automatically change), there is a sign instructing you which
# way to wind your clocks 45 minutes and scrawled underneath one of them in
# Texta is the word: 'Why'?
# "Good question," Mr Pike said.
# "I don't even know that, and it's been going for over 50 years."
# From Paul Eggert (2006-12-15):
# For lack of better info, assume the tradition dates back to the
...
...
@@ -1589,6 +1612,42 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
###############################################################################
# Bonin (Ogasawara) Islands and Marcus Island (Minami-Tori-shima)
# From Wakaba (2019-01-28) via Phake Nick:
# National Diet Library of Japan has several reports by Japanese Government
# officers that describe the time used in islands when they visited there.
# According to them (and other sources such as newspapers), standard time UTC
# + 10 (JST + 1) and DST UTC + 11 (JST + 2) was used until its return to Japan
# at 1968-06-26 00:00 JST. The exact periods of DST are still unknown.
# I guessed Guam, Mariana, and Bonin and Marcus districts might have
# synchronized their DST periods, but reports imply they had their own
# decisions, i.e. there were three or more different time zones....
#
# https://wiki.suikawiki.org/n/小笠原諸島の標準時
# From Phake Nick (2019-02-12):
# Because their last time change to return to Japanese time when they returned
# to Japanese rule was right before 1970, ... per the current tz database
# rule, the information doesn't warrant creation of a new timezone for Bonin
# Islands itself and is thus as an anecdotal note for interest purpose only.
# ... [The abovementioned link] described some special timekeeping phenomenon
# regarding Marcus island, another remote island currently owned by Japanese
# in the same administrative unit as Bonin Islands. Many reports claim that
# the American coastal guard on the American quarter of the island use its own
# coastal guard time, and most sources describe the time as UTC+11, being two
# hours faster than JST used by some Japanese personnel on the island. Some
# sites describe it as same as Wake Island/Guam time although it would be
# incorrect to be same as Guam. And then in a few Japanese governmental
# report from 1980s (from National Institute of Information and Communications
# Technology) regarding the construction of VLBI facility on the Marcus
# Island, it claimed that there are three time standards being used on the
# island at the time which include not just JST (UTC+9) or [US]CG time
# (UTC+11) but also a JMSDF time (UTC+10) (Japan Maritime Self-Defense
# Force). Unfortunately there are no other sources that mentioned such time
# and there are also no information on things like how the time was used.
# Fiji
# Howse writes (p 153) that in 1879 the British governor of Fiji
...
...
@@ -1846,12 +1905,21 @@ Zone Pacific/Wallis 12:15:20 - LMT 1901
# ... at 12.30 am (by legal time in New South Wales) on 4 October 2015.
# http://www.norfolkisland.gov.nf/nia/MediaRelease/Media%20Release%20Norfolk%20Island%20Standard%20Time%20Change.pdf
# From Paul Eggert (201
5-09-23
):
# From Paul Eggert (201
9-08-28
):
# Transitions before 2015 are from timeanddate.com, which consulted
# the Norfolk Island Museum and the Australian Bureau of Meteorology's
# Norfolk Island station, and found no record of Norfolk observing DST
# other than in 1974/5. See:
# https://www.timeanddate.com/time/australia/norfolk-island.html
# However, disagree with timeanddate about the 1975-03-02 transition;
# timeanddate has 02:00 but 02:00s corresponds to what the NSW law said
# (thanks to Michael Deckers).
# Norfolk started observing Australian DST in spring 2019.
# From Kyle Czech (2019-08-13):
# https://www.legislation.gov.au/Details/F2018L01702
# From Michael Deckers (2019-08-14):
# https://www.legislation.gov.au/Details/F2019C00010
# Palau
# See commentary for Micronesia.
...
...
make/data/tzdata/europe
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
make/data/tzdata/factory
浏览文件 @
a495795c
...
...
@@ -31,5 +31,5 @@
# time zone abbreviation "-00", indicating that the actual time zone
# is unknown.
# Zone NAME
GMT
OFF RULES FORMAT
# Zone NAME
STD
OFF RULES FORMAT
Zone Factory 0 - -00
make/data/tzdata/leapseconds
浏览文件 @
a495795c
...
...
@@ -26,36 +26,39 @@
# This file is in the public domain.
# This file is generated automatically from the data in the public-domain
# leap-seconds.list file, which can be copied from
#
NIST format
leap-seconds.list file, which can be copied from
# <ftp://ftp.nist.gov/pub/time/leap-seconds.list>
# or <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>
# or <ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.list>.
# or <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>.
# For more about leap-seconds.list, please see
# The NTP Timescale and Leap Seconds
# <https://www.eecis.udel.edu/~mills/leap.html>.
# The International Earth Rotation and Reference Systems Service
# The rules for leap seconds are specified in Annex 1 (Time scales) of:
# Standard-frequency and time-signal emissions.
# International Telecommunication Union - Radiocommunication Sector
# (ITU-R) Recommendation TF.460-6 (02/2002)
# <https://www.itu.int/rec/R-REC-TF.460-6-200202-I/>.
# The International Earth Rotation and Reference Systems Service (IERS)
# periodically uses leap seconds to keep UTC to within 0.9 s of UT1
# (
which measures the true angular orientation of the earth in space
)
# (
a proxy for Earth's angle in space as measured by astronomers
)
# and publishes leap second data in a copyrighted file
# <https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat>.
# See: Levine J. Coordinated Universal Time and the leap second.
# URSI Radio Sci Bull. 2016;89(4):30-6. doi:10.23919/URSIRSB.2016.7909995
# <https://ieeexplore.ieee.org/document/7909995>.
# There were no leap seconds before 1972,
because the
official mechanism
# account
ing for the discrepancy between atomic time and the earth's rotation
#
did not exist
. The first ("1 Jan 1972") data line in leap-seconds.list
# There were no leap seconds before 1972,
as no
official mechanism
# account
ed for the discrepancy between atomic time (TAI) and the earth's
#
rotation
. The first ("1 Jan 1972") data line in leap-seconds.list
# does not denote a leap second; it denotes the start of the current definition
# of UTC.
# The correction (+ or -) is made at the given time, so lines
# will typically look like:
# Leap YEAR MON DAY 23:59:60 + R/S
# or
# Leap YEAR MON DAY 23:59:59 - R/S
# If the leap second is Rolling (R) the given time is local time (unused here).
# All leap-seconds are Stationary (S) at the given UTC time.
# The correction (+ or -) is made at the given time, so in the unlikely
# event of a negative leap second, a line would look like this:
# Leap YEAR MON DAY 23:59:59 - S
# Typical lines look like this:
# Leap YEAR MON DAY 23:59:60 + S
Leap 1972 Jun 30 23:59:60 + S
Leap 1972 Dec 31 23:59:60 + S
Leap 1973 Dec 31 23:59:60 + S
...
...
@@ -85,8 +88,8 @@ Leap 2015 Jun 30 23:59:60 + S
Leap 2016 Dec 31 23:59:60 + S
# POSIX timestamps for the data in this file:
#updated 1467936000
#expires 15
77491200
#updated 1467936000
(2016-07-08 00:00:00 UTC)
#expires 15
93302400 (2020-06-28 00:00:00 UTC)
# Updated through IERS Bulletin C5
7
# File expires on: 28
December 2019
# Updated through IERS Bulletin C5
8
# File expires on: 28
June 2020
make/data/tzdata/northamerica
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
make/data/tzdata/pacificnew
浏览文件 @
a495795c
...
...
@@ -44,7 +44,7 @@
## Rule Twilite XXXX max uspres Nov Sun>=7 2:00 0 S
## Rule Twilite XXXX max nonpres Oct lastSun 2:00 0 S
# Zone NAME
GMT
OFF RULES/SAVE FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES/SAVE FORMAT [UNTIL]
## Zone America/Los_Angeles-PET -8:00 US P%sT XXXX
## -8:00 Twilite P%sT
...
...
make/data/tzdata/southamerica
浏览文件 @
a495795c
...
...
@@ -419,7 +419,7 @@ Rule Arg 2008 only - Oct Sun>=15 0:00 1:00 -
# plus is that this silences a zic complaint that there's no POSIX TZ
# setting for timestamps past 2038.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
#
# Buenos Aires (BA), Capital Federal (CF),
Zone America/Argentina/Buenos_Aires -3:53:48 - LMT 1894 Oct 31
...
...
@@ -600,7 +600,7 @@ Zone America/Argentina/Ushuaia -4:33:12 - LMT 1894 Oct 31
Link America/Curacao America/Aruba
# Bolivia
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/La_Paz -4:32:36 - LMT 1890
-4:32:36 - CMT 1931 Oct 15 # Calamarca MT
-4:32:36 1:00 BST 1932 Mar 21 # Bolivia ST
...
...
@@ -943,14 +943,13 @@ Rule Brazil 2012 only - Feb Sun>=22 0:00 0 -
# removed Tocantins.
Rule Brazil 2013 2014 - Feb Sun>=15 0:00 0 -
Rule Brazil 2015 only - Feb Sun>=22 0:00 0 -
Rule Brazil 2016 20
22
- Feb Sun>=15 0:00 0 -
Rule Brazil 2016 20
19
- Feb Sun>=15 0:00 0 -
# From Steffen Thorsen (2017-12-18):
# According to many media sources, next year's DST start in Brazil will move to
# the first Sunday of November
, and it will stay like that for the years after.
# the first Sunday of November
# ... https://www.timeanddate.com/news/time/brazil-delays-dst-2018.html
# From Steffen Thorsen (2017-12-20):
# http://www.planalto.gov.br/ccivil_03/_ato2015-2018/2017/decreto/D9242.htm
#
# From Fábio Gomes (2018-10-04):
# The Brazilian president just announced a new change on this year DST.
# It was scheduled to start on November 4th and it was changed to November 18th.
...
...
@@ -958,22 +957,21 @@ Rule Brazil 2016 2022 - Feb Sun>=15 0:00 0 -
# The Brazilian government just announced that the change in DST was
# canceled.... Maybe the president Michel Temer also woke up one hour
# earlier today. :)
Rule Brazil 2018 max - Nov Sun>=1 0:00 1:00 -
Rule Brazil 2023 only - Feb Sun>=22 0:00 0 -
Rule Brazil 2024 2025 - Feb Sun>=15 0:00 0 -
Rule Brazil 2026 only - Feb Sun>=22 0:00 0 -
Rule Brazil 2027 2033 - Feb Sun>=15 0:00 0 -
Rule Brazil 2034 only - Feb Sun>=22 0:00 0 -
Rule Brazil 2035 2036 - Feb Sun>=15 0:00 0 -
Rule Brazil 2037 only - Feb Sun>=22 0:00 0 -
# From Arthur David Olson (2008-09-29):
# The next is wrong in some years but is better than nothing.
Rule Brazil 2038 max - Feb Sun>=15 0:00 0 -
# The latest ruleset listed above says that the following states observe DST:
Rule Brazil 2018 only - Nov Sun>=1 0:00 1:00 -
# The last ruleset listed above says that the following states observed DST:
# DF, ES, GO, MG, MS, MT, PR, RJ, RS, SC, SP.
#
# From Steffen Thorsen (2019-04-05):
# According to multiple sources the Brazilian president wants to get rid of DST.
# https://gmconline.com.br/noticias/politica/bolsonaro-horario-de-verao-deve-acabar-este-ano
# https://g1.globo.com/economia/noticia/2019/04/05/governo-anuncia-fim-do-horario-de-verao.ghtml
# From Marcus Diniz (2019-04-25):
# Brazil no longer has DST changes - decree signed today
# https://g1.globo.com/politica/noticia/2019/04/25/bolsonaro-assina-decreto-que-acaba-com-o-horario-de-verao.ghtml
# From Daniel Soares de Oliveira (2019-04-26):
# http://www.planalto.gov.br/ccivil_03/_Ato2019-2022/2019/Decreto/D9772.htm
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
#
# Fernando de Noronha (administratively part of PE)
Zone America/Noronha -2:09:40 - LMT 1914
...
...
@@ -1255,14 +1253,8 @@ Zone America/Rio_Branco -4:31:12 - LMT 1914
# From Juan Correa (2016-12-04):
# Magallanes region ... will keep DST (UTC -3) all year round....
# http://www.soychile.cl/Santiago/Sociedad/2016/12/04/433428/Bachelet-firmo-el-decreto-para-establecer-un-horario-unico-para-la-Region-de-Magallanes.aspx
#
# From Deborah Goldsmith (2017-01-19):
# http://www.diariooficial.interior.gob.cl/publicaciones/2017/01/17/41660/01/1169626.pdf
# From Paul Eggert (2017-01-19):
# The above says the Magallanes change expires 2019-05-11 at 24:00,
# so in theory, they will revert to -04/-03 after that, which means
# they will switch from -03 to -04 one hour after Santiago does that day.
# For now, assume that they will not revert.
# From Juan Correa (2018-08-13):
# As of moments ago, the Ministry of Energy in Chile has announced the new
...
...
@@ -1281,6 +1273,13 @@ Zone America/Rio_Branco -4:31:12 - LMT 1914
# https://twitter.com/MinEnergia/status/1029009354001973248
# "We will keep the new time policy unchanged for at least the next 4 years."
# So we extend the new rules on Saturdays at 24:00 mainland time indefinitely.
# From Juan Correa (2019-02-04):
# http://www.diariooficial.interior.gob.cl/publicaciones/2018/11/23/42212/01/1498738.pdf
# From Paul Eggert (2019-09-01):
# The above says the Magallanes exception expires 2022-04-02 at 24:00,
# so in theory, they will revert to -04/-03 after that.
# For now, assume that they will not revert,
# since they have extended the expiration date once already.
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule Chile 1927 1931 - Sep 1 0:00 1:00 -
...
...
@@ -1321,7 +1320,7 @@ Rule Chile 2019 max - Apr Sun>=2 3:00u 0 -
Rule Chile 2019 max - Sep Sun>=2 4:00u 1:00 -
# IATA SSIM anomalies: (1992-02) says 1992-03-14;
# (1996-09) says 1998-03-08. Ignore these.
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Santiago -4:42:46 - LMT 1890
-4:42:46 - SMT 1910 Jan 10 # Santiago Mean Time
-5:00 - -05 1916 Jul 1
...
...
@@ -1370,7 +1369,7 @@ Zone Pacific/Easter -7:17:28 - LMT 1890
# Palmer has followed Chile. Prior to that, before the Falklands War,
# Palmer used to be supplied from Argentina.
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Antarctica/Palmer 0 - -00 1965
-4:00 Arg -04/-03 1969 Oct 5
-3:00 Arg -03/-02 1982 May
...
...
@@ -1385,7 +1384,7 @@ Zone Antarctica/Palmer 0 - -00 1965
# Rule NAME FROM TO TYPE IN ON AT SAVE LETTER/S
Rule CO 1992 only - May 3 0:00 1:00 -
Rule CO 1993 only - Apr 4 0:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Bogota -4:56:16 - LMT 1884 Mar 13
-4:56:16 - BMT 1914 Nov 23 # Bogotá Mean Time
-5:00 CO -05/-04
...
...
@@ -1410,7 +1409,7 @@ Zone America/Bogota -4:56:16 - LMT 1884 Mar 13
# Netherlands as Kingdom Islands. This won't affect their time zones
# though, as far as we know.
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Curacao -4:35:47 - LMT 1912 Feb 12 # Willemstad
-4:30 - -0430 1965
-4:00 - AST
...
...
@@ -1446,7 +1445,7 @@ Link America/Curacao America/Kralendijk # Caribbean Netherlands
Rule Ecuador 1992 only - Nov 28 0:00 1:00 -
Rule Ecuador 1993 only - Feb 5 0:00 0 -
#
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Guayaquil -5:19:20 - LMT 1890
-5:14:00 - QMT 1931 # Quito Mean Time
-5:00 Ecuador -05/-04
...
...
@@ -1549,7 +1548,7 @@ Rule Falk 1985 2000 - Sep Sun>=9 0:00 1:00 -
Rule Falk 1986 2000 - Apr Sun>=16 0:00 0 -
Rule Falk 2001 2010 - Apr Sun>=15 2:00 0 -
Rule Falk 2001 2010 - Sep Sun>=1 2:00 1:00 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Atlantic/Stanley -3:51:24 - LMT 1890
-3:51:24 - SMT 1912 Mar 12 # Stanley Mean Time
-4:00 Falk -04/-03 1983 May
...
...
@@ -1558,13 +1557,13 @@ Zone Atlantic/Stanley -3:51:24 - LMT 1890
-3:00 - -03
# French Guiana
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Cayenne -3:29:20 - LMT 1911 Jul
-4:00 - -04 1967 Oct
-3:00 - -03
# Guyana
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Guyana -3:52:40 - LMT 1915 Mar # Georgetown
-3:45 - -0345 1975 Jul 31
-3:00 - -03 1991
...
...
@@ -1658,7 +1657,7 @@ Rule Para 2010 2012 - Apr Sun>=8 0:00 0 -
# http://www.presidencia.gov.py/archivos/documentos/DECRETO1264_ey9r8zai.pdf
Rule Para 2013 max - Mar Sun>=22 0:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Asuncion -3:50:40 - LMT 1890
-3:50:40 - AMT 1931 Oct 10 # Asunción Mean Time
-4:00 - -04 1972 Oct
...
...
@@ -1687,13 +1686,13 @@ Rule Peru 1990 only - Apr 1 0:00 0 -
# IATA is ambiguous for 1993/1995; go with Shanks & Pottenger.
Rule Peru 1994 only - Jan 1 0:00 1:00 -
Rule Peru 1994 only - Apr 1 0:00 0 -
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Lima -5:08:12 - LMT 1890
-5:08:36 - LMT 1908 Jul 28 # Lima Mean Time?
-5:00 Peru -05/-04
# South Georgia
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone Atlantic/South_Georgia -2:26:08 - LMT 1890 # Grytviken
-2:00 - -02
...
...
@@ -1701,7 +1700,7 @@ Zone Atlantic/South_Georgia -2:26:08 - LMT 1890 # Grytviken
# uninhabited; scientific personnel have wintered
# Suriname
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Paramaribo -3:40:40 - LMT 1911
-3:40:52 - PMT 1935 # Paramaribo Mean Time
-3:40:36 - PMT 1945 Oct # The capital moved?
...
...
@@ -1709,7 +1708,7 @@ Zone America/Paramaribo -3:40:40 - LMT 1911
-3:00 - -03
# Trinidad and Tobago
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Port_of_Spain -4:06:04 - LMT 1912 Mar 2
-4:00 - AST
...
...
@@ -1980,7 +1979,7 @@ Zone America/Montevideo -3:44:51 - LMT 1908 Jun 10
# ... published in the official Gazette [2016-04-18], here:
# http://historico.tsj.gob.ve/gaceta_ext/abril/1842016/E-1842016-4551.pdf
# Zone NAME
GMT
OFF RULES FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES FORMAT [UNTIL]
Zone America/Caracas -4:27:44 - LMT 1890
-4:27:40 - CMT 1912 Feb 12 # Caracas Mean Time?
-4:30 - -0430 1965 Jan 1 0:00
...
...
make/data/tzdata/systemv
浏览文件 @
a495795c
...
...
@@ -46,7 +46,7 @@ Rule SystemV 1975 only - Oct lastSun 2:00 0 S
Rule SystemV 1976 max - Apr lastSun 2:00 1:00 D
Rule SystemV 1976 max - Oct lastSun 2:00 0 S
# Zone NAME
GMT
OFF RULES/SAVE FORMAT [UNTIL]
# Zone NAME
STD
OFF RULES/SAVE FORMAT [UNTIL]
## Zone SystemV/AST4ADT -4:00 SystemV A%sT
## Zone SystemV/EST5EDT -5:00 SystemV E%sT
## Zone SystemV/CST6CDT -6:00 SystemV C%sT
...
...
make/data/tzdata/zone.tab
浏览文件 @
a495795c
...
...
@@ -355,7 +355,10 @@ RO +4426+02606 Europe/Bucharest
RS +4450+02030 Europe/Belgrade
RU +5443+02030 Europe/Kaliningrad MSK-01 - Kaliningrad
RU +554521+0373704 Europe/Moscow MSK+00 - Moscow area
RU +4457+03406 Europe/Simferopol MSK+00 - Crimea
# The obsolescent zone.tab format cannot represent Europe/Simferopol well.
# Put it in RU section and list as UA. See "territorial claims" above.
# Programs should use zone1970.tab instead; see above.
UA +4457+03406 Europe/Simferopol MSK+00 - Crimea
RU +5836+04939 Europe/Kirov MSK+00 - Kirov
RU +4621+04803 Europe/Astrakhan MSK+01 - Astrakhan
RU +4844+04425 Europe/Volgograd MSK+01 - Volgograd
...
...
make/lib/NetworkingLibraries.gmk
浏览文件 @
a495795c
...
...
@@ -75,7 +75,7 @@ $(eval $(call SetupNativeCompilation,BUILD_LIBNET, \
LDFLAGS_SUFFIX_linux := $(LIBDL) -ljvm -lpthread -ljava, \
LDFLAGS_SUFFIX_aix := $(LIBDL) -ljvm -ljava,\
LDFLAGS_SUFFIX_windows := ws2_32.lib jvm.lib secur32.lib iphlpapi.lib \
delayimp.lib
urlmon.lib
$(WIN_JAVA_LIB) advapi32.lib \
delayimp.lib $(WIN_JAVA_LIB) advapi32.lib \
-DELAYLOAD:secur32.dll -DELAYLOAD:iphlpapi.dll, \
VERSIONINFO_RESOURCE := $(JDK_TOPDIR)/src/windows/resource/version.rc, \
RC_FLAGS := $(RC_FLAGS) \
...
...
src/share/classes/com/sun/security/auth/module/Krb5LoginModule.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -668,7 +668,11 @@ public class Krb5LoginModule implements LoginModule {
// check to renew credentials
if
(!
isCurrent
(
cred
))
{
if
(
renewTGT
)
{
cred
=
renewCredentials
(
cred
);
Credentials
newCred
=
renewCredentials
(
cred
);
if
(
newCred
!=
null
)
{
newCred
.
setProxy
(
cred
.
getProxy
());
}
cred
=
newCred
;
}
else
{
// credentials have expired
cred
=
null
;
...
...
@@ -1074,6 +1078,10 @@ public class Krb5LoginModule implements LoginModule {
// create Kerberos Ticket
if
(
isInitiator
)
{
kerbTicket
=
Krb5Util
.
credsToTicket
(
cred
);
if
(
cred
.
getProxy
()
!=
null
)
{
KerberosSecrets
.
getJavaxSecurityAuthKerberosAccess
()
.
kerberosTicketSetProxy
(
kerbTicket
,
Krb5Util
.
credsToTicket
(
cred
.
getProxy
()));
}
}
if
(
storeKey
&&
encKeys
!=
null
)
{
...
...
src/share/classes/java/awt/Font.java
浏览文件 @
a495795c
...
...
@@ -1750,6 +1750,7 @@ public class Font implements java.io.Serializable
// value is the default.
if
(
fRequestedAttributes
!=
null
)
{
try
{
values
=
getAttributeValues
();
// init
AttributeValues
extras
=
AttributeValues
.
fromSerializableHashtable
(
fRequestedAttributes
);
...
...
@@ -1759,10 +1760,13 @@ public class Font implements java.io.Serializable
values
=
getAttributeValues
().
merge
(
extras
);
this
.
nonIdentityTx
=
values
.
anyNonDefault
(
EXTRA_MASK
);
this
.
hasLayoutAttributes
=
values
.
anyNonDefault
(
LAYOUT_MASK
);
}
catch
(
Throwable
t
)
{
throw
new
IOException
(
t
);
}
finally
{
fRequestedAttributes
=
null
;
// don't need it any more
}
}
}
/**
* Returns the number of glyphs in this <code>Font</code>. Glyph codes
...
...
src/share/classes/java/io/FilePermission.java
浏览文件 @
a495795c
...
...
@@ -25,12 +25,16 @@
package
java.io
;
import
java.net.URI
;
import
java.nio.file.InvalidPathException
;
import
java.security.*
;
import
java.util.Enumeration
;
import
java.util.List
;
import
java.util.ArrayList
;
import
java.util.Vector
;
import
java.util.Collections
;
import
sun.nio.fs.DefaultFileSystemProvider
;
import
sun.security.util.SecurityConstants
;
/**
...
...
@@ -152,6 +156,8 @@ public final class FilePermission extends Permission implements Serializable {
private
transient
String
cpath
;
private
transient
boolean
invalid
;
// whether input path is invalid
// static Strings used by init(int mask)
private
static
final
char
RECURSIVE_CHAR
=
'-'
;
private
static
final
char
WILD_CHAR
=
'*'
;
...
...
@@ -173,6 +179,14 @@ public final class FilePermission extends Permission implements Serializable {
private
static
final
long
serialVersionUID
=
7930732926638008763L
;
/**
* Always use the internal default file system, in case it was modified
* with java.nio.file.spi.DefaultFileSystemProvider.
*/
private
static
final
java
.
nio
.
file
.
FileSystem
builtInFS
=
DefaultFileSystemProvider
.
create
()
.
getFileSystem
(
URI
.
create
(
"file:///"
));
/**
* initialize a FilePermission object. Common to all constructors.
* Also called during de-serialization.
...
...
@@ -199,6 +213,20 @@ public final class FilePermission extends Permission implements Serializable {
return
;
}
// Validate path by platform's default file system
// Note: this check does not apply during FilePermission
// class initialization.
if
(
builtInFS
!=
null
)
{
try
{
String
name
=
cpath
.
endsWith
(
"*"
)
?
cpath
.
substring
(
0
,
cpath
.
length
()
-
1
)
+
"-"
:
cpath
;
builtInFS
.
getPath
(
new
File
(
name
).
getPath
());
}
catch
(
InvalidPathException
ipe
)
{
invalid
=
true
;
return
;
}
}
// store only the canonical cpath if possible
cpath
=
AccessController
.
doPrivileged
(
new
PrivilegedAction
<
String
>()
{
public
String
run
()
{
...
...
@@ -335,6 +363,12 @@ public final class FilePermission extends Permission implements Serializable {
* @return the effective mask
*/
boolean
impliesIgnoreMask
(
FilePermission
that
)
{
if
(
this
==
that
)
{
return
true
;
}
if
(
this
.
invalid
||
that
.
invalid
)
{
return
false
;
}
if
(
this
.
directory
)
{
if
(
this
.
recursive
)
{
// make sure that.path is longer then path so
...
...
@@ -395,6 +429,9 @@ public final class FilePermission extends Permission implements Serializable {
FilePermission
that
=
(
FilePermission
)
obj
;
if
(
this
.
invalid
||
that
.
invalid
)
{
return
false
;
}
return
(
this
.
mask
==
that
.
mask
)
&&
this
.
cpath
.
equals
(
that
.
cpath
)
&&
(
this
.
directory
==
that
.
directory
)
&&
...
...
src/share/classes/java/net/NetPermission.java
浏览文件 @
a495795c
/*
* Copyright (c) 1997, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
9
, 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
...
...
@@ -151,6 +151,15 @@ have access to. Thus it might be able to trick the system into
creating a ProtectionDomain/CodeSource for a class even though
that class really didn't come from that location.</td>
* </tr>
*
* <tr>
* <th scope="row">setSocketImpl</th>
* <td>The ability to create a sub-class of Socket or ServerSocket with a
* user specified SocketImpl.</td>
* <td>Malicious user-defined SocketImpls can change the behavior of
* Socket and ServerSocket in surprising ways, by virtue of their
* ability to access the protected fields of SocketImpl.</td>
* </tr>
* </table>
*
* @see java.security.BasicPermission
...
...
src/share/classes/java/net/ServerSocket.java
浏览文件 @
a495795c
...
...
@@ -31,6 +31,8 @@ import java.nio.channels.ServerSocketChannel;
import
java.security.AccessController
;
import
java.security.PrivilegedExceptionAction
;
import
sun.security.util.SecurityConstants
;
/**
* This class implements server sockets. A server socket waits for
* requests to come in over the network. It performs some operation
...
...
@@ -71,12 +73,25 @@ class ServerSocket implements java.io.Closeable {
/**
* Package-private constructor to create a ServerSocket associated with
* the given SocketImpl.
*
* @throws SecurityException if a security manager is set and
* its {@code checkPermission} method doesn't allow
* {@code NetPermission("setSocketImpl")}.
*/
ServerSocket
(
SocketImpl
impl
)
{
checkPermission
();
this
.
impl
=
impl
;
impl
.
setServerSocket
(
this
);
}
private
static
Void
checkPermission
()
{
SecurityManager
sm
=
System
.
getSecurityManager
();
if
(
sm
!=
null
)
{
sm
.
checkPermission
(
SecurityConstants
.
SET_SOCKETIMPL_PERMISSION
);
}
return
null
;
}
/**
* Creates an unbound server socket.
*
...
...
src/share/classes/java/net/Socket.java
浏览文件 @
a495795c
...
...
@@ -25,6 +25,8 @@
package
java.net
;
import
sun.security.util.SecurityConstants
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.IOException
;
...
...
@@ -159,9 +161,14 @@ class Socket implements java.io.Closeable {
*
* @exception SocketException if there is an error in the underlying protocol,
* such as a TCP error.
*
* @throws SecurityException if {@code impl} is non-null and a security manager is set
* and its {@code checkPermission} method doesn't allow {@code NetPermission("setSocketImpl")}.
*
* @since JDK1.1
*/
protected
Socket
(
SocketImpl
impl
)
throws
SocketException
{
checkPermission
(
impl
);
this
.
impl
=
impl
;
if
(
impl
!=
null
)
{
checkOldImpl
();
...
...
@@ -169,6 +176,17 @@ class Socket implements java.io.Closeable {
}
}
private
static
Void
checkPermission
(
SocketImpl
impl
)
{
if
(
impl
==
null
)
{
return
null
;
}
SecurityManager
sm
=
System
.
getSecurityManager
();
if
(
sm
!=
null
)
{
sm
.
checkPermission
(
SecurityConstants
.
SET_SOCKETIMPL_PERMISSION
);
}
return
null
;
}
/**
* Creates a stream socket and connects it to the specified port
* number on the named host.
...
...
src/share/classes/java/net/URL.java
浏览文件 @
a495795c
...
...
@@ -428,6 +428,16 @@ public final class URL implements java.io.Serializable {
throw
new
MalformedURLException
(
s
);
}
}
if
(
"jar"
.
equalsIgnoreCase
(
protocol
))
{
if
(
handler
instanceof
sun
.
net
.
www
.
protocol
.
jar
.
Handler
)
{
// URL.openConnection() would throw a confusing exception
// so generate a better exception here instead.
String
s
=
((
sun
.
net
.
www
.
protocol
.
jar
.
Handler
)
handler
).
checkNestedProtocol
(
file
);
if
(
s
!=
null
)
{
throw
new
MalformedURLException
(
s
);
}
}
}
}
/**
...
...
src/share/classes/java/util/regex/Pattern.java
浏览文件 @
a495795c
...
...
@@ -1348,7 +1348,11 @@ public final class Pattern
localCount
=
0
;
if
(
pattern
.
length
()
>
0
)
{
compile
();
try
{
compile
();
}
catch
(
StackOverflowError
soe
)
{
throw
error
(
"Stack overflow during pattern compilation"
);
}
}
else
{
root
=
new
Start
(
lastAccept
);
matchRoot
=
lastAccept
;
...
...
@@ -1905,6 +1909,10 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
int
ch
=
temp
[
cursor
++];
while
(
ch
!=
0
&&
!
isLineSeparator
(
ch
))
ch
=
temp
[
cursor
++];
if
(
ch
==
0
&&
cursor
>
patternLength
)
{
cursor
=
patternLength
;
ch
=
temp
[
cursor
++];
}
return
ch
;
}
...
...
@@ -1915,6 +1923,10 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
int
ch
=
temp
[++
cursor
];
while
(
ch
!=
0
&&
!
isLineSeparator
(
ch
))
ch
=
temp
[++
cursor
];
if
(
ch
==
0
&&
cursor
>
patternLength
)
{
cursor
=
patternLength
;
ch
=
temp
[
cursor
];
}
return
ch
;
}
...
...
src/share/classes/javax/security/auth/kerberos/JavaxSecurityAuthKerberosAccessImpl.java
浏览文件 @
a495795c
/*
* Copyright (c) 2011, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 201
9
, 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
...
...
@@ -26,8 +26,6 @@
package
javax.security.auth.kerberos
;
import
sun.security.krb5.JavaxSecurityAuthKerberosAccess
;
import
sun.security.krb5.EncryptionKey
;
import
sun.security.krb5.PrincipalName
;
class
JavaxSecurityAuthKerberosAccessImpl
implements
JavaxSecurityAuthKerberosAccess
{
...
...
@@ -35,4 +33,10 @@ class JavaxSecurityAuthKerberosAccessImpl
KeyTab
ktab
)
{
return
ktab
.
takeSnapshot
();
}
public
KerberosTicket
kerberosTicketGetProxy
(
KerberosTicket
t
)
{
return
t
.
proxy
;
}
public
void
kerberosTicketSetProxy
(
KerberosTicket
t
,
KerberosTicket
p
)
{
t
.
proxy
=
p
;
}
}
src/share/classes/javax/security/auth/kerberos/KerberosTicket.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -29,11 +29,13 @@ import java.io.*;
import
java.util.Date
;
import
java.util.Arrays
;
import
java.net.InetAddress
;
import
java.util.Objects
;
import
javax.crypto.SecretKey
;
import
javax.security.auth.Refreshable
;
import
javax.security.auth.Destroyable
;
import
javax.security.auth.RefreshFailedException
;
import
javax.security.auth.DestroyFailedException
;
import
sun.misc.HexDumpEncoder
;
import
sun.security.krb5.EncryptionKey
;
import
sun.security.krb5.Asn1Exception
;
...
...
@@ -190,9 +192,14 @@ public class KerberosTicket implements Destroyable, Refreshable,
* @serial
*/
private
InetAddress
[]
clientAddresses
;
/**
* Evidence ticket if proxy_impersonator. This field can be accessed
* by KerberosSecrets. It's serialized.
*/
KerberosTicket
proxy
=
null
;
private
transient
boolean
destroyed
=
false
;
/**
...
...
@@ -662,6 +669,7 @@ public class KerberosTicket implements Destroyable, Refreshable,
"Renew Till = "
+
String
.
valueOf
(
renewTill
)
+
"\n"
+
"Client Addresses "
+
(
clientAddresses
==
null
?
" Null "
:
caddrBuf
.
toString
()
+
(
proxy
==
null
?
""
:
"\nwith a proxy ticket"
)
+
"\n"
));
}
...
...
@@ -699,6 +707,10 @@ public class KerberosTicket implements Destroyable, Refreshable,
// clientAddress may be null, the array's hashCode is 0
result
=
result
*
37
+
Arrays
.
hashCode
(
clientAddresses
);
if
(
proxy
!=
null
)
{
result
=
result
*
37
+
proxy
.
hashCode
();
}
return
result
*
37
+
Arrays
.
hashCode
(
flags
);
}
...
...
@@ -764,6 +776,10 @@ public class KerberosTicket implements Destroyable, Refreshable,
return
false
;
}
if
(!
Objects
.
equals
(
proxy
,
otherTicket
.
proxy
))
{
return
false
;
}
return
true
;
}
...
...
src/share/classes/sun/font/CMap.java
浏览文件 @
a495795c
...
...
@@ -130,7 +130,7 @@ abstract class CMap {
static
final
char
noSuchChar
=
(
char
)
0xfffd
;
static
final
int
SHORTMASK
=
0x0000ffff
;
static
final
int
INTMASK
=
0x
f
fffffff
;
static
final
int
INTMASK
=
0x
7
fffffff
;
static
final
char
[][]
converterMaps
=
new
char
[
7
][];
...
...
@@ -885,7 +885,11 @@ abstract class CMap {
bbuffer
.
position
(
12
);
bbuffer
.
get
(
is32
);
nGroups
=
bbuffer
.
getInt
();
nGroups
=
bbuffer
.
getInt
()
&
INTMASK
;
// A map group record is three uint32's making for 12 bytes total
if
(
bbuffer
.
remaining
()
<
(
12
*
(
long
)
nGroups
))
{
throw
new
RuntimeException
(
"Format 8 table exceeded"
);
}
startCharCode
=
new
int
[
nGroups
];
endCharCode
=
new
int
[
nGroups
];
startGlyphID
=
new
int
[
nGroups
];
...
...
@@ -913,9 +917,13 @@ abstract class CMap {
CMapFormat10
(
ByteBuffer
bbuffer
,
int
offset
,
char
[]
xlat
)
{
bbuffer
.
position
(
offset
+
12
);
firstCode
=
bbuffer
.
getInt
()
&
INTMASK
;
entryCount
=
bbuffer
.
getInt
()
&
INTMASK
;
bbuffer
.
position
(
offset
+
20
);
// each glyph is a uint16, so 2 bytes per value.
if
(
bbuffer
.
remaining
()
<
(
2
*
(
long
)
entryCount
))
{
throw
new
RuntimeException
(
"Format 10 table exceeded"
);
}
CharBuffer
buffer
=
bbuffer
.
asCharBuffer
();
glyphIdArray
=
new
char
[
entryCount
];
for
(
int
i
=
0
;
i
<
entryCount
;
i
++)
{
...
...
@@ -955,11 +963,15 @@ abstract class CMap {
throw
new
RuntimeException
(
"xlat array for cmap fmt=12"
);
}
numGroups
=
buffer
.
getInt
(
offset
+
12
);
buffer
.
position
(
offset
+
12
);
numGroups
=
buffer
.
getInt
()
&
INTMASK
;
// A map group record is three uint32's making for 12 bytes total
if
(
buffer
.
remaining
()
<
(
12
*
(
long
)
numGroups
))
{
throw
new
RuntimeException
(
"Format 12 table exceeded"
);
}
startCharCode
=
new
long
[
numGroups
];
endCharCode
=
new
long
[
numGroups
];
startGlyphID
=
new
int
[
numGroups
];
buffer
.
position
(
offset
+
16
);
buffer
=
buffer
.
slice
();
IntBuffer
ibuffer
=
buffer
.
asIntBuffer
();
for
(
int
i
=
0
;
i
<
numGroups
;
i
++)
{
...
...
src/share/classes/sun/font/FileFont.java
浏览文件 @
a495795c
...
...
@@ -171,7 +171,7 @@ public abstract class FileFont extends PhysicalFont {
}
}
if
(
scaler
!=
null
)
{
scaler
.
dispose
();
scaler
.
dispose
Scaler
();
}
scaler
=
FontScaler
.
getNullScaler
();
}
...
...
src/share/classes/sun/font/FontScaler.java
浏览文件 @
a495795c
...
...
@@ -198,6 +198,12 @@ public abstract class FontScaler implements DisposerRecord {
scaler context objects! */
public
void
dispose
()
{}
/**
* Used when the native resources held by the scaler need
* to be released before the 2D disposer runs.
*/
public
void
disposeScaler
()
{}
/* At the moment these 3 methods are needed for Type1 fonts only.
* For Truetype fonts we extract required info outside of scaler
* on java layer.
...
...
src/share/classes/sun/font/FreetypeFontScaler.java
浏览文件 @
a495795c
...
...
@@ -167,6 +167,9 @@ class FreetypeFontScaler extends FontScaler {
return
getLayoutTableCacheNative
(
nativeScaler
);
}
/* This method should not be called directly, in case
* it is being invoked from a thread with a native context.
*/
public
synchronized
void
dispose
()
{
if
(
nativeScaler
!=
0L
)
{
disposeNativeScaler
(
font
.
get
(),
nativeScaler
);
...
...
@@ -174,6 +177,21 @@ class FreetypeFontScaler extends FontScaler {
}
}
public
synchronized
void
disposeScaler
()
{
if
(
nativeScaler
!=
0L
)
{
/*
* The current thread may be calling this method from the context
* of a JNI up-call. It will hold the native lock from the
* original down-call so can directly enter dispose and free
* the resources. So we need to schedule the disposal to happen
* only once we've returned from native. So by running the dispose
* on another thread which does nothing except that disposal we
* are sure that this is safe.
*/
new
Thread
(
null
,
()
->
dispose
(),
"free scaler"
,
0
).
start
();
}
}
synchronized
int
getNumGlyphs
()
throws
FontScalerException
{
if
(
nativeScaler
!=
0L
)
{
return
getNumGlyphsNative
(
nativeScaler
);
...
...
@@ -210,7 +228,7 @@ class FreetypeFontScaler extends FontScaler {
return
getUnitsPerEMNative
(
nativeScaler
);
}
long
createScalerContext
(
double
[]
matrix
,
synchronized
long
createScalerContext
(
double
[]
matrix
,
int
aa
,
int
fm
,
float
boldness
,
float
italic
,
boolean
disableHinting
)
{
if
(
nativeScaler
!=
0L
)
{
...
...
@@ -240,7 +258,7 @@ class FreetypeFontScaler extends FontScaler {
private
native
GeneralPath
getGlyphVectorOutlineNative
(
Font2D
font
,
long
pScalerContext
,
long
pScaler
,
int
[]
glyphs
,
int
numGlyphs
,
float
x
,
float
y
);
native
Point2D
.
Float
getGlyphPointNative
(
Font2D
font
,
private
native
Point2D
.
Float
getGlyphPointNative
(
Font2D
font
,
long
pScalerContext
,
long
pScaler
,
int
glyphCode
,
int
ptNumber
);
private
native
long
getLayoutTableCacheNative
(
long
pScaler
);
...
...
@@ -253,7 +271,7 @@ class FreetypeFontScaler extends FontScaler {
private
native
long
getUnitsPerEMNative
(
long
pScaler
);
native
long
createScalerContextNative
(
long
pScaler
,
double
[]
matrix
,
private
native
long
createScalerContextNative
(
long
pScaler
,
double
[]
matrix
,
int
aa
,
int
fm
,
float
boldness
,
float
italic
);
/* Freetype scaler context does not contain any pointers that
...
...
src/share/classes/sun/font/GlyphList.java
浏览文件 @
a495795c
...
...
@@ -323,6 +323,14 @@ public final class GlyphList {
*/
public
void
setGlyphIndex
(
int
i
)
{
glyphindex
=
i
;
if
(
images
[
i
]
==
0L
)
{
metrics
[
0
]
=
(
int
)
gposx
;
metrics
[
1
]
=
(
int
)
gposy
;
metrics
[
2
]
=
0
;
metrics
[
3
]
=
0
;
metrics
[
4
]
=
0
;
return
;
}
float
gx
=
StrikeCache
.
unsafe
.
getFloat
(
images
[
i
]+
StrikeCache
.
topLeftXOffset
);
float
gy
=
...
...
@@ -361,6 +369,9 @@ public final class GlyphList {
graybits
=
new
byte
[
len
];
}
}
if
(
images
[
glyphindex
]
==
0L
)
{
return
graybits
;
}
long
pixelDataAddress
=
StrikeCache
.
unsafe
.
getAddress
(
images
[
glyphindex
]
+
StrikeCache
.
pixelDataOffset
);
...
...
@@ -468,6 +479,9 @@ public final class GlyphList {
char
gw
,
gh
;
float
gx
,
gy
,
gx0
,
gy0
,
gx1
,
gy1
;
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
if
(
images
[
i
]
==
0L
)
{
continue
;
}
gx
=
StrikeCache
.
unsafe
.
getFloat
(
images
[
i
]+
xOffset
);
gy
=
StrikeCache
.
unsafe
.
getFloat
(
images
[
i
]+
yOffset
);
gw
=
StrikeCache
.
unsafe
.
getChar
(
images
[
i
]+
wOffset
);
...
...
src/share/classes/sun/java2d/SunGraphics2D.java
浏览文件 @
a495795c
...
...
@@ -3020,7 +3020,8 @@ public final class SunGraphics2D
if
(
data
==
null
)
{
throw
new
NullPointerException
(
"char data is null"
);
}
if
(
offset
<
0
||
length
<
0
||
offset
+
length
>
data
.
length
)
{
if
(
offset
<
0
||
length
<
0
||
offset
+
length
<
length
||
offset
+
length
>
data
.
length
)
{
throw
new
ArrayIndexOutOfBoundsException
(
"bad offset/length"
);
}
if
(
font
.
hasLayoutAttributes
())
{
...
...
@@ -3052,7 +3053,8 @@ public final class SunGraphics2D
if
(
data
==
null
)
{
throw
new
NullPointerException
(
"byte data is null"
);
}
if
(
offset
<
0
||
length
<
0
||
offset
+
length
>
data
.
length
)
{
if
(
offset
<
0
||
length
<
0
||
offset
+
length
<
length
||
offset
+
length
>
data
.
length
)
{
throw
new
ArrayIndexOutOfBoundsException
(
"bad offset/length"
);
}
/* Byte data is interpreted as 8-bit ASCII. Re-use drawChars loops */
...
...
src/share/classes/sun/misc/Launcher.java
浏览文件 @
a495795c
...
...
@@ -85,6 +85,9 @@ public class Launcher {
// Finally, install a security manager if requested
String
s
=
System
.
getProperty
(
"java.security.manager"
);
if
(
s
!=
null
)
{
// init FileSystem machinery before SecurityManager installation
sun
.
nio
.
fs
.
DefaultFileSystemProvider
.
create
();
SecurityManager
sm
=
null
;
if
(
""
.
equals
(
s
)
||
"default"
.
equals
(
s
))
{
sm
=
new
java
.
lang
.
SecurityManager
();
...
...
src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
浏览文件 @
a495795c
...
...
@@ -2145,6 +2145,10 @@ public class HttpURLConnection extends java.net.HttpURLConnection {
}
while
(
retryTunnel
<
maxRedirects
);
if
(
retryTunnel
>=
maxRedirects
||
(
respCode
!=
HTTP_OK
))
{
if
(
respCode
!=
HTTP_PROXY_AUTH
)
{
// remove all but authenticate responses
responses
.
reset
();
}
throw
new
IOException
(
"Unable to tunnel through proxy."
+
" Proxy returns \""
+
statusLine
+
"\""
);
...
...
src/share/classes/sun/net/www/protocol/jar/Handler.java
浏览文件 @
a495795c
/*
* Copyright (c) 1997, 201
1
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 201
9
, 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
...
...
@@ -121,6 +121,13 @@ public class Handler extends java.net.URLStreamHandler {
return
h
;
}
public
String
checkNestedProtocol
(
String
spec
)
{
if
(
spec
.
regionMatches
(
true
,
0
,
"jar:"
,
0
,
4
))
{
return
"Nested JAR URLs are not supported"
;
}
else
{
return
null
;
}
}
@Override
@SuppressWarnings
(
"deprecation"
)
...
...
@@ -147,6 +154,12 @@ public class Handler extends java.net.URLStreamHandler {
}
spec
=
spec
.
substring
(
start
,
limit
);
String
exceptionMessage
=
checkNestedProtocol
(
spec
);
if
(
exceptionMessage
!=
null
)
{
// NPE will be transformed into MalformedURLException by the caller
throw
new
NullPointerException
(
exceptionMessage
);
}
if
(
absoluteSpec
)
{
file
=
parseAbsoluteSpec
(
spec
);
}
else
if
(!
refOnly
)
{
...
...
src/share/classes/sun/rmi/registry/RegistryImpl_Skel.java
浏览文件 @
a495795c
...
...
@@ -27,13 +27,8 @@
package
sun.rmi.registry
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.rmi.AccessException
;
import
java.rmi.server.RemoteCall
;
import
sun.rmi.transport.Connection
;
import
sun.rmi.transport.StreamRemoteCall
;
import
sun.rmi.transport.tcp.TCPConnection
;
/**
* Skeleton to dispatch RegistryImpl methods.
...
...
@@ -56,7 +51,7 @@ public final class RegistryImpl_Skel
return
operations
.
clone
();
}
public
void
dispatch
(
java
.
rmi
.
Remote
obj
,
java
.
rmi
.
server
.
RemoteCall
c
all
,
int
opnum
,
long
hash
)
public
void
dispatch
(
java
.
rmi
.
Remote
obj
,
java
.
rmi
.
server
.
RemoteCall
remoteC
all
,
int
opnum
,
long
hash
)
throws
java
.
lang
.
Exception
{
if
(
opnum
<
0
)
{
if
(
hash
==
7583982177005850366L
)
{
...
...
@@ -78,6 +73,7 @@ public final class RegistryImpl_Skel
}
sun
.
rmi
.
registry
.
RegistryImpl
server
=
(
sun
.
rmi
.
registry
.
RegistryImpl
)
obj
;
StreamRemoteCall
call
=
(
StreamRemoteCall
)
remoteCall
;
switch
(
opnum
)
{
case
0
:
// bind(String, Remote)
{
...
...
@@ -90,7 +86,8 @@ public final class RegistryImpl_Skel
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
$param_String_1
=
(
java
.
lang
.
String
)
in
.
readObject
();
$param_Remote_2
=
(
java
.
rmi
.
Remote
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
|
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
finally
{
call
.
releaseInputStream
();
...
...
@@ -123,7 +120,8 @@ public final class RegistryImpl_Skel
try
{
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
$param_String_1
=
(
java
.
lang
.
String
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
|
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
finally
{
call
.
releaseInputStream
();
...
...
@@ -149,7 +147,8 @@ public final class RegistryImpl_Skel
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
$param_String_1
=
(
java
.
lang
.
String
)
in
.
readObject
();
$param_Remote_2
=
(
java
.
rmi
.
Remote
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
|
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
java
.
lang
.
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
finally
{
call
.
releaseInputStream
();
...
...
@@ -172,7 +171,8 @@ public final class RegistryImpl_Skel
try
{
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
$param_String_1
=
(
java
.
lang
.
String
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
|
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
finally
{
call
.
releaseInputStream
();
...
...
src/share/classes/sun/rmi/registry/RegistryImpl_Stub.java
浏览文件 @
a495795c
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017,
2019,
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
...
...
@@ -24,6 +24,11 @@
*/
package
sun.rmi.registry
;
import
java.io.IOException
;
import
sun.rmi.transport.StreamRemoteCall
;
/**
* Stubs to invoke RegistryImpl remote methods.
* Originally generated from RMIC but frozen to match RegistryImpl_Skel.
...
...
@@ -57,7 +62,7 @@ public final class RegistryImpl_Stub
public
void
bind
(
java
.
lang
.
String
$param_String_1
,
java
.
rmi
.
Remote
$param_Remote_2
)
throws
java
.
rmi
.
AccessException
,
java
.
rmi
.
AlreadyBoundException
,
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
0
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
(
this
,
operations
,
0
,
interfaceHash
);
try
{
java
.
io
.
ObjectOutput
out
=
call
.
getOutputStream
();
out
.
writeObject
(
$param_String_1
);
...
...
@@ -82,15 +87,14 @@ public final class RegistryImpl_Stub
public
java
.
lang
.
String
[]
list
()
throws
java
.
rmi
.
AccessException
,
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
1
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
(
this
,
operations
,
1
,
interfaceHash
);
ref
.
invoke
(
call
);
java
.
lang
.
String
[]
$result
;
try
{
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
$result
=
(
java
.
lang
.
String
[])
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling return"
,
e
);
}
catch
(
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling return"
,
e
);
}
finally
{
ref
.
done
(
call
);
...
...
@@ -109,7 +113,7 @@ public final class RegistryImpl_Stub
public
java
.
rmi
.
Remote
lookup
(
java
.
lang
.
String
$param_String_1
)
throws
java
.
rmi
.
AccessException
,
java
.
rmi
.
NotBoundException
,
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
2
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
(
this
,
operations
,
2
,
interfaceHash
);
try
{
java
.
io
.
ObjectOutput
out
=
call
.
getOutputStream
();
out
.
writeObject
(
$param_String_1
);
...
...
@@ -121,9 +125,8 @@ public final class RegistryImpl_Stub
try
{
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
$result
=
(
java
.
rmi
.
Remote
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling return"
,
e
);
}
catch
(
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling return"
,
e
);
}
finally
{
ref
.
done
(
call
);
...
...
@@ -144,7 +147,7 @@ public final class RegistryImpl_Stub
public
void
rebind
(
java
.
lang
.
String
$param_String_1
,
java
.
rmi
.
Remote
$param_Remote_2
)
throws
java
.
rmi
.
AccessException
,
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
3
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
(
this
,
operations
,
3
,
interfaceHash
);
try
{
java
.
io
.
ObjectOutput
out
=
call
.
getOutputStream
();
out
.
writeObject
(
$param_String_1
);
...
...
@@ -167,7 +170,7 @@ public final class RegistryImpl_Stub
public
void
unbind
(
java
.
lang
.
String
$param_String_1
)
throws
java
.
rmi
.
AccessException
,
java
.
rmi
.
NotBoundException
,
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
4
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
(
this
,
operations
,
4
,
interfaceHash
);
try
{
java
.
io
.
ObjectOutput
out
=
call
.
getOutputStream
();
out
.
writeObject
(
$param_String_1
);
...
...
src/share/classes/sun/rmi/transport/DGCImpl_Skel.java
浏览文件 @
a495795c
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017,
2019,
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
...
...
@@ -25,6 +25,8 @@
package
sun.rmi.transport
;
import
java.io.IOException
;
/**
* Skeleton to dispatch DGC methods.
* Originally generated by RMIC but frozen to match the stubs.
...
...
@@ -43,12 +45,13 @@ public final class DGCImpl_Skel
return
operations
.
clone
();
}
public
void
dispatch
(
java
.
rmi
.
Remote
obj
,
java
.
rmi
.
server
.
RemoteCall
c
all
,
int
opnum
,
long
hash
)
public
void
dispatch
(
java
.
rmi
.
Remote
obj
,
java
.
rmi
.
server
.
RemoteCall
remoteC
all
,
int
opnum
,
long
hash
)
throws
java
.
lang
.
Exception
{
if
(
hash
!=
interfaceHash
)
throw
new
java
.
rmi
.
server
.
SkeletonMismatchException
(
"interface hash mismatch"
);
sun
.
rmi
.
transport
.
DGCImpl
server
=
(
sun
.
rmi
.
transport
.
DGCImpl
)
obj
;
StreamRemoteCall
call
=
(
StreamRemoteCall
)
remoteCall
;
switch
(
opnum
)
{
case
0
:
// clean(ObjID[], long, VMID, boolean)
{
...
...
@@ -62,9 +65,8 @@ public final class DGCImpl_Skel
$param_long_2
=
in
.
readLong
();
$param_VMID_3
=
(
java
.
rmi
.
dgc
.
VMID
)
in
.
readObject
();
$param_boolean_4
=
in
.
readBoolean
();
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
catch
(
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
finally
{
call
.
releaseInputStream
();
...
...
@@ -88,9 +90,8 @@ public final class DGCImpl_Skel
$param_arrayOf_ObjID_1
=
(
java
.
rmi
.
server
.
ObjID
[])
in
.
readObject
();
$param_long_2
=
in
.
readLong
();
$param_Lease_3
=
(
java
.
rmi
.
dgc
.
Lease
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
e
)
{
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
catch
(
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling arguments"
,
e
);
}
finally
{
call
.
releaseInputStream
();
...
...
src/share/classes/sun/rmi/transport/DGCImpl_Stub.java
浏览文件 @
a495795c
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017,
2019,
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
...
...
@@ -25,16 +25,15 @@
package
sun.rmi.transport
;
import
java.io.ObjectInputStream
;
import
sun.rmi.transport.tcp.TCPConnection
;
import
java.io.IOException
;
import
java.rmi.dgc.Lease
;
import
java.rmi.dgc.VMID
;
import
java.rmi.server.UID
;
import
java.security.AccessController
;
import
java.security.PrivilegedAction
;
import
java.util.ArrayList
;
import
sun.misc.ObjectInputFilter
;
import
sun.rmi.server.UnicastRef
;
import
sun.rmi.transport.tcp.TCPConnection
;
/**
* Stubs to invoke DGC remote methods.
...
...
@@ -72,7 +71,9 @@ public final class DGCImpl_Stub
public
void
clean
(
java
.
rmi
.
server
.
ObjID
[]
$param_arrayOf_ObjID_1
,
long
$param_long_2
,
java
.
rmi
.
dgc
.
VMID
$param_VMID_3
,
boolean
$param_boolean_4
)
throws
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
0
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
0
,
interfaceHash
);
call
.
setObjectInputFilter
(
DGCImpl_Stub:
:
leaseFilter
);
try
{
java
.
io
.
ObjectOutput
out
=
call
.
getOutputStream
();
out
.
writeObject
(
$param_arrayOf_ObjID_1
);
...
...
@@ -97,7 +98,10 @@ public final class DGCImpl_Stub
public
java
.
rmi
.
dgc
.
Lease
dirty
(
java
.
rmi
.
server
.
ObjID
[]
$param_arrayOf_ObjID_1
,
long
$param_long_2
,
java
.
rmi
.
dgc
.
Lease
$param_Lease_3
)
throws
java
.
rmi
.
RemoteException
{
try
{
java
.
rmi
.
server
.
RemoteCall
call
=
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
1
,
interfaceHash
);
StreamRemoteCall
call
=
(
StreamRemoteCall
)
ref
.
newCall
((
java
.
rmi
.
server
.
RemoteObject
)
this
,
operations
,
1
,
interfaceHash
);
call
.
setObjectInputFilter
(
DGCImpl_Stub:
:
leaseFilter
);
try
{
java
.
io
.
ObjectOutput
out
=
call
.
getOutputStream
();
out
.
writeObject
(
$param_arrayOf_ObjID_1
);
...
...
@@ -108,26 +112,17 @@ public final class DGCImpl_Stub
}
ref
.
invoke
(
call
);
java
.
rmi
.
dgc
.
Lease
$result
;
Connection
connection
=
((
StreamRemoteCall
)
call
)
.
getConnection
();
Connection
connection
=
call
.
getConnection
();
try
{
java
.
io
.
ObjectInput
in
=
call
.
getInputStream
();
if
(
in
instanceof
ObjectInputStream
)
{
/**
* Set a filter on the stream for the return value.
*/
ObjectInputStream
ois
=
(
ObjectInputStream
)
in
;
AccessController
.
doPrivileged
((
PrivilegedAction
<
Void
>)()
->
{
ObjectInputFilter
.
Config
.
setObjectInputFilter
(
ois
,
DGCImpl_Stub:
:
leaseFilter
);
return
null
;
});
}
$result
=
(
java
.
rmi
.
dgc
.
Lease
)
in
.
readObject
();
}
catch
(
java
.
io
.
IOException
|
java
.
lang
.
ClassNotFoundException
e
)
{
}
catch
(
ClassCastException
|
IOException
|
ClassNotFoundException
e
)
{
if
(
connection
instanceof
TCPConnection
)
{
// Modified to prevent re-use of the connection after an exception
((
TCPConnection
)
connection
).
getChannel
().
free
(
connection
,
false
);
}
call
.
discardPendingRefs
();
throw
new
java
.
rmi
.
UnmarshalException
(
"error unmarshalling return"
,
e
);
}
finally
{
ref
.
done
(
call
);
...
...
@@ -146,6 +141,10 @@ public final class DGCImpl_Stub
* ObjectInputFilter to filter DGCClient return value (a Lease).
* The list of acceptable classes is very short and explicit.
* The depth and array sizes are limited.
* <p>
* The filter must accept normal and exception returns.
* A DGC server may throw exceptions that may have a cause
* and suppressed exceptions.
*
* @param filterInfo access to class, arrayLength, etc.
* @return {@link ObjectInputFilter.Status#ALLOWED} if allowed,
...
...
@@ -172,7 +171,16 @@ public final class DGCImpl_Stub
}
return
(
clazz
==
UID
.
class
||
clazz
==
VMID
.
class
||
clazz
==
Lease
.
class
)
clazz
==
Lease
.
class
||
(
Throwable
.
class
.
isAssignableFrom
(
clazz
)
&&
clazz
.
getClassLoader
()
==
Object
.
class
.
getClassLoader
())
||
clazz
==
StackTraceElement
.
class
||
clazz
==
ArrayList
.
class
||
// for suppressed exceptions, if any
clazz
==
Object
.
class
||
clazz
.
getName
().
equals
(
"java.util.Collections$UnmodifiableList"
)
||
clazz
.
getName
().
equals
(
"java.util.Collections$UnmodifiableCollection"
)
||
clazz
.
getName
().
equals
(
"java.util.Collections$UnmodifiableRandomAccessList"
))
?
ObjectInputFilter
.
Status
.
ALLOWED
:
ObjectInputFilter
.
Status
.
REJECTED
;
}
...
...
src/share/classes/sun/rmi/transport/StreamRemoteCall.java
浏览文件 @
a495795c
/*
* Copyright (c) 1996, 201
7
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 201
9
, 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
...
...
@@ -36,6 +36,10 @@ import java.rmi.MarshalException;
import
java.rmi.UnmarshalException
;
import
java.rmi.server.ObjID
;
import
java.rmi.server.RemoteCall
;
import
java.security.AccessController
;
import
java.security.PrivilegedAction
;
import
sun.misc.ObjectInputFilter
;
import
sun.rmi.runtime.Log
;
import
sun.rmi.server.UnicastRef
;
import
sun.rmi.transport.tcp.TCPEndpoint
;
...
...
@@ -50,6 +54,7 @@ public class StreamRemoteCall implements RemoteCall {
private
ConnectionInputStream
in
=
null
;
private
ConnectionOutputStream
out
=
null
;
private
Connection
conn
;
private
ObjectInputFilter
filter
=
null
;
private
boolean
resultStarted
=
false
;
private
Exception
serverException
=
null
;
...
...
@@ -123,6 +128,13 @@ public class StreamRemoteCall implements RemoteCall {
}
}
public
void
setObjectInputFilter
(
ObjectInputFilter
filter
)
{
if
(
in
!=
null
)
{
throw
new
IllegalStateException
(
"set filter must occur before calling getInputStream"
);
}
this
.
filter
=
filter
;
}
/**
* Get the InputStream the stub/skeleton should get results/arguments
* from.
...
...
@@ -132,6 +144,12 @@ public class StreamRemoteCall implements RemoteCall {
Transport
.
transportLog
.
log
(
Log
.
VERBOSE
,
"getting input stream"
);
in
=
new
ConnectionInputStream
(
conn
.
getInputStream
());
if
(
filter
!=
null
)
{
AccessController
.
doPrivileged
((
PrivilegedAction
<
Void
>)
()
->
{
ObjectInputFilter
.
Config
.
setObjectInputFilter
(
in
,
filter
);
return
null
;
});
}
}
return
in
;
}
...
...
@@ -251,6 +269,7 @@ public class StreamRemoteCall implements RemoteCall {
try
{
ex
=
in
.
readObject
();
}
catch
(
Exception
e
)
{
discardPendingRefs
();
throw
new
UnmarshalException
(
"Error unmarshaling return"
,
e
);
}
...
...
@@ -259,6 +278,7 @@ public class StreamRemoteCall implements RemoteCall {
if
(
ex
instanceof
Exception
)
{
exceptionReceivedFromServer
((
Exception
)
ex
);
}
else
{
discardPendingRefs
();
throw
new
UnmarshalException
(
"Return type not Exception"
);
}
// Exception is thrown before fallthrough can occur
...
...
src/share/classes/sun/security/jgss/krb5/Krb5Context.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -614,6 +614,8 @@ class Krb5Context implements GSSContextSpi {
if
(
myCred
==
null
)
{
myCred
=
Krb5InitCredential
.
getInstance
(
caller
,
myName
,
GSSCredential
.
DEFAULT_LIFETIME
);
myCred
=
Krb5ProxyCredential
.
tryImpersonation
(
caller
,
(
Krb5InitCredential
)
myCred
);
}
else
if
(!
myCred
.
isInitiatorCredential
())
{
throw
new
GSSException
(
errorCode
,
-
1
,
"No TGT available"
);
...
...
@@ -651,8 +653,8 @@ class Krb5Context implements GSSContextSpi {
// highly consider just calling:
// Subject.getSubject
// SubjectComber.find
// instead of Krb5Util.getTicket
return
Krb5Util
.
getTicket
(
// instead of Krb5Util.get
Service
Ticket
return
Krb5Util
.
get
Service
Ticket
(
GSSCaller
.
CALLER_UNKNOWN
,
// since it's useSubjectCredsOnly here,
// don't worry about the null
...
...
src/share/classes/sun/security/jgss/krb5/Krb5InitCredential.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
8
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -55,6 +55,7 @@ public class Krb5InitCredential
private
Krb5NameElement
name
;
private
Credentials
krb5Credentials
;
public
KerberosTicket
proxyTicket
;
private
Krb5InitCredential
(
Krb5NameElement
name
,
byte
[]
asn1Encoding
,
...
...
@@ -153,7 +154,7 @@ public class Krb5InitCredential
Krb5MechFactory
.
NT_GSS_KRB5_PRINCIPAL
);
}
return
new
Krb5InitCredential
(
name
,
Krb5InitCredential
result
=
new
Krb5InitCredential
(
name
,
tgt
.
getEncoded
(),
tgt
.
getClient
(),
tgt
.
getServer
(),
...
...
@@ -165,6 +166,9 @@ public class Krb5InitCredential
tgt
.
getEndTime
(),
tgt
.
getRenewTill
(),
tgt
.
getClientAddresses
());
result
.
proxyTicket
=
KerberosSecrets
.
getJavaxSecurityAuthKerberosAccess
().
kerberosTicketGetProxy
(
tgt
);
return
result
;
}
static
Krb5InitCredential
getInstance
(
Krb5NameElement
name
,
...
...
@@ -334,9 +338,9 @@ public class Krb5InitCredential
public
KerberosTicket
run
()
throws
Exception
{
// It's OK to use null as serverPrincipal. TGT is almost
// the first ticket for a principal and we use list.
return
Krb5Util
.
getTicket
(
return
Krb5Util
.
get
Initial
Ticket
(
realCaller
,
clientPrincipal
,
null
,
acc
);
clientPrincipal
,
acc
);
}});
}
catch
(
PrivilegedActionException
e
)
{
GSSException
ge
=
...
...
src/share/classes/sun/security/jgss/krb5/Krb5MechFactory.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -120,6 +120,8 @@ public final class Krb5MechFactory implements MechanismFactory {
usage
==
GSSCredential
.
INITIATE_AND_ACCEPT
)
{
credElement
=
Krb5InitCredential
.
getInstance
(
caller
,
(
Krb5NameElement
)
name
,
initLifetime
);
credElement
=
Krb5ProxyCredential
.
tryImpersonation
(
caller
,
(
Krb5InitCredential
)
credElement
);
checkInitCredPermission
((
Krb5NameElement
)
credElement
.
getName
());
}
else
if
(
usage
==
GSSCredential
.
ACCEPT_ONLY
)
{
...
...
src/share/classes/sun/security/jgss/krb5/Krb5NameElement.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -144,7 +144,7 @@ public class Krb5NameElement
return
new
Krb5NameElement
(
principalName
,
gssNameStr
,
gssNameType
);
}
static
Krb5NameElement
getInstance
(
PrincipalName
principalName
)
{
public
static
Krb5NameElement
getInstance
(
PrincipalName
principalName
)
{
return
new
Krb5NameElement
(
principalName
,
principalName
.
getName
(),
Krb5MechFactory
.
NT_GSS_KRB5_PRINCIPAL
);
...
...
src/share/classes/sun/security/jgss/krb5/Krb5ProxyCredential.java
浏览文件 @
a495795c
/*
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012,
2019,
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
...
...
@@ -26,10 +26,17 @@
package
sun.security.jgss.krb5
;
import
org.ietf.jgss.*
;
import
sun.security.jgss.GSSCaller
;
import
sun.security.jgss.spi.*
;
import
java.util.Date
;
import
java.io.IOException
;
import
sun.security.krb5.Credentials
;
import
sun.security.krb5.KrbException
;
import
sun.security.krb5.internal.Ticket
;
import
javax.security.auth.kerberos.KerberosTicket
;
/**
* Implements the krb5 proxy credential element used in constrained
* delegation. It is used in both impersonation (where there is no Kerberos 5
...
...
@@ -112,4 +119,24 @@ public class Krb5ProxyCredential
throw
new
GSSException
(
GSSException
.
FAILURE
,
-
1
,
"Only an initiate credentials can impersonate"
);
}
// Try to see if a default credential should act as an impersonator.
static
Krb5CredElement
tryImpersonation
(
GSSCaller
caller
,
Krb5InitCredential
initiator
)
throws
GSSException
{
try
{
KerberosTicket
proxy
=
initiator
.
proxyTicket
;
if
(
proxy
!=
null
)
{
Credentials
proxyCreds
=
Krb5Util
.
ticketToCreds
(
proxy
);
return
new
Krb5ProxyCredential
(
initiator
,
Krb5NameElement
.
getInstance
(
proxyCreds
.
getClient
()),
proxyCreds
.
getTicket
());
}
else
{
return
initiator
;
}
}
catch
(
KrbException
|
IOException
e
)
{
throw
new
GSSException
(
GSSException
.
DEFECTIVE_CREDENTIAL
,
-
1
,
"Cannot create proxy credential"
);
}
}
}
src/share/classes/sun/security/jgss/krb5/Krb5Util.java
浏览文件 @
a495795c
/*
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
9
, 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
...
...
@@ -139,11 +139,8 @@ public class Krb5Util {
/**
* Retrieves the ticket corresponding to the client/server principal
* pair from the Subject in the specified AccessControlContext.
* If the ticket can not be found in the Subject, and if
* useSubjectCredsOnly is false, then obtain ticket from
* a LoginContext.
*/
static
KerberosTicket
getTicket
(
GSSCaller
caller
,
static
KerberosTicket
get
Service
Ticket
(
GSSCaller
caller
,
String
clientPrincipal
,
String
serverPrincipal
,
AccessControlContext
acc
)
throws
LoginException
{
...
...
@@ -153,11 +150,31 @@ public class Krb5Util {
SubjectComber
.
find
(
accSubj
,
serverPrincipal
,
clientPrincipal
,
KerberosTicket
.
class
);
return
ticket
;
}
/**
* Retrieves the initial TGT corresponding to the client principal
* from the Subject in the specified AccessControlContext.
* If the ticket can not be found in the Subject, and if
* useSubjectCredsOnly is false, then obtain ticket from
* a LoginContext.
*/
static
KerberosTicket
getInitialTicket
(
GSSCaller
caller
,
String
clientPrincipal
,
AccessControlContext
acc
)
throws
LoginException
{
// Try to get ticket from acc's Subject
Subject
accSubj
=
Subject
.
getSubject
(
acc
);
KerberosTicket
ticket
=
SubjectComber
.
find
(
accSubj
,
null
,
clientPrincipal
,
KerberosTicket
.
class
);
// Try to get ticket from Subject obtained from GSSUtil
if
(
ticket
==
null
&&
!
GSSUtil
.
useSubjectCredsOnly
(
caller
))
{
Subject
subject
=
GSSUtil
.
login
(
caller
,
GSSUtil
.
GSS_KRB5_MECH_OID
);
ticket
=
SubjectComber
.
find
(
subject
,
serverPrincipa
l
,
clientPrincipal
,
KerberosTicket
.
class
);
nul
l
,
clientPrincipal
,
KerberosTicket
.
class
);
}
return
ticket
;
}
...
...
src/share/classes/sun/security/krb5/Credentials.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -56,13 +56,23 @@ public class Credentials {
KerberosTime
endTime
;
KerberosTime
renewTill
;
HostAddresses
cAddr
;
EncryptionKey
serviceKey
;
AuthorizationData
authzData
;
private
static
boolean
DEBUG
=
Krb5
.
DEBUG
;
private
static
CredentialsCache
cache
;
static
boolean
alreadyLoaded
=
false
;
private
static
boolean
alreadyTried
=
false
;
private
Credentials
proxy
=
null
;
public
Credentials
getProxy
()
{
return
proxy
;
}
public
Credentials
setProxy
(
Credentials
proxy
)
{
this
.
proxy
=
proxy
;
return
this
;
}
// Read native ticket with session key type in the given list
private
static
native
Credentials
acquireDefaultNativeCreds
(
int
[]
eTypes
);
...
...
@@ -336,20 +346,19 @@ public class Credentials {
return
null
;
}
sun
.
security
.
krb5
.
internal
.
ccache
.
Credentials
tgtCred
=
ccache
.
getDefaultCreds
();
Credentials
tgtCred
=
ccache
.
getInitialCreds
();
if
(
tgtCred
==
null
)
{
return
null
;
}
if
(
EType
.
isSupported
(
tgtCred
.
getEType
()))
{
return
tgtCred
.
setKrbCreds
()
;
if
(
EType
.
isSupported
(
tgtCred
.
key
.
getEType
()))
{
return
tgtCred
;
}
else
{
if
(
DEBUG
)
{
System
.
out
.
println
(
">>> unsupported key type found the default TGT: "
+
tgtCred
.
getEType
());
tgtCred
.
key
.
getEType
());
}
return
null
;
}
...
...
@@ -384,20 +393,19 @@ public class Credentials {
cache
=
CredentialsCache
.
getInstance
();
}
if
(
cache
!=
null
)
{
sun
.
security
.
krb5
.
internal
.
ccache
.
Credentials
temp
=
cache
.
getDefaultCreds
();
Credentials
temp
=
cache
.
getInitialCreds
();
if
(
temp
!=
null
)
{
if
(
DEBUG
)
{
System
.
out
.
println
(
">>> KrbCreds found the default ticket"
+
" granting ticket in credential cache."
);
}
if
(
EType
.
isSupported
(
temp
.
getEType
()))
{
result
=
temp
.
setKrbCreds
()
;
if
(
EType
.
isSupported
(
temp
.
key
.
getEType
()))
{
result
=
temp
;
}
else
{
if
(
DEBUG
)
{
System
.
out
.
println
(
">>> unsupported key type found the default TGT: "
+
temp
.
getEType
());
temp
.
key
.
getEType
());
}
}
}
...
...
@@ -474,10 +482,6 @@ public class Credentials {
return
cache
;
}
public
EncryptionKey
getServiceKey
()
{
return
serviceKey
;
}
/*
* Prints out debug info.
*/
...
...
src/share/classes/sun/security/krb5/JavaxSecurityAuthKerberosAccess.java
浏览文件 @
a495795c
/*
* Copyright (c) 2011, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, 201
9
, 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
...
...
@@ -25,9 +25,8 @@
package
sun.security.krb5
;
import
javax.security.auth.kerberos.KerberosTicket
;
import
javax.security.auth.kerberos.KeyTab
;
import
sun.security.krb5.EncryptionKey
;
import
sun.security.krb5.PrincipalName
;
/**
* An unsafe tunnel to get non-public access to classes in the
...
...
@@ -39,4 +38,14 @@ public interface JavaxSecurityAuthKerberosAccess {
*/
public
sun
.
security
.
krb5
.
internal
.
ktab
.
KeyTab
keyTabTakeSnapshot
(
KeyTab
ktab
);
/**
* Returns the proxy for a KerberosTicket.
*/
public
KerberosTicket
kerberosTicketGetProxy
(
KerberosTicket
t
);
/**
* Sets the proxy for a KerberosTicket.
*/
public
void
kerberosTicketSetProxy
(
KerberosTicket
t
,
KerberosTicket
p
);
}
src/share/classes/sun/security/krb5/Realm.java
浏览文件 @
a495795c
...
...
@@ -188,7 +188,6 @@ public class Realm implements Cloneable {
return
false
;
for
(
int
i
=
0
;
i
<
name
.
length
();
i
++)
{
if
(
name
.
charAt
(
i
)
==
'/'
||
name
.
charAt
(
i
)
==
':'
||
name
.
charAt
(
i
)
==
'\0'
)
{
return
false
;
}
...
...
src/share/classes/sun/security/krb5/internal/ccache/CCacheInputStream.java
浏览文件 @
a495795c
...
...
@@ -325,16 +325,13 @@ public class CCacheInputStream extends KrbDataInputStream implements FileCCacheC
}
/**
* Reads the next cred in stream.
* @return the next cred
, null if ticket or second_ticket
unparseable.
* Reads the next cred
or config entry
in stream.
* @return the next cred
or config entry, null if data
unparseable.
*
* Note: MIT krb5 1.8.1 might generate a config entry with server principal
* X-CACHECONF:/krb5_ccache_conf_data/fast_avail/krbtgt/REALM@REALM. The
* entry is used by KDC to inform the client that it support certain
* features. Its ticket is not a valid krb5 ticket and thus this method
* returns null.
* When data is unparseable, this method makes sure the correct number of
* bytes are consumed so it's safe to start reading the next element.
*/
Credentials
readCred
(
int
version
)
throws
IOException
,
RealmException
,
KrbApErrException
,
Asn1Exception
{
Object
readCred
(
int
version
)
throws
IOException
,
RealmException
,
KrbApErrException
,
Asn1Exception
{
PrincipalName
cpname
=
null
;
try
{
cpname
=
readPrincipal
(
version
);
...
...
@@ -396,12 +393,23 @@ public class CCacheInputStream extends KrbDataInputStream implements FileCCacheC
}
try
{
if
(
spname
.
getRealmString
().
equals
(
"X-CACHECONF:"
))
{
String
[]
nameParts
=
spname
.
getNameStrings
();
if
(
nameParts
[
0
].
equals
(
"krb5_ccache_conf_data"
))
{
return
new
CredentialsCache
.
ConfigEntry
(
nameParts
[
1
],
nameParts
.
length
>
2
?
new
PrincipalName
(
nameParts
[
2
])
:
null
,
ticketData
);
}
}
return
new
Credentials
(
cpname
,
spname
,
key
,
authtime
,
starttime
,
endtime
,
renewTill
,
skey
,
tFlags
,
addrs
,
auData
,
ticketData
!=
null
?
new
Ticket
(
ticketData
)
:
null
,
ticketData2
!=
null
?
new
Ticket
(
ticketData2
)
:
null
);
endtime
,
renewTill
,
skey
,
tFlags
,
addrs
,
auData
,
ticketData
!=
null
?
new
Ticket
(
ticketData
)
:
null
,
ticketData2
!=
null
?
new
Ticket
(
ticketData2
)
:
null
);
}
catch
(
Exception
e
)
{
// If any of new Ticket(*) fails.
if
(
DEBUG
)
{
e
.
printStackTrace
(
System
.
out
);
}
return
null
;
}
}
...
...
src/share/classes/sun/security/krb5/internal/ccache/CCacheOutputStream.java
浏览文件 @
a495795c
...
...
@@ -31,7 +31,6 @@
package
sun.security.krb5.internal.ccache
;
import
java.io.IOException
;
import
java.io.FileOutputStream
;
import
java.io.OutputStream
;
import
sun.security.krb5.internal.util.KrbDataOutputStream
;
import
sun.security.krb5.*
;
...
...
@@ -98,6 +97,21 @@ public class CCacheOutputStream extends KrbDataOutputStream implements FileCCach
writeTicket
(
creds
.
secondTicket
);
}
public
void
addConfigEntry
(
PrincipalName
cname
,
CredentialsCache
.
ConfigEntry
e
)
throws
IOException
{
cname
.
writePrincipal
(
this
);
e
.
getSName
().
writePrincipal
(
this
);
write16
(
0
);
write16
(
0
);
write32
(
0
);
write32
(
0
);
write32
(
0
);
write32
(
0
);
write32
(
0
);
write8
(
0
);
write32
(
0
);
write32
(
0
);
write32
(
0
);
write32
(
e
.
getData
().
length
);
write
(
e
.
getData
());
write32
(
0
);
}
void
writeTicket
(
Ticket
t
)
throws
IOException
,
Asn1Exception
{
if
(
t
==
null
)
{
write32
(
0
);
...
...
src/share/classes/sun/security/krb5/internal/ccache/Credentials.java
浏览文件 @
a495795c
...
...
@@ -169,6 +169,18 @@ public class Credentials {
return
sname
;
}
public
Ticket
getTicket
()
throws
RealmException
{
return
ticket
;
}
public
PrincipalName
getServicePrincipal2
()
throws
RealmException
{
return
secondTicket
==
null
?
null
:
secondTicket
.
sname
;
}
public
PrincipalName
getClientPrincipal
()
throws
RealmException
{
return
cname
;
}
public
sun
.
security
.
krb5
.
Credentials
setKrbCreds
()
{
// Note: We will not pass authorizationData to s.s.k.Credentials. The
// field in that class will be passed to Krb5Context as the return
...
...
@@ -208,7 +220,15 @@ public class Credentials {
return
key
.
getEType
();
}
public
EncryptionKey
getKey
()
{
return
key
;
}
public
int
getTktEType
()
{
return
ticket
.
encPart
.
getEType
();
}
public
int
getTktEType2
()
{
return
(
secondTicket
==
null
)
?
0
:
secondTicket
.
encPart
.
getEType
();
}
}
src/share/classes/sun/security/krb5/internal/ccache/CredentialsCache.java
浏览文件 @
a495795c
...
...
@@ -32,14 +32,9 @@ package sun.security.krb5.internal.ccache;
import
sun.security.krb5.*
;
import
sun.security.krb5.internal.*
;
import
java.util.StringTokenizer
;
import
java.util.
Vector
;
import
java.util.
List
;
import
java.io.IOException
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileOutputStream
;
import
java.io.BufferedReader
;
import
java.io.InputStreamReader
;
/**
* CredentialsCache stores credentials(tickets, session keys, etc) in a semi-permanent store
...
...
@@ -120,6 +115,62 @@ public abstract class CredentialsCache {
public
abstract
void
save
()
throws
IOException
,
KrbException
;
public
abstract
Credentials
[]
getCredsList
();
public
abstract
Credentials
getDefaultCreds
();
public
abstract
sun
.
security
.
krb5
.
Credentials
getInitialCreds
();
public
abstract
Credentials
getCreds
(
PrincipalName
sname
);
public
abstract
Credentials
getCreds
(
LoginOptions
options
,
PrincipalName
sname
);
public
abstract
void
addConfigEntry
(
ConfigEntry
e
);
public
abstract
List
<
ConfigEntry
>
getConfigEntries
();
public
ConfigEntry
getConfigEntry
(
String
name
)
{
List
<
ConfigEntry
>
entries
=
getConfigEntries
();
if
(
entries
!=
null
)
{
for
(
ConfigEntry
e
:
entries
)
{
if
(
e
.
getName
().
equals
(
name
))
{
return
e
;
}
}
}
return
null
;
}
public
static
class
ConfigEntry
{
public
ConfigEntry
(
String
name
,
PrincipalName
princ
,
byte
[]
data
)
{
this
.
name
=
name
;
this
.
princ
=
princ
;
this
.
data
=
data
;
}
private
final
String
name
;
private
final
PrincipalName
princ
;
private
final
byte
[]
data
;
// not worth cloning
public
String
getName
()
{
return
name
;
}
public
PrincipalName
getPrinc
()
{
return
princ
;
}
public
byte
[]
getData
()
{
return
data
;
}
@Override
public
String
toString
()
{
return
name
+
(
princ
!=
null
?
(
"."
+
princ
)
:
""
)
+
": "
+
new
String
(
data
);
}
public
PrincipalName
getSName
()
{
try
{
return
new
PrincipalName
(
"krb5_ccache_conf_data/"
+
name
+
(
princ
!=
null
?
(
"/"
+
princ
)
:
""
)
+
"@X-CACHECONF:"
);
}
catch
(
RealmException
e
)
{
throw
new
AssertionError
(
e
);
}
}
}
}
src/share/classes/sun/security/krb5/internal/ccache/FileCredentialsCache.java
浏览文件 @
a495795c
/*
* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 201
9
, 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
...
...
@@ -35,6 +35,12 @@ package sun.security.krb5.internal.ccache;
import
sun.security.krb5.*
;
import
sun.security.krb5.internal.*
;
import
sun.security.util.SecurityProperties
;
import
java.nio.charset.StandardCharsets
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
java.util.StringTokenizer
;
import
java.util.Vector
;
import
java.io.IOException
;
...
...
@@ -182,9 +188,13 @@ public class FileCredentialsCache extends CredentialsCache
primaryPrincipal
=
p
;
credentialsList
=
new
Vector
<
Credentials
>();
while
(
cis
.
available
()
>
0
)
{
Credentials
cred
=
cis
.
readCred
(
version
);
Object
cred
=
cis
.
readCred
(
version
);
if
(
cred
!=
null
)
{
credentialsList
.
addElement
(
cred
);
if
(
cred
instanceof
Credentials
)
{
credentialsList
.
addElement
((
Credentials
)
cred
);
}
else
{
addConfigEntry
((
CredentialsCache
.
ConfigEntry
)
cred
);
}
}
}
}
...
...
@@ -255,6 +265,9 @@ public class FileCredentialsCache extends CredentialsCache
cos
.
addCreds
(
tmp
[
i
]);
}
}
for
(
ConfigEntry
e
:
getConfigEntries
())
{
cos
.
addConfigEntry
(
primaryPrincipal
,
e
);
}
}
}
...
...
@@ -307,6 +320,17 @@ public class FileCredentialsCache extends CredentialsCache
}
}
private
List
<
ConfigEntry
>
configEntries
=
new
ArrayList
<>();
@Override
public
void
addConfigEntry
(
ConfigEntry
e
)
{
configEntries
.
add
(
e
);
}
@Override
public
List
<
ConfigEntry
>
getConfigEntries
()
{
return
Collections
.
unmodifiableList
(
configEntries
);
}
/**
* Gets a credentials for a specified service.
...
...
@@ -326,6 +350,81 @@ public class FileCredentialsCache extends CredentialsCache
return
null
;
}
public
sun
.
security
.
krb5
.
Credentials
getInitialCreds
()
{
Credentials
defaultCreds
=
getDefaultCreds
();
if
(
defaultCreds
==
null
)
{
return
null
;
}
sun
.
security
.
krb5
.
Credentials
tgt
=
defaultCreds
.
setKrbCreds
();
CredentialsCache
.
ConfigEntry
entry
=
getConfigEntry
(
"proxy_impersonator"
);
if
(
entry
==
null
)
{
if
(
DEBUG
)
{
System
.
out
.
println
(
"get normal credential"
);
}
return
tgt
;
}
boolean
force
;
String
prop
=
SecurityProperties
.
privilegedGetOverridable
(
"jdk.security.krb5.default.initiate.credential"
);
if
(
prop
==
null
)
{
prop
=
"always-impersonate"
;
}
switch
(
prop
)
{
case
"no-impersonate"
:
// never try impersonation
if
(
DEBUG
)
{
System
.
out
.
println
(
"get normal credential"
);
}
return
tgt
;
case
"try-impersonate"
:
force
=
false
;
break
;
case
"always-impersonate"
:
force
=
true
;
break
;
default
:
throw
new
RuntimeException
(
"Invalid jdk.security.krb5.default.initiate.credential"
);
}
try
{
PrincipalName
service
=
new
PrincipalName
(
new
String
(
entry
.
getData
(),
StandardCharsets
.
UTF_8
));
if
(!
tgt
.
getClient
().
equals
(
service
))
{
if
(
DEBUG
)
{
System
.
out
.
println
(
"proxy_impersonator does not match service name"
);
}
return
force
?
null
:
tgt
;
}
PrincipalName
client
=
getPrimaryPrincipal
();
Credentials
proxy
=
null
;
for
(
Credentials
c
:
getCredsList
())
{
if
(
c
.
getClientPrincipal
().
equals
(
client
)
&&
c
.
getServicePrincipal
().
equals
(
service
))
{
proxy
=
c
;
break
;
}
}
if
(
proxy
==
null
)
{
if
(
DEBUG
)
{
System
.
out
.
println
(
"Cannot find evidence ticket in ccache"
);
}
return
force
?
null
:
tgt
;
}
if
(
DEBUG
)
{
System
.
out
.
println
(
"Get proxied credential"
);
}
return
tgt
.
setProxy
(
proxy
.
setKrbCreds
());
}
catch
(
KrbException
e
)
{
if
(
DEBUG
)
{
System
.
out
.
println
(
"Impersonation with ccache failed"
);
}
return
force
?
null
:
tgt
;
}
}
public
Credentials
getDefaultCreds
()
{
Credentials
[]
list
=
getCredsList
();
if
(
list
==
null
)
{
...
...
src/share/classes/sun/security/ssl/EllipticCurvesExtension.java
浏览文件 @
a495795c
...
...
@@ -168,20 +168,11 @@ final class EllipticCurvesExtension extends HelloExtension {
"contains no supported elliptic curves"
);
}
}
else
{
// default curves
int
[]
ids
;
if
(
requireFips
)
{
ids
=
new
int
[]
{
// only NIST curves in FIPS mode
23
,
24
,
25
,
9
,
10
,
11
,
12
,
13
,
14
,
};
}
else
{
ids
=
new
int
[]
{
// NIST curves first
23
,
24
,
25
,
9
,
10
,
11
,
12
,
13
,
14
,
// non-NIST curves
22
,
};
}
int
[]
ids
=
new
int
[]
{
// The three widely-used NIST curves:
// secp256r1, secp384r1 & secp521r1
23
,
24
,
25
};
idList
=
new
ArrayList
<>(
ids
.
length
);
for
(
int
curveId
:
ids
)
{
...
...
src/share/classes/sun/security/util/SecurityConstants.java
浏览文件 @
a495795c
/*
* Copyright (c) 2003, 201
3
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 201
9
, 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
...
...
@@ -176,6 +176,10 @@ public final class SecurityConstants {
public
static
final
NetPermission
GET_RESPONSECACHE_PERMISSION
=
new
NetPermission
(
"getResponseCache"
);
// java.net.ServerSocket, java.net.Socket
public
static
final
NetPermission
SET_SOCKETIMPL_PERMISSION
=
new
NetPermission
(
"setSocketImpl"
);
// java.lang.SecurityManager, sun.applet.AppletPanel, sun.misc.Launcher
public
static
final
RuntimePermission
CREATE_CLASSLOADER_PERMISSION
=
new
RuntimePermission
(
"createClassLoader"
);
...
...
src/share/classes/sun/security/util/SecurityProperties.java
0 → 100644
浏览文件 @
a495795c
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018 SAP SE. 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package
sun.security.util
;
import
java.security.AccessController
;
import
java.security.PrivilegedAction
;
import
java.security.Security
;
public
class
SecurityProperties
{
/**
* Returns the value of the security property propName, which can be overridden
* by a system property of the same name
*
* @param propName the name of the system or security property
* @return the value of the system or security property
*/
public
static
String
privilegedGetOverridable
(
String
propName
)
{
if
(
System
.
getSecurityManager
()
==
null
)
{
return
getOverridableProperty
(
propName
);
}
else
{
return
AccessController
.
doPrivileged
((
PrivilegedAction
<
String
>)
()
->
getOverridableProperty
(
propName
));
}
}
private
static
String
getOverridableProperty
(
String
propName
)
{
String
val
=
System
.
getProperty
(
propName
);
if
(
val
==
null
)
{
return
Security
.
getProperty
(
propName
);
}
else
{
return
val
;
}
}
/**
* Returns true in case the system or security property "jdk.includeInExceptions"
* contains the category refName
*
* @param refName the category to check
* @return true in case the system or security property "jdk.includeInExceptions"
* contains refName, false otherwise
*/
public
static
boolean
includedInExceptions
(
String
refName
)
{
String
val
=
privilegedGetOverridable
(
"jdk.includeInExceptions"
);
if
(
val
==
null
)
{
return
false
;
}
String
[]
tokens
=
val
.
split
(
","
);
for
(
String
token
:
tokens
)
{
token
=
token
.
trim
();
if
(
token
.
equalsIgnoreCase
(
refName
))
{
return
true
;
}
}
return
false
;
}
}
src/share/classes/sun/util/calendar/ZoneInfoFile.java
浏览文件 @
a495795c
...
...
@@ -573,12 +573,8 @@ public final class ZoneInfoFile {
// we can then pass in the dom = -1, dow > 0 into ZoneInfo
//
// hacking, assume the >=24 is the result of ZRB optimization for
// "last", it works for now. From tzdata2019a this hacking
// will not work for Asia/Gaza and Asia/Hebron which follow
// Palestine DST rules.
if
(
dom
<
0
||
dom
>=
24
&&
!(
zoneId
.
equals
(
"Asia/Gaza"
)
||
zoneId
.
equals
(
"Asia/Hebron"
)))
{
// "last", it works for now.
if
(
dom
<
0
||
dom
>=
24
)
{
params
[
1
]
=
-
1
;
params
[
2
]
=
toCalendarDOW
[
dow
];
}
else
{
...
...
@@ -613,8 +609,6 @@ public final class ZoneInfoFile {
dstSavings
=
(
startRule
.
offsetAfter
-
startRule
.
offsetBefore
)
*
1000
;
// Note: known mismatching -> Asia/Amman
// Asia/Gaza
// Asia/Hebron
// ZoneInfo : startDayOfWeek=5 <= Thursday
// startTime=86400000 <= 24 hours
// This: startDayOfWeek=6
...
...
@@ -623,18 +617,14 @@ public final class ZoneInfoFile {
// its endDayOfWeek and endTime
// Below is the workarounds, it probably slows down everyone a little
if
(
params
[
2
]
==
6
&&
params
[
3
]
==
0
&&
(
zoneId
.
equals
(
"Asia/Amman"
)
||
zoneId
.
equals
(
"Asia/Gaza"
)
||
zoneId
.
equals
(
"Asia/Hebron"
)))
{
(
zoneId
.
equals
(
"Asia/Amman"
)))
{
params
[
2
]
=
5
;
params
[
3
]
=
86400000
;
}
// Additional check for startDayOfWeek=6 and starTime=86400000
// is needed for Asia/Amman;
Asia/Gasa and Asia/Hebron
// is needed for Asia/Amman;
if
(
params
[
2
]
==
7
&&
params
[
3
]
==
0
&&
(
zoneId
.
equals
(
"Asia/Amman"
)
||
zoneId
.
equals
(
"Asia/Gaza"
)
||
zoneId
.
equals
(
"Asia/Hebron"
)))
{
(
zoneId
.
equals
(
"Asia/Amman"
)))
{
params
[
2
]
=
6
;
// Friday
params
[
3
]
=
86400000
;
// 24h
}
...
...
src/share/lib/security/java.security-aix
浏览文件 @
a495795c
...
...
@@ -1005,3 +1005,32 @@ jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
# if this property is not enabled.
#
jdk.security.caDistrustPolicies=SYMANTEC_TLS
#
# Policies for the proxy_impersonator Kerberos ccache configuration entry
#
# The proxy_impersonator ccache configuration entry indicates that the ccache
# is a synthetic delegated credential for use with S4U2Proxy by an intermediate
# server. The ccache file should also contain the TGT of this server and
# an evidence ticket from the default principal of the ccache to this server.
#
# This security property determines how Java uses this configuration entry.
# There are 3 possible values:
#
# no-impersonate - Ignore this configuration entry, and always act as
# the owner of the TGT (if it exists).
#
# try-impersonate - Try impersonation when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# fallback to no-impersonate.
#
# always-impersonate - Always impersonate when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# no initial credential is read from the ccache.
#
# The default value is "always-impersonate".
#
# If a system property of the same name is also specified, it supersedes the
# security property value defined here.
#
#jdk.security.krb5.default.initiate.credential=always-impersonate
\ No newline at end of file
src/share/lib/security/java.security-linux
浏览文件 @
a495795c
...
...
@@ -1011,3 +1011,32 @@ jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
# if this property is not enabled.
#
jdk.security.caDistrustPolicies=SYMANTEC_TLS
#
# Policies for the proxy_impersonator Kerberos ccache configuration entry
#
# The proxy_impersonator ccache configuration entry indicates that the ccache
# is a synthetic delegated credential for use with S4U2Proxy by an intermediate
# server. The ccache file should also contain the TGT of this server and
# an evidence ticket from the default principal of the ccache to this server.
#
# This security property determines how Java uses this configuration entry.
# There are 3 possible values:
#
# no-impersonate - Ignore this configuration entry, and always act as
# the owner of the TGT (if it exists).
#
# try-impersonate - Try impersonation when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# fallback to no-impersonate.
#
# always-impersonate - Always impersonate when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# no initial credential is read from the ccache.
#
# The default value is "always-impersonate".
#
# If a system property of the same name is also specified, it supersedes the
# security property value defined here.
#
#jdk.security.krb5.default.initiate.credential=always-impersonate
\ No newline at end of file
src/share/lib/security/java.security-macosx
浏览文件 @
a495795c
...
...
@@ -1009,3 +1009,32 @@ jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
# if this property is not enabled.
#
jdk.security.caDistrustPolicies=SYMANTEC_TLS
#
# Policies for the proxy_impersonator Kerberos ccache configuration entry
#
# The proxy_impersonator ccache configuration entry indicates that the ccache
# is a synthetic delegated credential for use with S4U2Proxy by an intermediate
# server. The ccache file should also contain the TGT of this server and
# an evidence ticket from the default principal of the ccache to this server.
#
# This security property determines how Java uses this configuration entry.
# There are 3 possible values:
#
# no-impersonate - Ignore this configuration entry, and always act as
# the owner of the TGT (if it exists).
#
# try-impersonate - Try impersonation when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# fallback to no-impersonate.
#
# always-impersonate - Always impersonate when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# no initial credential is read from the ccache.
#
# The default value is "always-impersonate".
#
# If a system property of the same name is also specified, it supersedes the
# security property value defined here.
#
#jdk.security.krb5.default.initiate.credential=always-impersonate
\ No newline at end of file
src/share/lib/security/java.security-solaris
浏览文件 @
a495795c
...
...
@@ -1008,3 +1008,32 @@ jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
# if this property is not enabled.
#
jdk.security.caDistrustPolicies=SYMANTEC_TLS
#
# Policies for the proxy_impersonator Kerberos ccache configuration entry
#
# The proxy_impersonator ccache configuration entry indicates that the ccache
# is a synthetic delegated credential for use with S4U2Proxy by an intermediate
# server. The ccache file should also contain the TGT of this server and
# an evidence ticket from the default principal of the ccache to this server.
#
# This security property determines how Java uses this configuration entry.
# There are 3 possible values:
#
# no-impersonate - Ignore this configuration entry, and always act as
# the owner of the TGT (if it exists).
#
# try-impersonate - Try impersonation when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# fallback to no-impersonate.
#
# always-impersonate - Always impersonate when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# no initial credential is read from the ccache.
#
# The default value is "always-impersonate".
#
# If a system property of the same name is also specified, it supersedes the
# security property value defined here.
#
#jdk.security.krb5.default.initiate.credential=always-impersonate
\ No newline at end of file
src/share/lib/security/java.security-windows
浏览文件 @
a495795c
...
...
@@ -1009,3 +1009,32 @@ jceks.key.serialFilter = java.lang.Enum;java.security.KeyRep;\
# if this property is not enabled.
#
jdk.security.caDistrustPolicies=SYMANTEC_TLS
#
# Policies for the proxy_impersonator Kerberos ccache configuration entry
#
# The proxy_impersonator ccache configuration entry indicates that the ccache
# is a synthetic delegated credential for use with S4U2Proxy by an intermediate
# server. The ccache file should also contain the TGT of this server and
# an evidence ticket from the default principal of the ccache to this server.
#
# This security property determines how Java uses this configuration entry.
# There are 3 possible values:
#
# no-impersonate - Ignore this configuration entry, and always act as
# the owner of the TGT (if it exists).
#
# try-impersonate - Try impersonation when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# fallback to no-impersonate.
#
# always-impersonate - Always impersonate when this configuration entry exists.
# If no matching TGT or evidence ticket is found,
# no initial credential is read from the ccache.
#
# The default value is "always-impersonate".
#
# If a system property of the same name is also specified, it supersedes the
# security property value defined here.
#
#jdk.security.krb5.default.initiate.credential=always-impersonate
\ No newline at end of file
src/share/native/sun/font/DrawGlyphList.c
浏览文件 @
a495795c
...
...
@@ -532,6 +532,12 @@ GlyphBlitVector* setupLCDBlitVector(JNIEnv *env, jobject glyphlist) {
*/
if
(
subPixPos
&&
len
>
0
)
{
ginfo
=
(
GlyphInfo
*
)
imagePtrs
[
0
];
if
(
ginfo
==
NULL
)
{
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
glyphImages
,
imagePtrs
,
JNI_ABORT
);
free
(
gbv
);
return
(
GlyphBlitVector
*
)
NULL
;
}
/* rowBytes==width tests if its a B&W or LCD glyph */
if
(
ginfo
->
width
==
ginfo
->
rowBytes
)
{
subPixPos
=
JNI_FALSE
;
...
...
@@ -561,6 +567,12 @@ GlyphBlitVector* setupLCDBlitVector(JNIEnv *env, jobject glyphlist) {
jfloat
px
,
py
;
ginfo
=
(
GlyphInfo
*
)
imagePtrs
[
g
];
if
(
ginfo
==
NULL
)
{
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
glyphImages
,
imagePtrs
,
JNI_ABORT
);
free
(
gbv
);
return
(
GlyphBlitVector
*
)
NULL
;
}
gbv
->
glyphs
[
g
].
glyphInfo
=
ginfo
;
gbv
->
glyphs
[
g
].
pixels
=
ginfo
->
image
;
gbv
->
glyphs
[
g
].
width
=
ginfo
->
width
;
...
...
@@ -636,6 +648,12 @@ GlyphBlitVector* setupLCDBlitVector(JNIEnv *env, jobject glyphlist) {
}
else
{
for
(
g
=
0
;
g
<
len
;
g
++
)
{
ginfo
=
(
GlyphInfo
*
)
imagePtrs
[
g
];
if
(
ginfo
==
NULL
)
{
(
*
env
)
->
ReleasePrimitiveArrayCritical
(
env
,
glyphImages
,
imagePtrs
,
JNI_ABORT
);
free
(
gbv
);
return
(
GlyphBlitVector
*
)
NULL
;
}
gbv
->
glyphs
[
g
].
glyphInfo
=
ginfo
;
gbv
->
glyphs
[
g
].
pixels
=
ginfo
->
image
;
gbv
->
glyphs
[
g
].
width
=
ginfo
->
width
;
...
...
src/share/native/sun/font/freetypeScaler.c
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/AlternateSubstSubtables.cpp
浏览文件 @
a495795c
...
...
@@ -42,6 +42,10 @@ U_NAMESPACE_BEGIN
le_uint32
AlternateSubstitutionSubtable
::
process
(
const
LEReferenceTo
<
AlternateSubstitutionSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
// NOTE: For now, we'll just pick the first alternative...
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
...
...
src/share/native/sun/font/layout/CursiveAttachmentSubtables.cpp
浏览文件 @
a495795c
...
...
@@ -41,6 +41,10 @@ U_NAMESPACE_BEGIN
le_uint32
CursiveAttachmentSubtable
::
process
(
const
LEReferenceTo
<
CursiveAttachmentSubtable
>
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyphID
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyphID
,
success
);
le_uint16
eeCount
=
SWAPW
(
entryExitCount
);
...
...
src/share/native/sun/font/layout/LigatureSubstSubtables.cpp
浏览文件 @
a495795c
...
...
@@ -42,6 +42,10 @@ U_NAMESPACE_BEGIN
le_uint32
LigatureSubstitutionSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
LEErrorCode
&
success
,
const
LEGlyphFilter
*
filter
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
glyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
coverageIndex
=
getGlyphCoverage
(
base
,
glyph
,
success
);
...
...
src/share/native/sun/font/layout/MarkToBasePosnSubtables.cpp
浏览文件 @
a495795c
...
...
@@ -53,6 +53,10 @@ LEGlyphID MarkToBasePositioningSubtable::findBaseGlyph(GlyphIterator *glyphItera
le_int32
MarkToBasePositioningSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
markGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
markCoverage
=
getGlyphCoverage
(
base
,
(
LEGlyphID
)
markGlyph
,
success
);
...
...
src/share/native/sun/font/layout/MarkToLigaturePosnSubtables.cpp
浏览文件 @
a495795c
...
...
@@ -52,6 +52,10 @@ LEGlyphID MarkToLigaturePositioningSubtable::findLigatureGlyph(GlyphIterator *gl
le_int32
MarkToLigaturePositioningSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
markGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
markCoverage
=
getGlyphCoverage
(
base
,
(
LEGlyphID
)
markGlyph
,
success
);
...
...
src/share/native/sun/font/layout/MarkToMarkPosnSubtables.cpp
浏览文件 @
a495795c
...
...
@@ -53,6 +53,10 @@ LEGlyphID MarkToMarkPositioningSubtable::findMark2Glyph(GlyphIterator *glyphIter
le_int32
MarkToMarkPositioningSubtable
::
process
(
const
LETableReference
&
base
,
GlyphIterator
*
glyphIterator
,
const
LEFontInstance
*
fontInstance
,
LEErrorCode
&
success
)
const
{
if
(
LE_FAILURE
(
success
))
{
return
0
;
}
LEGlyphID
markGlyph
=
glyphIterator
->
getCurrGlyphID
();
le_int32
markCoverage
=
getGlyphCoverage
(
base
,
(
LEGlyphID
)
markGlyph
,
success
);
...
...
src/share/native/sun/font/layout/MorphTables.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/PairPositioningSubtables.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SegmentArrayProcessor.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SegmentArrayProcessor2.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SegmentSingleProcessor.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SegmentSingleProcessor2.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SimpleArrayProcessor.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SinglePositioningSubtables.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SingleSubstitutionSubtables.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/font/layout/SingleTableProcessor.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/java2d/loops/GraphicsPrimitiveMgr.h
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/java2d/loops/LoopMacros.h
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/java2d/opengl/OGLBlitLoops.c
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/share/native/sun/security/krb5/nativeccache.c
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/classes/sun/font/XRGlyphCache.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/classes/sun/font/XRTextRenderer.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/classes/sun/nio/fs/BsdFileStore.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/classes/sun/nio/fs/BsdNativeDispatcher.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/classes/sun/nio/fs/UnixNativeDispatcher.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/native/sun/java2d/x11/X11FontScaler_md.c
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/native/sun/nio/fs/BsdNativeDispatcher.c
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/solaris/native/sun/security/smartcardio/MUSCLE/COPYING
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/windows/classes/java/lang/ProcessImpl.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/windows/classes/sun/security/krb5/internal/tools/Klist.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/windows/native/sun/java2d/d3d/D3DContext.cpp
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
src/windows/native/sun/net/www/protocol/http/ntlm/NTLMAuthentication.c
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/awt/FontClass/FontSize1Test.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/awt/image/DrawImage/IncorrectManagedImageSourceOffset.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/awt/image/DrawImage/IncorrectUnmanagedImageSourceOffset.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/awt/image/DrawImage/SimpleManagedImage.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/awt/image/DrawImage/SimpleUnmanagedImage.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/io/FilePermission/Invalid.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/rmi/testlibrary/TestSocketFactory.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/java/util/TimeZone/TimeZoneTest.java
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/lib/testlibrary/jdk/testlibrary/net/URIBuilder.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
test/sun/net/www/protocol/http/TestTransparentNTLM.java
0 → 100644
浏览文件 @
a495795c
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录