1、解决TLS1.x的ECDH-SM2-SM3-SM4/SM2-SM3-SM4两种套件无法握手成功

2、暂去掉非SM算法的套件。
This commit is contained in:
zs
2016-08-22 17:44:54 +08:00
parent c7a611e916
commit 5c315bca3f
5 changed files with 55 additions and 36 deletions

View File

@@ -2413,6 +2413,12 @@ void ssl_set_cert_masks(CERT *c, const SSL_CIPHER *cipher)
mask_a |= SSL_aECDSA;
emask_a |= SSL_aECDSA;
}
# endif
# ifndef NO_GMSSL
mask_a |= SSL_aSM2;
emask_a |= SSL_aSM2;
mask_k |= SSL_kSM2;
emask_k |= SSL_kSM2;
# endif
}
#endif