]> andersk Git - moira.git/blobdiff - include/update.h
Build without krb4 if it's unavailable.
[moira.git] / include / update.h
index 1f07c136de2eba85d5b982e7038a230fda45e282..4ed885dd0e16d456da96b3ff83842f1db85d889b 100644 (file)
@@ -4,12 +4,15 @@
 #define log_ERROR 3
 
 #define SERVICE_NAME "moira_update"
-#define        UPDATE_BUFSIZ   BUFSIZ
+/* For unknown reasons, we're running des_pcbc_encrypt in DEcrypt mode,
+   not ENcrypt, so we need to guarantee that the block size is a multiple
+   of 8 to prevent the data from being zero-padded. */
+#define MR_BUFSIZ 8192
+#define UPDATE_BUFSIZ ((MR_BUFSIZ + 7) & ~7)
 
-int send_file(char *pathname, char *target_path, int encrypt);
-int send_auth(char *hostname);
-int execute(char *path);
-void send_quit(void);
+int mr_send_file(int conn, char *pathname, char *target_path, int encrypt);
+int mr_send_auth(int conn, char *hostname);
+int mr_execute(int conn, char *path);
+void mr_send_quit(int conn);
 
-#include <krb.h>
-int get_mr_update_ticket(char *host, KTEXT ticket);
+extern char *whoami;
This page took 0.037117 seconds and 4 git commands to generate.