mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-13 03:46:26 +08:00
sm2, ssl and license update
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
#include <openssl/lhash.h>
|
||||
#include "ssl_locl.h"
|
||||
|
||||
int SSL_library_init(void)
|
||||
static int _SSL_library_init(void)
|
||||
{
|
||||
|
||||
#ifndef OPENSSL_NO_DES
|
||||
@@ -137,6 +137,7 @@ int SSL_library_init(void)
|
||||
#ifndef OPENSSL_NO_ECDSA
|
||||
EVP_add_digest(EVP_ecdsa());
|
||||
#endif
|
||||
|
||||
/* If you want support for phased out ciphers, add the following */
|
||||
#if 0
|
||||
EVP_add_digest(EVP_sha());
|
||||
@@ -153,3 +154,12 @@ int SSL_library_init(void)
|
||||
ssl_load_ciphers();
|
||||
return (1);
|
||||
}
|
||||
|
||||
int SSL_library_init(void)
|
||||
{
|
||||
|
||||
EVP_add_cipher(EVP_sms4_cbc());
|
||||
EVP_add_digest(EVP_sm3());
|
||||
|
||||
return _SSL_library_init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user