mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Move TLS1.2/TLCP common functions to tls.c
This commit is contained in:
@@ -9,6 +9,10 @@
|
||||
|
||||
"Examples\n"
|
||||
"\n"
|
||||
"Supported cipher suites:\n"
|
||||
" TLS_ECC_SM4_GCM_SM3\n"
|
||||
" TLS_ECC_SM4_CBC_SM3\n"
|
||||
"\n"
|
||||
" gmssl tlcp_client -host www.pbc.gov.cn -get / -outcerts certs.pem\n"
|
||||
"\n"
|
||||
" gmssl tlcp_client -host www.pbc.gov.cn -port 443\n"
|
||||
@@ -35,4 +39,3 @@
|
||||
"\n"
|
||||
" gmssl tlcp_server -port 443 -cert double_certs.pem -key signkey.pem -pass 1234 -ex_key enckey.pem -ex_pass 1234\n"
|
||||
" gmssl tlcp_client -host 127.0.0.1 -cacert rootcacert.pem\n"
|
||||
|
||||
|
||||
@@ -52,7 +52,10 @@ int tlcp_server_main(int argc , char **argv)
|
||||
size_t encpasses_cnt = 0;
|
||||
char *cacertfile = NULL;
|
||||
|
||||
int server_ciphers[] = { TLS_cipher_ecc_sm4_cbc_sm3, };
|
||||
int server_ciphers[] = {
|
||||
TLS_cipher_ecc_sm4_gcm_sm3,
|
||||
TLS_cipher_ecc_sm4_cbc_sm3,
|
||||
};
|
||||
|
||||
TLS_CTX ctx;
|
||||
TLS_CONNECT conn;
|
||||
|
||||
Reference in New Issue
Block a user