Changeset 137 for trunk/src/sh_err_log.c
- Timestamp:
- Oct 28, 2007, 1:17:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_err_log.c
r133 r137 649 649 char * sigkey_old; 650 650 char * crypto; 651 char hashbuf[KEYBUF_SIZE]; 651 652 652 653 SL_ENTER(_("sh_log_file")); … … 865 866 if (current->log_start == S_TRUE) 866 867 { 867 char hashbuf[KEYBUF_SIZE];868 869 868 if (sh.real.user[0] == '\0') 870 869 (void) sh_unix_getUser(); … … 948 947 log_msg.timestamp[0] = '\0'; 949 948 (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)), 951 950 KEY_LEN+1); 952 951 } … … 954 953 /* --- Sign the message with the signature key. --- 955 954 */ 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)); 956 958 957 959 (void) sl_strlcat (log_msg.msg, sigkey_new, (size_t)(status + KEY_LEN + 2)); 958 959 960 (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)), 962 963 KEY_LEN+1); 963 964 (void) sl_strlcpy (sigkey_old, sigkey_new, KEY_LEN+1);
Note:
See TracChangeset
for help on using the changeset viewer.