]>
Commit | Line | Data |
---|---|---|
f2c11cdd | 1 | #define log_DEBUG 0 |
2 | #define log_INFO 1 | |
3 | #define log_WARNING 2 | |
4 | #define log_ERROR 3 | |
db04bfe1 | 5 | |
59ec8dae | 6 | #define SERVICE_NAME "moira_update" |
85330553 | 7 | /* For unknown reasons, we're running des_pcbc_encrypt in DEcrypt mode, |
8 | not ENcrypt, so we need to guarantee that the block size is a multiple | |
9 | of 8 to prevent the data from being zero-padded. */ | |
10 | #define UPDATE_BUFSIZ ((BUFSIZ + 7) & ~7) | |
7ac48069 | 11 | |
85330553 | 12 | int send_file(int conn, char *pathname, char *target_path, int encrypt); |
13 | int send_auth(int conn, char *hostname); | |
14 | int execute(int conn, char *path); | |
15 | void send_quit(int conn); | |
7ac48069 | 16 | |
17 | #include <krb.h> | |
18 | int get_mr_update_ticket(char *host, KTEXT ticket); | |
85330553 | 19 | |
20 | extern char *whoami; |