Skip to content

Commit

Permalink
Config parameter in Connection::with_tls can be immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
nqv committed Aug 9, 2019
1 parent 2196cb6 commit 5bab541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ pub extern fn quiche_retry(
#[no_mangle]
pub extern fn quiche_conn_new_with_tls(
scid: *const u8, scid_len: size_t, odcid: *const u8, odcid_len: size_t,
config: &mut Config, ssl: *mut c_void, is_server: bool,
config: &Config, ssl: *mut c_void, is_server: bool,
) -> *mut Connection {
let scid = unsafe { slice::from_raw_parts(scid, scid_len) };

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ impl Connection {
}

fn with_tls(
scid: &[u8], odcid: Option<&[u8]>, config: &mut Config,
scid: &[u8], odcid: Option<&[u8]>, config: &Config,
tls: tls::Handshake, is_server: bool,
) -> Result<Box<Connection>> {
let max_rx_data = config.local_transport_params.initial_max_data;
Expand Down

0 comments on commit 5bab541

Please sign in to comment.