116 0x20, 0x14, 0x01, 0x4e, 0xbc, 0x80, 0xc6, 0x14,
117 0x2b, 0x7b, 0xc8, 0x76, 0xfb, 0xc5, 0x2e, 0x27,
118 0xb1, 0xc5, 0x07, 0x35, 0x5b, 0xb6, 0x00, 0x6b,
119 0xae, 0x71, 0xba, 0x4e, 0x38, 0x00, 0x00, 0x00,
120 0x03, 0x61, 0xd3, 0xff, 0x53, 0x00, 0x00, 0x00,
121 0x00, 0x01, 0x16, 0x03, 0x01, 0x01, 0x0c, 0x01,
122 0x00, 0x01, 0x08, 0x03, 0x03, 0x8c, 0xaa, 0xac,
123 0x3a, 0x1a, 0x07, 0xbd, 0xe7, 0xb7, 0x50, 0x06,
124 0x9b, 0x94, 0x0c, 0x34, 0x4b, 0x5a, 0x35, 0xca,
125 0xc4, 0x79, 0xbd, 0xc9, 0x09, 0xb0, 0x7b, 0xd9,
126 0xee, 0xbb, 0x7d, 0xe7, 0x25, 0x20, 0x39, 0x38,
127 0xe2, 0x18, 0x33, 0x36, 0x14, 0x9f, 0x34, 0xf0,
128 0x44, 0x59, 0x96, 0x8d, 0x0e, 0xd2, 0x47, 0x76,
129 0x64, 0x88, 0x59, 0xe9, 0x38, 0x03, 0x97, 0x96,
130 0x98, 0x45, 0xfb, 0xf5, 0xff, 0x23, 0x00, 0x32,
131 0x13, 0x02, 0x13, 0x03, 0x13, 0x01, 0xc0, 0x2c,
132 0xc0, 0x30, 0x00, 0x9f, 0xcc, 0xa9, 0xcc, 0xa8,
133 0xcc, 0xaa, 0xc0, 0x2b, 0xc0, 0x2f, 0x00, 0x9e,
134 0xc0, 0x24, 0xc0, 0x28, 0x00, 0x6b, 0xc0, 0x23,
135 0xc0, 0x27, 0x00, 0x67, 0xc0, 0x0a, 0xc0, 0x14,
136 0x00, 0x39, 0xc0, 0x09, 0xc0, 0x13, 0x00, 0x33,
137 0x00, 0xff, 0x01, 0x00, 0x00, 0x8d, 0x00, 0x0b,
138 0x00, 0x04, 0x03, 0x00, 0x01, 0x02, 0x00, 0x0a,
139 0x00, 0x0c, 0x00, 0x0a, 0x00, 0x1d, 0x00, 0x17,
140 0x00, 0x1e, 0x00, 0x19, 0x00, 0x18, 0x00, 0x16,
141 0x00, 0x00, 0x00, 0x17, 0x00, 0x00, 0x00, 0x0d,
142 0x00, 0x30, 0x00, 0x2e, 0x04, 0x03, 0x05, 0x03,
143 0x06, 0x03, 0x08, 0x07, 0x08, 0x08, 0x08, 0x09,
144 0x08, 0x0a, 0x08, 0x0b, 0x08, 0x04, 0x08, 0x05,
145 0x08, 0x06, 0x04, 0x01, 0x05, 0x01, 0x06, 0x01,
146 0x03, 0x03, 0x02, 0x03, 0x03, 0x01, 0x02, 0x01,
147 0x03, 0x02, 0x02, 0x02, 0x04, 0x02, 0x05, 0x02,
148 0x06, 0x02, 0x00, 0x2b, 0x00, 0x05, 0x04, 0x03,
149 0x04, 0x03, 0x03, 0x00, 0x2d, 0x00, 0x02, 0x01,
150 0x01, 0x00, 0x33, 0x00, 0x26, 0x00, 0x24, 0x00,
151 0x1d, 0x00, 0x20, 0x0e, 0xc9, 0x7a, 0xff, 0x58,
152 0xdb, 0x56, 0xf6, 0x40, 0xd1, 0xed, 0xdb, 0x91,
153 0x81, 0xd6, 0xef, 0x83, 0x86, 0x8a, 0xb2, 0x3d,
154 0x88, 0x92, 0x3f, 0xd8, 0x51, 0x9c, 0xd6, 0x26,
503 addr.addr.in4.sin_addr.s_addr = ntohl(0xff000ff);
504 addr.addr.in4.sin_port = ntohs(1195);
506 struct session_id client_id = { {0, 1, 2, 3, 4, 5, 6, 7}};
512 struct session_id expected_server_id = {{0x84, 0x73, 0x52, 0x2b, 0x5b, 0xa9, 0x2a, 0x70}};
517 if (
sizeof(addr.
addr.
in4.sin_family) ==
sizeof(
unsigned short int)
518 && ntohs(AF_INET) != AF_INET)
520 struct session_id linuxle = {{0x8b, 0xeb, 0x3d, 0x20, 0x14, 0x53, 0xbe, 0x0a }};
521 expected_server_id = linuxle;
523 assert_memory_equal(expected_server_id.
id, server_id.
id,
SID_SIZE);
529 assert_memory_not_equal(expected_server_id.
id, server_id_m1.
id,
SID_SIZE);
530 assert_memory_not_equal(expected_server_id.
id, server_id_p1.
id,
SID_SIZE);
541 assert_memory_equal(server_id2_m2.
id, server_id_m1.
id,
SID_SIZE);
542 assert_memory_equal(server_id2_m1.
id, expected_server_id.
id,
SID_SIZE);
543 assert_memory_equal(server_id2.
id, server_id_p1.
id,
SID_SIZE);
544 assert_memory_equal(server_id2_p1.
id, server_id_p2.
id,
SID_SIZE);