@@ -74,6 +74,11 @@ public abstract class PKCS11Test {
74
74
private static final String PKCS11_REL_PATH = "sun/security/pkcs11" ;
75
75
private static final char [] HEX_DIGITS = "0123456789abcdef" .toCharArray ();
76
76
77
+ // Version of the NSS artifact. This coincides with the version of
78
+ // the NSS version
79
+ private static final String NSS_BUNDLE_VERSION = "3.91" ;
80
+ private static final String NSSLIB = "jpg.tests.jdk.nsslib" ;
81
+
77
82
static double nss_version = -1 ;
78
83
static ECCState nss_ecc_status = ECCState .Basic ;
79
84
@@ -744,18 +749,21 @@ static byte[] generateData(int length) {
744
749
745
750
private static String fetchNssLib (String osId ) {
746
751
switch (osId ) {
747
- case "Windows-x86-32" :
748
- return fetchNssLib (WINDOWS_X86 .class );
749
-
750
752
case "Windows-amd64-64" :
751
753
return fetchNssLib (WINDOWS_X64 .class );
752
754
753
755
case "MacOSX-x86_64-64" :
754
756
return fetchNssLib (MACOSX_X64 .class );
755
757
758
+ case "MacOSX-aarch64-64" :
759
+ return fetchNssLib (MACOSX_AARCH64 .class );
760
+
756
761
case "Linux-amd64-64" :
757
762
return fetchNssLib (LINUX_X64 .class );
758
763
764
+ case "Linux-aarch64-64" :
765
+ return fetchNssLib (LINUX_AARCH64 .class );
766
+
759
767
default :
760
768
return null ;
761
769
}
@@ -765,8 +773,8 @@ private static String fetchNssLib(Class<?> clazz) {
765
773
String path = null ;
766
774
try {
767
775
path = ArtifactResolver .resolve (clazz ).entrySet ().stream ()
768
- .findAny ().get ().getValue () + File .separator + "nsslib "
769
- + File .separator ;
776
+ .findAny ().get ().getValue () + File .separator + "nss "
777
+ + File .separator + "lib" + File . separator ;
770
778
} catch (ArtifactResolverException e ) {
771
779
Throwable cause = e .getCause ();
772
780
if (cause == null ) {
@@ -868,34 +876,43 @@ protected void copyNssCertKeyToClassesDir(Path dbPath) throws IOException {
868
876
public static enum ECCState {None , Basic , Extended }
869
877
870
878
@ Artifact (
871
- organization = "jpg.tests.jdk.nsslib" ,
879
+ organization = NSSLIB ,
872
880
name = "nsslib-windows_x64" ,
873
- revision = "3.46-VS2017" ,
881
+ revision = NSS_BUNDLE_VERSION ,
874
882
extension = "zip" )
875
883
private static class WINDOWS_X64 {
876
884
}
877
885
878
886
@ Artifact (
879
- organization = "jpg.tests.jdk.nsslib" ,
880
- name = "nsslib-windows_x86 " ,
881
- revision = "3.46-VS2017" ,
887
+ organization = NSSLIB ,
888
+ name = "nsslib-macosx_x64 " ,
889
+ revision = NSS_BUNDLE_VERSION ,
882
890
extension = "zip" )
883
- private static class WINDOWS_X86 {
891
+ private static class MACOSX_X64 {
884
892
}
885
893
886
894
@ Artifact (
887
- organization = "jpg.tests.jdk.nsslib" ,
888
- name = "nsslib-macosx_x64 " ,
889
- revision = "3.46" ,
895
+ organization = NSSLIB ,
896
+ name = "nsslib-macosx_aarch64 " ,
897
+ revision = NSS_BUNDLE_VERSION ,
890
898
extension = "zip" )
891
- private static class MACOSX_X64 {
899
+ private static class MACOSX_AARCH64 {
892
900
}
893
901
894
902
@ Artifact (
895
- organization = "jpg.tests.jdk.nsslib" ,
903
+ organization = NSSLIB ,
896
904
name = "nsslib-linux_x64" ,
897
- revision = "3.46" ,
905
+ revision = NSS_BUNDLE_VERSION ,
898
906
extension = "zip" )
899
907
private static class LINUX_X64 {
900
908
}
909
+
910
+ @ Artifact (
911
+ organization = NSSLIB ,
912
+ name = "nsslib-linux_aarch64" ,
913
+ revision = NSS_BUNDLE_VERSION ,
914
+ extension = "zip"
915
+ )
916
+ private static class LINUX_AARCH64 {
917
+ }
901
918
}
0 commit comments