Skip to content

Commit

Permalink
Fixed name
Browse files Browse the repository at this point in the history
  • Loading branch information
maddeleine committed Apr 12, 2024
1 parent 377d671 commit afcd7d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bindings/rust/s2n-tls/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ impl Builder {
/// before calling serialize_connection.
pub fn set_serialization_version(
&mut self,
version: SerializedVersion,
version: SerializationVersion,
) -> Result<&mut Self, Error> {
unsafe {
s2n_config_set_serialization_version(self.as_mut_ptr(), version.into()).into_result()
Expand Down
10 changes: 5 additions & 5 deletions bindings/rust/s2n-tls/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,18 @@ impl From<PeerKeyUpdate> for s2n_peer_key_update::Type {
}
}

pub enum SerializedVersion {
pub enum SerializationVersion {
SerializedConnectionNone,
SerializedConnectionV1,
}

impl From<SerializedVersion> for s2n_serialization_version::Type {
fn from(input: SerializedVersion) -> s2n_serialization_version::Type {
impl From<SerializationVersion> for s2n_serialization_version::Type {
fn from(input: SerializationVersion) -> s2n_serialization_version::Type {
match input {
SerializedVersion::SerializedConnectionNone => {
SerializationVersion::SerializedConnectionNone => {
s2n_serialization_version::SERIALIZED_CONN_NONE
}
SerializedVersion::SerializedConnectionV1 => {
SerializationVersion::SerializedConnectionV1 => {
s2n_serialization_version::SERIALIZED_CONN_V1
}
}
Expand Down

0 comments on commit afcd7d4

Please sign in to comment.