1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Thu Sep 23 09:52:58 CEST 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-09-23 07:55:12 +00:00
parent 2f94e980b2
commit 3b17045658
20 changed files with 1772 additions and 1493 deletions

View file

@ -84,6 +84,17 @@ verify_signatures( int nfiles, char **files )
return rc;
}
static void
print_file_status( int status, const char *name, int what )
{
char *p = m_alloc(strlen(name)+10);
sprintf(p, "%d %s", what, name );
write_status_text( status, p );
m_free(p);
}
static int
verify_one_file( const char *name )
{
@ -91,15 +102,10 @@ verify_one_file( const char *name )
armor_filter_context_t afx;
int rc;
{
char *p = m_alloc(strlen(name)+10);
sprintf(p, "1 %s", name );
write_status_text( STATUS_FILE_START, p );
m_free(p);
}
print_file_status( STATUS_FILE_START, name, 1 );
fp = iobuf_open(name);
if( !fp ) {
print_file_status( STATUS_FILE_ERROR, name, 1 );
log_error(_("can't open `%s'\n"), print_fname_stdin(name));
return G10ERR_OPEN_FILE;
}