fix bugs
This commit is contained in:
@@ -46,7 +46,8 @@ int main()
|
||||
enum parse_chello_result result;
|
||||
struct ssl_chello* chello = ssl_chello_parse(buff, buff_len, &result);
|
||||
printf("-----------------------------ssl2.0 only parse version --------------------------------\n");
|
||||
printf("record layer version is %d, %d\n", chello->record_layer_version.major, chello->record_layer_version.minor);
|
||||
printf("result is %d\n", result);
|
||||
printf("min version is %d, %d\n", chello->min_version.major, chello->min_version.minor);
|
||||
printf("\n\n");
|
||||
ssl_chello_free(chello);
|
||||
chello = NULL;
|
||||
@@ -68,8 +69,9 @@ int main()
|
||||
enum parse_chello_result result1;
|
||||
struct ssl_chello* chello1 = ssl_chello_parse(buff1, buff1_len, &result1);
|
||||
printf("--------------------------------ssl3.0, no extensions --------------------------------\n");
|
||||
printf("record layer version is %d, %d\n", chello1->record_layer_version.major, chello1->record_layer_version.minor);
|
||||
printf("client hello version: %d, %d\n", chello1->chello_version.major, chello1->chello_version.minor);
|
||||
printf("result is %d\n", result1);
|
||||
printf("min version is %d, %d\n", chello1->min_version.major, chello1->min_version.minor);
|
||||
printf("max version: %d, %d\n", chello1->max_version.major, chello1->max_version.minor);
|
||||
printf("cipher suites is %s\n", chello1->cipher_suites);
|
||||
if(chello1->cipher_suites_tls13)
|
||||
{
|
||||
@@ -139,8 +141,9 @@ int main()
|
||||
enum parse_chello_result result2;
|
||||
struct ssl_chello* chello2 = ssl_chello_parse(buff2, buff2_len, &result2);
|
||||
printf("---------------------------tls1.2 --------------------------------\n");
|
||||
printf("record layer version: %d, %d\n", chello2->record_layer_version.major, chello2->record_layer_version.minor);
|
||||
printf("client hello version: %d, %d\n", chello2->chello_version.major, chello2->chello_version.minor);
|
||||
printf("result is %d\n", result2);
|
||||
printf("min version: %d, %d\n", chello2->min_version.major, chello2->min_version.minor);
|
||||
printf("max version: %d, %d\n", chello2->max_version.major, chello2->max_version.minor);
|
||||
printf("cipher suites: %s\n", chello2->cipher_suites);
|
||||
printf("cipher suites for tls1.3: %s\n", chello2->cipher_suites_tls13);
|
||||
printf("sni: %s\n", chello2->sni);
|
||||
|
||||
Reference in New Issue
Block a user