mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-31 23:14:15 +08:00
more sm. tests
This commit is contained in:
@@ -155,6 +155,11 @@ static ERR_STRING_DATA ERR_str_libraries[] = {
|
||||
{ERR_PACK(ERR_LIB_FIPS, 0, 0), "FIPS routines"},
|
||||
{ERR_PACK(ERR_LIB_CMS, 0, 0), "CMS routines"},
|
||||
{ERR_PACK(ERR_LIB_HMAC, 0, 0), "HMAC routines"},
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
{ERR_PACK(ERR_LIB_ECIES, 0, 0), "ECIES routines"},
|
||||
{ERR_PACK(ERR_LIB_SM2, 0, 0), "SM2 routines"},
|
||||
{ERR_PACK(ERR_LIB_SKF, 0, 0), "SKF routines"},
|
||||
# endif
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
|
||||
@@ -197,8 +197,11 @@ typedef struct err_state_st {
|
||||
# define ERR_LIB_TS 47
|
||||
# define ERR_LIB_HMAC 48
|
||||
# define ERR_LIB_JPAKE 49
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
# define ERR_LIB_ECIES 50
|
||||
# define ERR_LIB_SM2 51
|
||||
# define ERR_LIB_SKF 52
|
||||
# endif
|
||||
|
||||
# define ERR_LIB_USER 128
|
||||
|
||||
@@ -235,8 +238,11 @@ typedef struct err_state_st {
|
||||
# define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),__FILE__,__LINE__)
|
||||
# define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),__FILE__,__LINE__)
|
||||
# define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__)
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
# define ECIESerr(f,r) ERR_PUT_error(ERR_LIB_ECIES,(f),(r),__FILE__,__LINE__)
|
||||
# define SM2err(f, r) ERR_PUT_error(ERR_LIB_SM2,(f),(r),__FILE__,__LINE__)
|
||||
# define SM2err(f,r) ERR_PUT_error(ERR_LIB_SM2,(f),(r),__FILE__,__LINE__)
|
||||
# define SKFerr(f,r) ERR_PUT_error(ERR_LIB_SKF,(f),(r),__FILE__,__LINE__)
|
||||
# endif
|
||||
|
||||
/*
|
||||
* Borland C seems too stupid to be able to shift and do longs in the
|
||||
@@ -293,8 +299,11 @@ typedef struct err_state_st {
|
||||
# define ERR_R_ECDH_LIB ERR_LIB_ECDH/* 43 */
|
||||
# define ERR_R_STORE_LIB ERR_LIB_STORE/* 44 */
|
||||
# define ERR_R_TS_LIB ERR_LIB_TS/* 45 */
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
# define ERR_R_ECIES_LIB ERR_LIB_ECIES/* 50 */
|
||||
# define ERR_R_SM2_LIB ERR_LIB_SM2/* 51 */
|
||||
# define ERR_R_SKF_LIB ERR_LIB_SKF/* 52 */
|
||||
# endif
|
||||
|
||||
# define ERR_R_NESTED_ASN1_ERROR 58
|
||||
# define ERR_R_BAD_ASN1_OBJECT_HEADER 59
|
||||
|
||||
@@ -107,6 +107,9 @@
|
||||
#ifndef OPENSSL_NO_JPAKE
|
||||
# include <openssl/jpake.h>
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_GMSSL
|
||||
# include <openssl/sm2.h>
|
||||
#endif
|
||||
|
||||
void ERR_load_crypto_strings(void)
|
||||
{
|
||||
@@ -164,5 +167,9 @@ void ERR_load_crypto_strings(void)
|
||||
# ifndef OPENSSL_NO_JPAKE
|
||||
ERR_load_JPAKE_strings();
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
ERR_load_ECIES_strings();
|
||||
ERR_load_SM2_strings();
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -35,6 +35,9 @@ L TS crypto/ts/ts.h crypto/ts/ts_err.c
|
||||
L HMAC crypto/hmac/hmac.h crypto/hmac/hmac_err.c
|
||||
L CMS crypto/cms/cms.h crypto/cms/cms_err.c
|
||||
L JPAKE crypto/jpake/jpake.h crypto/jpake/jpake_err.c
|
||||
L ECIES crypto/ecies/ecies.h crypto/ecies/ecies_err.c
|
||||
L SM2 crypto/sm2/sm2.h crypto/sm2/sm2_err.c
|
||||
L SKF crypto/skf/skf.h crypto/skf/skf_err.c
|
||||
|
||||
# additional header files to be scanned for function names
|
||||
L NONE crypto/x509/x509_vfy.h NONE
|
||||
|
||||
Reference in New Issue
Block a user