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 5 : int do_delete_client(struct asfd *asfd, struct conf **confs)
8 : {
9 5 : char msg[128]="";
10 5 : const char *backup=get_string(confs[OPT_BACKUP]);
11 5 : snprintf(msg, sizeof(msg), "Delete %s", backup?backup:"");
12 5 : if(asfd->write_str(asfd, CMD_GEN, msg)
13 4 : || asfd_read_expect(asfd, CMD_GEN, "ok"))
14 : return -1;
15 2 : logp("Deletion in progress\n");
16 2 : return 0;
17 : }
|