- Timestamp:
- Aug 15, 2009, 7:08:18 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 1077891a
- Parents:
- fa4562c
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/04/09 02:37:51)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zcrypt.c
r65b2173 re19eb97 49 49 } ZWRITEOPTIONS; 50 50 51 char *GetZephyrVarKeyFile(c har *whoami, char *class,char *instance);51 char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance); 52 52 53 53 #ifndef HAVE_DES_ECB_ENCRYPT_PROTO … … 69 69 * return 0 on success, otherwise -1 70 70 */ 71 int owl_zcrypt_decrypt(char *out, c har *in, char *class,char *instance) {72 c har *inptr, *endptr;71 int owl_zcrypt_decrypt(char *out, const char *in, const char *class, const char *instance) { 72 const char *inptr, *endptr; 73 73 char *fname, keystring[MAX_KEY]; 74 74 FILE *fkey; … … 116 116 } 117 117 118 int owl_zcrypt_encrypt(char *out, c har *in, char *class,char *instance) {118 int owl_zcrypt_encrypt(char *out, const char *in, const char *class, const char *instance) { 119 119 char *fname, keystring[MAX_KEY]; 120 120 FILE *fkey; … … 123 123 char input[8], output[8]; 124 124 int size, length, i; 125 c har *inbuff = NULL, *inptr;125 const char *inbuff = NULL, *inptr; 126 126 int use_buffer = FALSE; 127 127 int num_blocks=0, last_block_size=0; … … 183 183 #define MAX_SEARCH 3 184 184 /* Find the class/instance in the .crypt-table */ 185 char *GetZephyrVarKeyFile(c har *whoami, char *class,char *instance) {185 char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance) { 186 186 char *keyfile = NULL; 187 187 char *varname[MAX_SEARCH];
Note: See TracChangeset
for help on using the changeset viewer.