X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=crypt.h;h=56590824858c079d534dfcd0898af3b46e060435;hp=26d1c3ea3668b2db1b8ce3538128bd943bc8cd3a;hb=5566f74eb29be75da44e29ba72ee6f015249ce61;hpb=2ed0fee489c37a6e2d4473f6185ebbe3e746ac11 diff --git a/crypt.h b/crypt.h index 26d1c3e..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", \ @@ -168,6 +168,6 @@ int cm_msg_num = sizeof(cm_msg_name) / sizeof(char *); cryptman_getinf(param, a, b); void crc_init(void); -unsigned long crc32(unsigned char *data, int len); +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);