Changeset 137 for trunk/src/sh_err_log.c


Ignore:
Timestamp:
Oct 28, 2007, 1:17:58 AM (17 years ago)
Author:
rainer
Message:

Fix compile errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_err_log.c

    r133 r137  
    649649  char               * sigkey_old;
    650650  char               * crypto;
     651  char                 hashbuf[KEYBUF_SIZE];
    651652
    652653  SL_ENTER(_("sh_log_file"));
     
    865866  if (current->log_start == S_TRUE)
    866867    {
    867       char hashbuf[KEYBUF_SIZE];
    868 
    869868      if (sh.real.user[0] == '\0')
    870869        (void) sh_unix_getUser();
     
    948947      log_msg.timestamp[0] = '\0';
    949948      (void) sl_strlcpy (sigkey_new,
    950                          sh_tiger_hash (sigkey_old, TIGER_DATA, KEY_LEN),
     949                         sh_tiger_hash (sigkey_old, TIGER_DATA, KEY_LEN, hashbuf, sizeof(hashbuf)),
    951950                         KEY_LEN+1);
    952951    }
     
    954953  /* --- Sign the message with the signature key. ---
    955954   */
     955  sh_tiger_hash (log_msg.msg, -1, 10, hashbuf, 10);
     956  sh_tiger_hash (log_msg.msg, TIGER_DATA,
     957                 (unsigned long)(status + KEY_LEN), (char *) hashbuf, (size_t) sizeof(hashbuf));
    956958
    957959  (void) sl_strlcat (log_msg.msg, sigkey_new, (size_t)(status + KEY_LEN + 2));
    958  
    959960  (void) sl_strlcpy (log_msg.signature,
    960                      sh_tiger_hash (log_msg.msg, TIGER_DATA,
    961                                     (unsigned long)(status + KEY_LEN)),
     961                     sh_tiger_hash (log_msg.msg, (TigerType) TIGER_DATA,
     962                                    (unsigned long)(status + KEY_LEN), hashbuf, sizeof(hashbuf)),
    962963                     KEY_LEN+1);
    963964  (void) sl_strlcpy (sigkey_old, sigkey_new, KEY_LEN+1);
Note: See TracChangeset for help on using the changeset viewer.