Update TLS 1.3

This commit is contained in:
Zhi Guan
2026-05-20 14:18:47 +08:00
parent 0960694bab
commit 8e8819f27d
2 changed files with 157 additions and 114 deletions

View File

@@ -24,12 +24,16 @@
// psk_cipher_suite 和 cipher_suite 是冗余的
// 重新思考一下各个层次如何将各自的输入输出打印出来特别是在record层
// 每个报文包括密文和明文,应该将两者紧密连在一起,没有空格
// 在报文层只显示明文的16进制但是在上层应该显示明文的ASCII和HEX能够看清楚消息
// 为了保证能够和openssl互通需要将PKCS8的私钥导出为openssl可以识别的格式。
// 或者P256的私钥应该用AES-128 + SHA-256加密
static const char *options = "[-port num] -cert file -key file -pass str [-cacert file]";
static const char *help =
@@ -780,11 +784,6 @@ restart:
}
fprintf(stderr, "\n");
}