Index: b/g10/gpg.c =================================================================== --- b/g10/gpg.c +++ b/g10/gpg.c @@ -2284,6 +2284,12 @@ { switch( pargs.r_opt ) { + case aSym: + /* We never need the user to repeat the passphrase for + symmetric keys. */ + opt.passphrase_repeat = 0; + + /* Fall through. */ case aCheckKeys: case aListConfig: case aListGcryptConfig: @@ -2308,7 +2314,6 @@ case aListSigs: case aExportSecret: case aExportSecretSub: - case aSym: case aClearsign: case aGenRevoke: case aDesigRevoke: