~ubuntu-branches/ubuntu/hardy/gnupg/hardy-updates

« back to all changes in this revision

Viewing changes to g10/status.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-16 16:57:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20051216165739-v0m2d1you6hd8jho
Tags: upstream-1.4.2
ImportĀ upstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
18
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 
20
 * USA.
20
21
 */
21
22
 
22
23
#include <config.h>
112
113
    case STATUS_ENC_TO   : s = "ENC_TO"; break;
113
114
    case STATUS_NODATA   : s = "NODATA"; break;
114
115
    case STATUS_BAD_PASSPHRASE : s = "BAD_PASSPHRASE"; break;
115
 
    case STATUS_BAD_PASSPHRASE_PIN: s = "BAD_PASSPHRASE_PIN"; break;
116
116
    case STATUS_NO_PUBKEY        : s = "NO_PUBKEY"; break;
117
117
    case STATUS_NO_SECKEY        : s = "NO_SECKEY"; break;
118
118
    case STATUS_NEED_PASSPHRASE_SYM: s = "NEED_PASSPHRASE_SYM"; break;
263
263
        }
264
264
    }
265
265
    putc ('\n',statusfp);
266
 
    fflush (statusfp);
 
266
    if ( fflush (statusfp) && opt.exit_on_status_write_error )
 
267
      g10_exit (0);
267
268
}
268
269
 
269
270
 
327
328
    } while ( len );
328
329
 
329
330
    putc ('\n',statusfp);
330
 
    fflush (statusfp);
 
331
    if ( fflush (statusfp) && opt.exit_on_status_write_error )
 
332
      g10_exit (0);
331
333
}
332
334
 
333
335
void