Changeset 133 for trunk/src/sh_mail.c
- Timestamp:
- Oct 25, 2007, 12:19:05 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_mail.c
r132 r133 223 223 else 224 224 { 225 char sigbuf[KEYBUF_SIZE]; 226 225 227 /* iterate key 226 228 */ … … 228 230 for (i = 0; i < numsig; ++i) 229 231 { 232 char hashbuf[KEYBUF_SIZE]; 230 233 (void) sl_strlcpy (key2, 231 sh_tiger_hash (key2, TIGER_DATA, KEY_LEN), 234 sh_tiger_hash (key2, TIGER_DATA, KEY_LEN, 235 hashbuf, sizeof(hashbuf)), 232 236 KEY_LEN+1); 233 237 } 234 238 235 239 236 theSig = sh_util_siggen (key2, bufc, sl_strlen(bufc) );240 theSig = sh_util_siggen (key2, bufc, sl_strlen(bufc), sigbuf, sizeof(sigbuf)); 237 241 if (sl_strncmp (key, 238 242 theSig, … … 811 815 size_t combufsize = SH_MAILBUF; 812 816 char timebuf[81]; 817 char hashbuf[KEYBUF_SIZE]; 813 818 814 819 SL_ENTER(_("sh_mail_msg")); … … 1004 1009 */ 1005 1010 (void) sl_strlcpy(skey->mailkey_new, 1006 sh_tiger_hash (skey->mailkey_old, TIGER_DATA, KEY_LEN), 1011 sh_tiger_hash (skey->mailkey_old, TIGER_DATA, KEY_LEN, 1012 hashbuf, sizeof(hashbuf)), 1007 1013 KEY_LEN+1); 1008 1014 1009 1015 if (isfirst == 0) 1010 1016 { 1017 char sigbuf[KEYBUF_SIZE]; 1018 1011 1019 /* Sign the message with the signature key. 1012 1020 */ 1013 1021 theSig = sh_util_siggen (skey->mailkey_new, 1014 bufcompress, sl_strlen(bufcompress)); 1022 bufcompress, sl_strlen(bufcompress), 1023 sigbuf, sizeof(sigbuf)); 1015 1024 (void) sl_strlcat (mailMsg, 1016 1025 theSig,
Note:
See TracChangeset
for help on using the changeset viewer.