Line data Source code
1 : #include "../burp.h"
2 : #include "../asfd.h"
3 : #include "../cmd.h"
4 : #include "../log.h"
5 : #include "delete.h"
6 :
7 0 : int do_delete_client(struct asfd *asfd, struct conf **confs)
8 : {
9 0 : char msg[128]="";
10 0 : const char *backup=get_string(confs[OPT_BACKUP]);
11 0 : snprintf(msg, sizeof(msg), "Delete %s", backup?backup:"");
12 0 : if(asfd->write_str(asfd, CMD_GEN, msg)
13 0 : || asfd_read_expect(asfd, CMD_GEN, "ok"))
14 : return -1;
15 0 : logp("Deletion in progress\n");
16 0 : return 0;
17 : }
|