]> andersk Git - moira.git/blobdiff - include/update.h
Add containers table and mcntmp table.
[moira.git] / include / update.h
index 7a7690f5a4795f37684bd481be8e952c2ae6848b..6c6361cab9e49a8334df21f493d38bda20f35b11 100644 (file)
@@ -1,22 +1,20 @@
-/*
- * Update mechanism description structure.
- */
-struct update_desc {
-     int last_time;            /* when did we try last? */
-     int success;              /* did it succeed? */
-     int interval;             /* interval in minutes between updates */
-     char *service_name;
-     char *host_name;
-     char *target_path;                /* where to put the file */
-     int override;             /* override interval */
-     int enable;               /* can we update at all? */
-     char *instructions;       /* script pathname */
-};
-
 #define log_DEBUG 0
 #define log_INFO  1
 #define log_WARNING 2
 #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 UPDATE_BUFSIZ ((BUFSIZ + 7) & ~7)
+
+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.052951 seconds and 4 git commands to generate.