Skip to content

Commit 0cf2074

Browse files
committed
Update patch versions of openssl used and update prebuilt openssl to 3.3.2
1 parent 0ac9e89 commit 0cf2074

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

build-logic/src/main/kotlin/ckbuild.use-openssl.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ if (project == rootProject) {
2929
property.set(setupOpenssl.map { it.outputDirectory.get() })
3030
}
3131

32-
configureOpenssl("v3_0", "3.0.12", "3.0.12_1", service.v3_0)
33-
configureOpenssl("v3_1", "3.1.4", "3.1.4_1", service.v3_1)
34-
configureOpenssl("v3_2", "3.2.0", "3.2.0_1", service.v3_2)
32+
configureOpenssl("v3_0", "3.0.15", "3.0.15_1", service.v3_0)
33+
configureOpenssl("v3_1", "3.1.7", "3.1.7_1", service.v3_1)
34+
configureOpenssl("v3_2", "3.2.3", "3.2.3_1", service.v3_2)
35+
configureOpenssl("v3_3", "3.3.2", "3.3.2_1", service.v3_3)
3536
}

build-logic/src/main/kotlin/ckbuild/openssl/OpensslExtension.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ abstract class OpensslService : BuildService<BuildServiceParameters.None> {
1515
abstract val v3_0: DirectoryProperty
1616
abstract val v3_1: DirectoryProperty
1717
abstract val v3_2: DirectoryProperty
18+
abstract val v3_3: DirectoryProperty
1819
}
1920

2021
@Suppress("PropertyName")
2122
class OpensslExtension(service: Provider<OpensslService>) {
2223
val v3_0: OpensslXExtension = OpensslXExtension(service.flatMap { it.v3_0 })
2324
val v3_1: OpensslXExtension = OpensslXExtension(service.flatMap { it.v3_1 })
2425
val v3_2: OpensslXExtension = OpensslXExtension(service.flatMap { it.v3_2 })
26+
val v3_3: OpensslXExtension = OpensslXExtension(service.flatMap { it.v3_3 })
2527
}
2628

2729
fun Task.uses(openssl: OpensslXExtension, block: OpensslXExtension.() -> Unit = {}) {

cryptography-providers/openssl3/prebuilt/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ kotlin {
8282
}
8383

8484
tasks.withType<CInteropProcess>().configureEach {
85-
uses(openssl.v3_2) {
85+
uses(openssl.v3_3) {
8686
settings.extraOpts("-libraryPath", libDirectory(konanTarget).get().asFile.absolutePath)
8787
}
8888
}

cryptography-providers/openssl3/prebuilt/src/commonTest/kotlin/PrebuiltLibCrypto3Test.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ class PrebuiltLibCrypto3Test : LibCrypto3Test() {
1313

1414
@Test
1515
fun testExactVersion() {
16-
assertEquals("3.2.0", OpenSSL_version(OPENSSL_VERSION_STRING)?.toKString())
16+
assertEquals("3.3.2", OpenSSL_version(OPENSSL_VERSION_STRING)?.toKString())
1717
assertEquals(3, OPENSSL_version_major().toInt())
18-
assertEquals(2, OPENSSL_version_minor().toInt())
19-
assertEquals(0, OPENSSL_version_patch().toInt())
18+
assertEquals(3, OPENSSL_version_minor().toInt())
19+
assertEquals(2, OPENSSL_version_patch().toInt())
2020
}
2121

2222
}

cryptography-providers/openssl3/shared/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ kotlin {
8484
createTestRuns("3_0", openssl.v3_0)
8585
createTestRuns("3_1", openssl.v3_1)
8686
createTestRuns("3_2", openssl.v3_2)
87+
createTestRuns("3_3", openssl.v3_3)
8788
}
8889
}
8990

docs/providers/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ On current moment following providers are available out of the box:
99
* [Apple](../modules/cryptography-provider-apple.md) - via
1010
[CommonCrypto](https://developer.apple.com/library/archive/documentation/Security/Conceptual/cryptoservices/Introduction/Introduction.html)
1111
* [OpenSSL3](../modules/cryptography-provider-openssl3.md) - via [OpenSSL 3.x](https://www.openssl.org),
12-
statically linked to prebuilt OpenSSL 3.0.8 or dynamically linked (experimental)
12+
statically linked to prebuilt OpenSSL 3.3.2 or dynamically linked (experimental)
1313

1414
## Supported primitives
1515

0 commit comments

Comments
 (0)