Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingoujAtDevolution committed Sep 26, 2023
1 parent ee67b23 commit afd9ef6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tools/wasm-testcompile/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
use sspi::network_client::{NetworkClient, NetworkClientFactory};
use sspi::ntlm::NtlmConfig;
use sspi::{credssp, Credentials};
use wasm_bindgen::prelude::*;

#[derive(Debug, Clone)]
struct DummyNetworkClientFactory;

impl NetworkClientFactory for DummyNetworkClientFactory {
fn network_client(&self) -> Box<dyn NetworkClient> {
unimplemented!()
}

fn box_clone(&self) -> Box<dyn NetworkClientFactory> {
Box::new(Clone::clone(self))
}
}

#[wasm_bindgen]
pub fn credssp_client() {
Expand All @@ -26,7 +13,6 @@ pub fn credssp_client() {
protocol_config: Box::<NtlmConfig>::default(),
package_list: None,
hostname: "testhostname".into(),
network_client_factory: Box::new(DummyNetworkClientFactory),
}),
String::new(),
)
Expand Down

0 comments on commit afd9ef6

Please sign in to comment.