Changeset e19eb97 for zcrypt.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, 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)
Message:
Add const qualifiers for char * and void *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zcrypt.c

    r65b2173 re19eb97  
    4949} ZWRITEOPTIONS;
    5050
    51 char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance);
     51char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance);
    5252
    5353#ifndef HAVE_DES_ECB_ENCRYPT_PROTO
     
    6969 * return 0 on success, otherwise -1
    7070 */
    71 int owl_zcrypt_decrypt(char *out, char *in, char *class, char *instance) {
    72   char *inptr, *endptr;
     71int owl_zcrypt_decrypt(char *out, const char *in, const char *class, const char *instance) {
     72  const char *inptr, *endptr;
    7373  char *fname, keystring[MAX_KEY];
    7474  FILE *fkey;
     
    116116}
    117117
    118 int owl_zcrypt_encrypt(char *out, char *in, char *class, char *instance) {
     118int owl_zcrypt_encrypt(char *out, const char *in, const char *class, const char *instance) {
    119119  char *fname, keystring[MAX_KEY];
    120120  FILE *fkey;
     
    123123  char input[8], output[8];
    124124  int size, length, i;
    125   char *inbuff = NULL, *inptr;
     125  const char *inbuff = NULL, *inptr;
    126126  int use_buffer = FALSE;
    127127  int num_blocks=0, last_block_size=0;
     
    183183#define MAX_SEARCH 3
    184184/* Find the class/instance in the .crypt-table */
    185 char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance) {
     185char *GetZephyrVarKeyFile(const char *whoami, const char *class, const char *instance) {
    186186  char *keyfile = NULL;
    187187  char *varname[MAX_SEARCH];
Note: See TracChangeset for help on using the changeset viewer.