1223 |
if (!nread) { |
if (!nread) { |
1224 |
gpg->status.eof = 1; |
gpg->status.eof = 1; |
1225 |
if (gpg->status.fnc) |
if (gpg->status.fnc) |
1226 |
gpg->status.fnc ( gpg->status.fnc_value, STATUS_EOF, "" ); |
gpg->status.fnc (gpg->status.fnc_value, STATUS_EOF, ""); |
1227 |
return 0; |
return 0; |
1228 |
} |
} |
1229 |
|
|
1232 |
if ( *p == '\n' ) { |
if ( *p == '\n' ) { |
1233 |
/* (we require that the last line is terminated by a LF) */ |
/* (we require that the last line is terminated by a LF) */ |
1234 |
*p = 0; |
*p = 0; |
1235 |
/*DEBUG1("read_status: `%s'\n", buffer);*/ |
DEBUG1("read_status: `%s'\n", buffer); |
1236 |
if (!strncmp (buffer, "[GNUPG:] ", 9 ) |
if (!strncmp (buffer, "[GNUPG:] ", 9 ) |
1237 |
&& buffer[9] >= 'A' && buffer[9] <= 'Z' ) { |
&& buffer[9] >= 'A' && buffer[9] <= 'Z' ) { |
1238 |
struct status_table_s t, *r; |
struct status_table_s t, *r; |