diff --git a/mbedtls/src/rng/mod.rs b/mbedtls/src/rng/mod.rs index 264613241..bd512b3a3 100644 --- a/mbedtls/src/rng/mod.rs +++ b/mbedtls/src/rng/mod.rs @@ -45,7 +45,7 @@ pub unsafe extern "C" fn mbedtls_psa_external_get_random( _user_data: *mut mbedtls_sys::types::raw_types::c_void, data: *mut c_uchar, len: size_t, - olen: * mut size_t) -> mbedtls_sys::types::int32_t { - olen = &mut len as * mut size_t; + _olen: * mut size_t) -> mbedtls_sys::types::int32_t { + _olen = &mut len as * mut size_t; self::rdrand::rng_call(data, len) } \ No newline at end of file diff --git a/mbedtls/tests/hyper.rs b/mbedtls/tests/hyper.rs index cf5686ec0..4040ddf30 100644 --- a/mbedtls/tests/hyper.rs +++ b/mbedtls/tests/hyper.rs @@ -268,13 +268,13 @@ mod tests { let ssl = MbedSSLClient::new(Arc::new(config), true); let client1 = hyper::Client::with_connector(Pool::with_connector(Default::default(), HttpsConnector::new(ssl.clone()))); - request_with_retry(client1.into(), "https://www.google.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); + request_with_retry(client1.into(), "https://cloud.google.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); let client2 = hyper::Client::with_connector(Pool::with_connector(Default::default(), HttpsConnector::new(ssl.clone()))); - request_with_retry(client2.into(), "https://www.google.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); + request_with_retry(client2.into(), "https://www.youtube.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); let client3 = hyper::Client::with_connector(Pool::with_connector(Default::default(), HttpsConnector::new(ssl.clone()))); - request_with_retry(client3.into(), "https://www.google.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); + request_with_retry(client3.into(), "https://www.android.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); } #[test_case(0, test_name="test_hyper_multithread_tls1_2")] @@ -303,11 +303,11 @@ mod tests { let clone1 = client.clone(); let clone2 = client.clone(); let t1 = std::thread::spawn(move || { - request_with_retry(clone1, "https://www.google.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); + request_with_retry(clone1, "https://www.android.com/", None, hyper::status::StatusCode::Ok, OUTBOUND_REQUEST_RETRY_TIMES); }); let t2 = std::thread::spawn(move || { - let response = clone2.post("https://google.com").body("foo=bar").send().unwrap(); + let response = clone2.post("https://www.google.com").body("foo=bar").send().unwrap(); assert_eq!(response.status, hyper::status::StatusCode::MethodNotAllowed); });