Skip to content

Commit a8f7e0a

Browse files
author
Administrator
committed
Merge branch '1.78.1' into 'main'
1.78.1 See merge request root/bc-java!11
2 parents e6b4ba8 + ada71e4 commit a8f7e0a

File tree

28 files changed

+448
-373
lines changed

28 files changed

+448
-373
lines changed

bc-build.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# intended to hold user-specific settings that are *not* committed to
44
# the repository.
55

6-
release.suffix: 178
7-
release.name: 1.78
8-
release.version: 1.78
6+
release.suffix: 17801
7+
release.name: 1.78.1
8+
release.version: 1.78.1
99
release.debug: true
1010

1111
mail.jar.home: ./libs/javax.mail-1.4.7.jar

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ subprojects {
246246
}
247247

248248
tasks.withType(JavaCompile).configureEach {
249-
options.debug = true;
249+
options.debug = false;
250250
}
251251

252252
tasks.withType(Test).configureEach {

core/src/main/java/org/bouncycastle/asn1/x509/Extensions.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ else if (obj != null)
7171
private Extensions(
7272
ASN1Sequence seq)
7373
{
74-
if (seq.size() == 0)
75-
{
76-
throw new IllegalArgumentException("empty extension sequence found");
77-
}
74+
// it's tempting to check there's at least one entry in the sequence. Don't!
75+
// It turns out there's quite a few empty extension blocks out there...
7876

7977
Enumeration e = seq.getObjects();
8078

docs/releasenotes.html

Lines changed: 289 additions & 279 deletions
Large diffs are not rendered by default.

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
org.gradle.jvmargs=-Xmx2g
2-
version=1.78
2+
version=1.78.1
3+
maxVersion=1.79
34
org.gradle.java.installations.auto-detect=false
45
org.gradle.java.installations.auto-download=false
56
org.gradle.java.installations.fromEnv=BC_JDK8,BC_JDK11,BC_JDK17,BC_JDK21

jmail/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ jar {
8080
from sourceSets.java9.output
8181
}
8282
manifest.attributes('Multi-Release': 'true')
83+
manifest.attributes('Bundle-Name': 'bcjmail')
84+
manifest.attributes('Bundle-SymbolicName': 'bcjmail')
8385
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
8486
manifest.attributes('Export-Package': 'org.bouncycastle.mail.*')
85-
manifest.attributes('Import-Package': 'java.*;resolution:=optional;javax.*;resolution:=optional;org.bouncycastle.*;version="[2.73,4)"')
87+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
8688
}
8789

8890
task sourcesJar(type: Jar) {

mail/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ jar {
6060
from sourceSets.java9.output
6161
}
6262
manifest.attributes('Multi-Release': 'true')
63+
manifest.attributes('Bundle-Name': 'bcmail')
64+
manifest.attributes('Bundle-SymbolicName': 'bcmail')
6365
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
6466
manifest.attributes('Export-Package': 'org.bouncycastle.mail.*')
65-
manifest.attributes('Import-Package': 'java.*;resolution:=optional;javax.*;resolution:=optional;org.bouncycastle.*;version="[2.73,4)"')
67+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.mail.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
6668
}
6769

6870
task sourcesJar(type: Jar) {

mls/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,15 @@ jar {
153153
into('META-INF/versions/9') {
154154
from sourceSets.java9.output
155155
}
156+
157+
String packages = 'org.bouncycastle.mls.*'
158+
156159
manifest.attributes('Multi-Release': 'true')
160+
manifest.attributes('Bundle-Name': 'bcmls')
161+
manifest.attributes('Bundle-SymbolicName': 'bcmls')
157162
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
158-
manifest.attributes('Export-Package': 'org.bouncycastle.mls.*')
159-
manifest.attributes('Import-Package': 'java.*;resolution:=optional;javax.*;resolution:=optional')
163+
manifest.attributes('Export-Package': "${packages}")
164+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!${packages},org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
160165
}
161166

162167
task sourcesJar(type: Jar) {

pg/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@ dependencies {
1616
implementation project(':core')
1717
implementation project(':prov')
1818
implementation project(':util')
19-
implementation files("$bc_prov")
20-
implementation project(path: ':core')
2119

2220
java9Implementation project(':prov')
2321
java9Implementation project(':util')
2422
java9Implementation files(sourceSets.main.output.classesDirs) {
2523
builtBy compileJava
2624
}
2725

26+
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
2827
}
2928

3029
compileJava {
@@ -43,7 +42,7 @@ compileJava9Java {
4342
sourceCompatibility = 9
4443
targetCompatibility = 9
4544
options.compilerArgs += [
46-
'--module-path', "${bc_prov}"
45+
'--module-path', "${bc_prov}${File.pathSeparator}${bc_util}"
4746
]
4847

4948
options.sourcepath = files(['src/main/java', 'src/main/jdk1.9'])
@@ -70,8 +69,10 @@ jar {
7069
}
7170
manifest.attributes('Multi-Release': 'true')
7271
manifest.attributes('Bundle-RequiredExecutionEnvironment': 'JavaSE-1.8')
72+
manifest.attributes('Bundle-Name': 'bcpg')
73+
manifest.attributes('Bundle-SymbolicName': 'bcpg')
7374
manifest.attributes('Export-Package': 'org.bouncycastle.{apache|bcpg|gpg|openpgp}.*')
74-
manifest.attributes('Import-Package': 'java.*;resolution:=optional;javax.*;resolution:=optional')
75+
manifest.attributes('Import-Package': "java.*;resolution:=optional,javax.*;resolution:=optional,!org.bouncycastle.{apache|bcpg|gpg|openpgp|}.*,org.bouncycastle.*;version=\"[${version},${maxVersion})\"")
7576
}
7677

7778

pg/src/main/java/org/bouncycastle/openpgp/PGPDefaultSignatureGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private byte[] getEncodedPublicKey(
132132
return keyBytes;
133133
}
134134

135-
protected void getAttriubtesHash(PGPUserAttributeSubpacketVector userAttributes)
135+
protected void getAttributesHash(PGPUserAttributeSubpacketVector userAttributes)
136136
throws PGPException
137137
{
138138
//

0 commit comments

Comments
 (0)