--- pgp/src/crypto.h 2018/04/24 16:39:34 1.1.1.3 +++ pgp/src/crypto.h 2018/04/24 16:42:34 1.1.1.5 @@ -41,11 +41,17 @@ int decompress_file(char *infile, char * int strip_literal(char *infile, char *outfile, char *preserved_name, char *lit_mode); +#ifndef VMS +struct IdeaCfbContext; /* Write a multiprecision integer to a file */ -void write_mpi(unitptr n, FILE *f, boolean scrambled); +void write_mpi(unitptr n, FILE *f, struct IdeaCfbContext *cfb); /* Read a mutiprecision integer from a file */ -int read_mpi(unitptr r, FILE *f, boolean adjust_precision, boolean scrambled); +int read_mpi(unitptr r, FILE *f, boolean adjust_precision, struct IdeaCfbContext *cfb); +#else /* !VMS */ +void write_mpi(); +int read_mpi(); +#endif /* VMS */ /* Convert C <-> Quiche strings */ void CToPascal(char *s); @@ -74,6 +80,8 @@ void write_ctb_len (FILE *f, byte ctb_ty /* Print an error message and return nonzero if val != checkval */ int version_error (int val, int checkval); +/* The same, if val is not a recognized version */ +int version_byte_error (int val); int check_key_sig(FILE *fkey, long fpkey, int keypktlen, char *keyuserid, FILE *fsig, long fpsig, char *keyfile, char *siguserid, byte *xtimestamp,