mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
move variables in scope
This commit is contained in:
parent
d62037ef6a
commit
82d93d2602
1 changed files with 4 additions and 3 deletions
|
@ -123,13 +123,14 @@ namespace Bit.Android.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
var gen = KeyPairGenerator.GetInstance(KeyProperties.KeyAlgorithmRsa, AndroidKeyStore);
|
var gen = KeyPairGenerator.GetInstance(KeyProperties.KeyAlgorithmRsa, AndroidKeyStore);
|
||||||
var start = Calendar.Instance;
|
|
||||||
var end = Calendar.Instance;
|
|
||||||
end.Add(CalendarField.Year, 30);
|
|
||||||
var subject = new X500Principal($"CN={KeyAlias}");
|
var subject = new X500Principal($"CN={KeyAlias}");
|
||||||
|
|
||||||
if(_oldAndroid)
|
if(_oldAndroid)
|
||||||
{
|
{
|
||||||
|
var start = Calendar.Instance;
|
||||||
|
var end = Calendar.Instance;
|
||||||
|
end.Add(CalendarField.Year, 30);
|
||||||
|
|
||||||
var spec = new KeyPairGeneratorSpec.Builder(Application.Context)
|
var spec = new KeyPairGeneratorSpec.Builder(Application.Context)
|
||||||
.SetAlias(KeyAlias)
|
.SetAlias(KeyAlias)
|
||||||
.SetSubject(subject)
|
.SetSubject(subject)
|
||||||
|
|
Loading…
Reference in a new issue