diff --git a/deltachat-ffi/src/lib.rs b/deltachat-ffi/src/lib.rs
index 3c5ad5447c..e9d7e61627 100644
--- a/deltachat-ffi/src/lib.rs
+++ b/deltachat-ffi/src/lib.rs
@@ -3753,7 +3753,11 @@ pub unsafe extern "C" fn dc_provider_new_from_email(
match socks5_enabled {
Ok(socks5_enabled) => {
- match block_on(provider::get_provider_info(addr.as_str(), socks5_enabled)) {
+ match block_on(provider::get_provider_info(
+ ctx,
+ addr.as_str(),
+ socks5_enabled,
+ )) {
Some(provider) => provider,
None => ptr::null_mut(),
}
diff --git a/examples/repl/cmdline.rs b/examples/repl/cmdline.rs
index 0b538f19d4..3cb9d61b3f 100644
--- a/examples/repl/cmdline.rs
+++ b/examples/repl/cmdline.rs
@@ -1185,7 +1185,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu
let socks5_enabled = context
.get_config_bool(config::Config::Socks5Enabled)
.await?;
- match provider::get_provider_info(arg1, socks5_enabled).await {
+ match provider::get_provider_info(&context, arg1, socks5_enabled).await {
Some(info) => {
println!("Information for provider belonging to {}:", arg1);
println!("status: {}", info.status as u32);
diff --git a/src/configure.rs b/src/configure.rs
index 7b04dd9e83..358fbcc161 100644
--- a/src/configure.rs
+++ b/src/configure.rs
@@ -221,7 +221,9 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
"checking internal provider-info for offline autoconfig"
);
- if let Some(provider) = provider::get_provider_info(¶m_domain, socks5_enabled).await {
+ if let Some(provider) =
+ provider::get_provider_info(ctx, ¶m_domain, socks5_enabled).await
+ {
param.provider = Some(provider);
match provider.status {
provider::Status::Ok | provider::Status::Preparation => {
diff --git a/src/oauth2.rs b/src/oauth2.rs
index 11c4920386..aae7c7bdd3 100644
--- a/src/oauth2.rs
+++ b/src/oauth2.rs
@@ -58,7 +58,7 @@ pub async fn dc_get_oauth2_url(
redirect_uri: &str,
) -> Result