Ignore:
Timestamp:
Oct 25, 2007, 12:19:05 AM (17 years ago)
Author:
rainer
Message:

Reentrant checksum/hash functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_readconf.c

    r77 r133  
    191191#endif
    192192  uid_t  euid;
     193  char hashbuf[KEYBUF_SIZE];
    193194
    194195  SL_ENTER(_("sh_readconf_read"));
     
    251252  /* Compute the checksum of the open file.
    252253   */
    253   tiger_fd = fd;
    254254  sl_strlcpy(sh.conf.hash,
    255              sh_tiger_hash(file_path('C',local_flag),TIGER_FD, 0),
     255             sh_tiger_hash(file_path('C',local_flag), fd, 0, hashbuf, sizeof(hashbuf)),
    256256             KEY_LEN+1);
    257257  sl_rewind (fd);
Note: See TracChangeset for help on using the changeset viewer.