Skip to content

Commit efc7f5e

Browse files
committed
prep for 0.5.2: fix SslCurve::nid
SslCurve::nid did not include yet all available curves/supported-groups v0.5.2 fixes this
1 parent c299b6c commit efc7f5e

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["boring", "boring-sys", "tokio-boring"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.5.1"
6+
version = "0.5.2"
77
repository = "https://github.com/plabayo/rama-boring"
88
# we should stick on edition 2021 until ecosystem is ready,
99
# and perhaps let cloudflare do it if ever,
@@ -18,9 +18,9 @@ tag-prefix = ""
1818
publish = false
1919

2020
[workspace.dependencies]
21-
rama-boring = { version = "0.5.1", path = "./boring" }
22-
rama-boring-sys = { version = "0.5.1", path = "./boring-sys" }
23-
rama-boring-tokio = { version = "0.5.1", path = "./tokio-boring" }
21+
rama-boring = { version = "0.5.2", path = "./boring" }
22+
rama-boring-sys = { version = "0.5.2", path = "./boring-sys" }
23+
rama-boring-tokio = { version = "0.5.2", path = "./tokio-boring" }
2424

2525
antidote = "1.0.0"
2626
anyhow = "1"

boring/src/ssl/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,12 @@ impl SslCurve {
750750
ffi::SSL_CURVE_SECP384R1 => Some(ffi::NID_secp384r1),
751751
ffi::SSL_CURVE_SECP521R1 => Some(ffi::NID_secp521r1),
752752
ffi::SSL_CURVE_X25519 => Some(ffi::NID_X25519),
753-
ffi::SSL_CURVE_X25519_KYBER768_DRAFT00 => Some(ffi::NID_X25519Kyber768Draft00),
753+
ffi::SSL_GROUP_X25519_MLKEM768 => Some(ffi::NID_X25519MLKEM768),
754+
ffi::SSL_GROUP_X25519_KYBER768_DRAFT00 => Some(ffi::NID_X25519Kyber768Draft00),
755+
ffi::SSL_GROUP_X25519_KYBER512_DRAFT00 => Some(ffi::NID_X25519Kyber512Draft00),
756+
ffi::SSL_GROUP_X25519_KYBER768_DRAFT00_OLD => Some(ffi::NID_X25519Kyber768Draft00Old),
757+
ffi::SSL_GROUP_P256_KYBER768_DRAFT00 => Some(ffi::NID_P256Kyber768Draft00),
758+
ffi::SSL_GROUP_MLKEM1024 => Some(ffi::NID_MLKEM1024),
754759
_ => None,
755760
}
756761
}

0 commit comments

Comments
 (0)