X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=crypt.h;h=56590824858c079d534dfcd0898af3b46e060435;hp=1c6924c0f8e3ca0eb90925e6ae5bc412adb91e19;hb=5566f74eb29be75da44e29ba72ee6f015249ce61;hpb=d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4 diff --git a/crypt.h b/crypt.h index 1c6924c..5659082 100644 --- a/crypt.h +++ b/crypt.h @@ -40,7 +40,7 @@ enum { /* crypt manager states */ }; #define CM_ST_NAMES \ -static char *cm_st_name[] = { \ +static const char *cm_st_name[] = { \ "NULL", \ "IDENT", \ "KEYGEN", \ @@ -103,7 +103,7 @@ enum { /* messages */ }; #define CM_MSG_NAMES \ -static char *cm_msg_name[] = { \ +static const char *cm_msg_name[] = { \ "CP_IDENT", \ "CP_SLAVE", \ "CP_MASTER", \ @@ -170,4 +170,4 @@ int cm_msg_num = sizeof(cm_msg_name) / sizeof(char *); void crc_init(void); unsigned int crc32(unsigned char *data, int len); int cryptman_encode_bch(unsigned char *data, int len, unsigned char *buf, int buf_len); - +int crypt_handler(struct lcr_timer *timer, void *instance, int index);