Fix long-standing bug of admin-less mode. GnuPG should be fixed.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2017-11-26 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* src/openpgp.c (cmd_change_password): Bug fix for admin-less
|
||||||
|
mode.
|
||||||
|
|
||||||
2017-11-26 NIIBE Yutaka <gniibe@fsij.org>
|
2017-11-26 NIIBE Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* VERSION: 1.2.7.
|
* VERSION: 1.2.7.
|
||||||
|
|||||||
@@ -429,7 +429,11 @@ cmd_change_password (void)
|
|||||||
gpg_do_write_simple (NR_DO_KEYSTRING_PW1, new_ks0, KS_META_SIZE);
|
gpg_do_write_simple (NR_DO_KEYSTRING_PW1, new_ks0, KS_META_SIZE);
|
||||||
ac_reset_pso_cds ();
|
ac_reset_pso_cds ();
|
||||||
ac_reset_other ();
|
ac_reset_other ();
|
||||||
if (admin_authorized == BY_USER)
|
/* When it was already admin-less mode, admin_authorized is
|
||||||
|
* BY_USER. If no PW3 keystring, it's becoming admin-less mode,
|
||||||
|
* now. For these two cases, we need to reset admin
|
||||||
|
* authorization status. */
|
||||||
|
if (admin_authorized == BY_USER || ks_pw3 == NULL)
|
||||||
ac_reset_admin ();
|
ac_reset_admin ();
|
||||||
DEBUG_INFO ("Changed length of DO_KEYSTRING_PW1.\r\n");
|
DEBUG_INFO ("Changed length of DO_KEYSTRING_PW1.\r\n");
|
||||||
GPG_SUCCESS ();
|
GPG_SUCCESS ();
|
||||||
|
|||||||
Reference in New Issue
Block a user