add SslCurve::X25519_MLKEM768 constant

This commit is contained in:
Eric Rosenberg 2025-05-01 15:07:14 +00:00 committed by Kornel
parent 9c4ea22f72
commit 9b34d3524b
1 changed files with 6 additions and 0 deletions

View File

@ -738,6 +738,12 @@ impl SslCurve {
))] ))]
pub const P256_KYBER768_DRAFT00: SslCurve = SslCurve(ffi::SSL_CURVE_P256_KYBER768_DRAFT00 as _); pub const P256_KYBER768_DRAFT00: SslCurve = SslCurve(ffi::SSL_CURVE_P256_KYBER768_DRAFT00 as _);
#[cfg(all(
not(any(feature = "fips", feature = "fips-precompiled")),
feature = "pq-experimental"
))]
pub const X25519_MLKEM768: SslCurve = SslCurve(ffi::SSL_CURVE_X25519_MLKEM768 as _);
/// Returns the curve name /// Returns the curve name
#[corresponds(SSL_get_curve_name)] #[corresponds(SSL_get_curve_name)]
pub fn name(&self) -> Option<&'static str> { pub fn name(&self) -> Option<&'static str> {