Cryptography Reference
In-Depth Information
head != NULL;
head = ( StoredSessionsList * ) head->next )
{
if ( !memcmp( session_id, head->session_id, session_id_length ) )
{
parameters->session_id_length = session_id_length;
memcpy( parameters->session_id, head->session_id, session_id_length );
memcpy( parameters->master_secret, head->master_secret,
MASTER_SECRET_LENGTH );
break;
}
}
}
stored_sessions
0
session_id_length: 4
session_id_length: 4
1
session_id: 100
session_id: 200
2
master_secret: abcdef
master_secret: abcdef
3
next
next
4
5
6
session_id_length: 4
7
session_id: 106
8
master_secret: abcdef
9
next
10
.
.
.
98
99
session_id_length: 4
session_id_length: 4
session_id_length: 4
session_id: 199
session_id: 299
session_id: 599
master_secret: abcdef
master_secret: abcdef
master_secret: abcdef
next
next
next
Figure 8-3: stored_sessions table
 
Search WWH ::




Custom Search