Changeset 96 for trunk/src/cutest_sh_tiger0.c
- Timestamp:
- Mar 16, 2007, 10:08:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cutest_sh_tiger0.c
r19 r96 17 17 18 18 skey = (sh_key_t *) malloc (sizeof(sh_key_t)); 19 if (skey == NULL) 19 if (skey != NULL) 20 { 21 skey->mlock_failed = SL_FALSE; 22 skey->rngI = BAD; 23 /* properly initialized later 24 */ 25 skey->rng0[0] = 0x03; skey->rng0[1] = 0x09; skey->rng0[2] = 0x17; 26 skey->rng1[0] = 0x03; skey->rng1[1] = 0x09; skey->rng1[2] = 0x17; 27 skey->rng2[0] = 0x03; skey->rng2[1] = 0x09; skey->rng2[2] = 0x17; 28 29 for (i = 0; i < KEY_BYT; ++i) 30 skey->poolv[i] = '\0'; 31 32 skey->poolc = 0; 33 34 skey->ErrFlag[0] = ErrFlag[0]; 35 ErrFlag[0] = 0; 36 skey->ErrFlag[1] = ErrFlag[1]; 37 ErrFlag[1] = 0; 38 39 dez = &(TcpFlag[POS_TF-1][0]); 40 for (i = 0; i < PW_LEN; ++i) 41 { 42 skey->pw[i] = (char) (*dez); 43 (*dez) = '\0'; 44 ++dez; 45 } 46 47 skey->sh_sockpass[0] = '\0'; 48 skey->sigkey_old[0] = '\0'; 49 skey->sigkey_new[0] = '\0'; 50 skey->mailkey_old[0] = '\0'; 51 skey->mailkey_new[0] = '\0'; 52 skey->crypt[0] = '\0'; 53 skey->session[0] = '\0'; 54 skey->vernam[0] = '\0'; 55 } 56 else 20 57 { 21 58 perror(_("sh_init")); 22 59 _exit (EXIT_FAILURE); 23 60 } 24 25 skey->mlock_failed = SL_FALSE;26 skey->rngI = BAD;27 /* properly initialized later28 */29 skey->rng0[0] = 0x03; skey->rng0[1] = 0x09; skey->rng0[2] = 0x17;30 skey->rng1[0] = 0x03; skey->rng1[1] = 0x09; skey->rng1[2] = 0x17;31 skey->rng2[0] = 0x03; skey->rng2[1] = 0x09; skey->rng2[2] = 0x17;32 33 for (i = 0; i < KEY_BYT; ++i)34 skey->poolv[i] = '\0';35 36 skey->poolc = 0;37 38 skey->ErrFlag[0] = ErrFlag[0];39 ErrFlag[0] = 0;40 skey->ErrFlag[1] = ErrFlag[1];41 ErrFlag[1] = 0;42 43 dez = &(TcpFlag[POS_TF-1][0]);44 for (i = 0; i < PW_LEN; ++i)45 {46 skey->pw[i] = (char) (*dez);47 (*dez) = '\0';48 ++dez;49 }50 51 skey->sh_sockpass[0] = '\0';52 skey->sigkey_old[0] = '\0';53 skey->sigkey_new[0] = '\0';54 skey->mailkey_old[0] = '\0';55 skey->mailkey_new[0] = '\0';56 skey->crypt[0] = '\0';57 skey->session[0] = '\0';58 skey->vernam[0] = '\0';59 61 60 62 }
Note:
See TracChangeset
for help on using the changeset viewer.