mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-15 00:00:26 -05:00
android: Don't use specific key types to select user certificates
Android 10 will honor the preselection and could, thus, hide some installed certificates if we only pass "RSA". The dialog will also only be shown if there are actually certificates installed (i.e. users will have to do that manually outside of the app or via profile import). Fixes #3196.
This commit is contained in:
parent
a82673346e
commit
1227b43fe4
@ -925,7 +925,7 @@ public class VpnProfileDetailActivity extends AppCompatActivity
|
||||
public void onClick(View v)
|
||||
{
|
||||
String useralias = mUserCertEntry != null ? mUserCertEntry.getAlias() : null;
|
||||
KeyChain.choosePrivateKeyAlias(VpnProfileDetailActivity.this, this, new String[] { "RSA" }, null, null, -1, useralias);
|
||||
KeyChain.choosePrivateKeyAlias(VpnProfileDetailActivity.this, this, null, null, null, -1, useralias);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -889,7 +889,7 @@ public class VpnProfileImportActivity extends AppCompatActivity
|
||||
{
|
||||
alias = getString(R.string.profile_cert_alias, mProfile.getName());
|
||||
}
|
||||
KeyChain.choosePrivateKeyAlias(VpnProfileImportActivity.this, this, new String[] { "RSA" }, null, null, -1, alias);
|
||||
KeyChain.choosePrivateKeyAlias(VpnProfileImportActivity.this, this, null, null, null, -1, alias);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user