--- pgp/src/armor.h 2018/04/24 16:39:21 1.1 +++ pgp/src/armor.h 2018/04/24 16:45:29 1.1.1.5 @@ -1,18 +1,22 @@ -#ifndef ARMORP_H -#define ARMORP_H - -#include - -/* #define crcword unsigned short */ /* if CRCBITS is 16 */ -/* #define crcword unsigned short */ /* if CRCBITS is 16 */ - -#define crcword unsigned long /* if CRCBITS is 24 or 32 */ - -extern crcword crcupdate(byte data, register crcword accum); -extern void init_crc(void); -extern int armor_file (char *infile, char *outfile, char *filename, - char *clearname); -extern int de_armor_file(char *infile, char *outfile, long *curline); -extern boolean is_armor_file (char *infile, long startline); - -#endif /* #ifdef ARMORP_H */ +#ifndef ARMORP_H +#define ARMORP_H + +#include + +/* #define crcword unsigned short */ /* if CRCBITS is 16 */ +/* #define crcword unsigned short */ /* if CRCBITS is 16 */ + +#ifdef __alpha +#define crcword unsigned int /* if CRCBITS is 24 or 32 */ +#else +#define crcword unsigned long /* if CRCBITS is 24 or 32 */ +#endif + +extern crcword crcbytes(byte *buf, unsigned len, register crcword accum); +extern void init_crc(void); +extern int armor_file (char *infile, char *outfile, char *filename, + char *clearname, boolean kv_label); +extern int de_armor_file(char *infile, char *outfile, long *curline); +extern boolean is_armor_file (char *infile, long startline); + +#endif /* #ifdef ARMORP_H */