comparison svr-session.c @ 297:79bf1023cf11 agent-client

propagate from branch 'au.asn.ucc.matt.dropbear' (head 0501e6f661b5415eb76f3b312d183c3adfbfb712) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b)
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 Mar 2006 16:20:59 +0000
parents 3be7ae2e8dfa
children 973fccb59ea4 a588558bfc94
comparison
equal deleted inserted replaced
225:ca7e76d981d9 297:79bf1023cf11
76 76
77 void svr_session(int sock, int childpipe, 77 void svr_session(int sock, int childpipe,
78 char* remotehost, char *addrstring) { 78 char* remotehost, char *addrstring) {
79 79
80 struct timeval timeout; 80 struct timeval timeout;
81 81
82 reseedrandom();
83
82 crypto_init(); 84 crypto_init();
83 common_session_init(sock, remotehost); 85 common_session_init(sock, remotehost);
84 86
85 /* Initialise server specific parts of the session */ 87 /* Initialise server specific parts of the session */
86 svr_ses.childpipe = childpipe; 88 svr_ses.childpipe = childpipe;
107 /* We're ready to go now */ 109 /* We're ready to go now */
108 sessinitdone = 1; 110 sessinitdone = 1;
109 111
110 /* exchange identification, version etc */ 112 /* exchange identification, version etc */
111 session_identification(); 113 session_identification();
112
113 seedrandom();
114 114
115 /* start off with key exchange */ 115 /* start off with key exchange */
116 send_msg_kexinit(); 116 send_msg_kexinit();
117 117
118 /* Run the main for loop. NULL is for the dispatcher - only the client 118 /* Run the main for loop. NULL is for the dispatcher - only the client