增加no_mirror_client_cipher_suite开关;ssl_utils.cpp改名后cmakelist未响应修改;
This commit is contained in:
@@ -44,7 +44,7 @@ int main()
|
||||
};
|
||||
size_t buff_len = sizeof(buff) / sizeof(char);
|
||||
enum chello_parse_result result;
|
||||
struct ssl_chello* chello = ssl_chello_parse(buff, buff_len, &result);
|
||||
struct ssl_chello* chello = ssl_chello_parse(buff, buff_len, 1, &result);
|
||||
printf("-----------------------------ssl2.0 only parse version --------------------------------\n");
|
||||
printf("result is %d\n", result);
|
||||
printf("min version is %d, %d\n", chello->min_version.major, chello->min_version.minor);
|
||||
@@ -67,7 +67,7 @@ int main()
|
||||
};
|
||||
size_t buff1_len = sizeof(buff1) / sizeof(char);
|
||||
enum chello_parse_result result1;
|
||||
struct ssl_chello* chello1 = ssl_chello_parse(buff1, buff1_len, &result1);
|
||||
struct ssl_chello* chello1 = ssl_chello_parse(buff1, buff1_len, 1, &result1);
|
||||
printf("--------------------------------ssl3.0, no extensions --------------------------------\n");
|
||||
printf("result is %d\n", result1);
|
||||
printf("min version is %d, %d\n", chello1->min_version.major, chello1->min_version.minor);
|
||||
@@ -139,7 +139,7 @@ int main()
|
||||
};
|
||||
size_t buff2_len = sizeof(buff2) / sizeof(char);
|
||||
enum chello_parse_result result2;
|
||||
struct ssl_chello* chello2 = ssl_chello_parse(buff2, buff2_len, &result2);
|
||||
struct ssl_chello* chello2 = ssl_chello_parse(buff2, buff2_len, 1, &result2);
|
||||
printf("---------------------------tls1.2 --------------------------------\n");
|
||||
printf("result is %d\n", result2);
|
||||
printf("min version: %d, %d, ossl format: %x\n", chello2->min_version.major, chello2->min_version.minor, chello2->min_version.ossl_format);
|
||||
|
||||
Reference in New Issue
Block a user