mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-17 22:06:26 +08:00
Bug fix
Thanks to github.com/Jkinglyf
This commit is contained in:
@@ -163,6 +163,8 @@ static ERR_STRING_DATA ERR_str_libraries[] = {
|
||||
{ERR_PACK(ERR_LIB_CBCMAC, 0, 0), "CBCMAC routines"},
|
||||
{ERR_PACK(ERR_LIB_OTP, 0, 0), "OTP routines"},
|
||||
{ERR_PACK(ERR_LIB_SM9, 0, 0), "SM9 routines"},
|
||||
{ERR_PACK(ERR_LIB_PAILLIER, 0, 0), "Paillier routines"},
|
||||
{ERR_PACK(ERR_LIB_FFX, 0, 0), "FFX routines"},
|
||||
# endif
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
@@ -206,6 +206,8 @@ typedef struct err_state_st {
|
||||
# define ERR_LIB_CBCMAC 54
|
||||
# define ERR_LIB_OTP 55
|
||||
# define ERR_LIB_SM9 56
|
||||
# define ERR_LIB_PAILLIER 57
|
||||
# define ERR_LIB_FFX 58
|
||||
# endif
|
||||
|
||||
# define ERR_LIB_USER 128
|
||||
@@ -252,6 +254,8 @@ typedef struct err_state_st {
|
||||
# define CBCMACerr(f,r) ERR_PUT_error(ERR_LIB_CBCMAC,(f),(r),__FILE__,__LINE__);
|
||||
# define OTPerr(f,r) ERR_PUT_error(ERR_LIB_OTP,(f),(r),__FILE__,__LINE__);
|
||||
# define SM9err(f,r) ERR_PUT_error(ERR_LIB_SM9,(f),(r),__FILE__,__LINE__);
|
||||
# define PAILLIERerr(f,r) ERR_PUT_error(ERR_LIB_PAILLIER,(f),(r),__FILE__,__LINE__);
|
||||
# define FFXerr(f,r) ERR_PUT_error(ERR_LIB_FFX,(f),(r),__FILE__,__LINE__);
|
||||
# endif
|
||||
|
||||
/*
|
||||
@@ -318,6 +322,8 @@ typedef struct err_state_st {
|
||||
# define ERR_R_CBCMAC_LIB ERR_LIB_CBCMAC/* 54 */
|
||||
# define ERR_R_OTP_LIB ERR_LIB_CBCMAC/* 55 */
|
||||
# define ERR_R_SM9_LIB ERR_LIB_SM9/* 56 */
|
||||
# define ERR_R_PAILLIER_LIB ERR_LIB_PAILLIER/* 57 */
|
||||
# define ERR_R_FFX_LIB ERR_LIB_FFX/* 58 */
|
||||
# endif
|
||||
|
||||
# define ERR_R_NESTED_ASN1_ERROR 58
|
||||
|
||||
@@ -116,6 +116,8 @@
|
||||
# include <openssl/cbcmac.h>
|
||||
# include <openssl/otp.h>
|
||||
# include <openssl/sm9.h>
|
||||
# include <openssl/paillier.h>
|
||||
# include <openssl/ffx.h>
|
||||
#endif
|
||||
|
||||
void ERR_load_crypto_strings(void)
|
||||
@@ -182,6 +184,8 @@ void ERR_load_crypto_strings(void)
|
||||
ERR_load_CBCMAC_strings();
|
||||
ERR_load_OTP_strings();
|
||||
ERR_load_SM9_strings();
|
||||
ERR_load_PAILLIER_strings();
|
||||
ERR_load_FFX_strings();
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ L CPK crypto/cpk/cpk.h crypto/cpk/cpk_err.c
|
||||
L CBCMAC crypto/cbcmac/cbcmac.h crypto/cbcmac/cbcmac_err.c
|
||||
L OTP crypto/otp/otp.h crypto/otp/otp_err.c
|
||||
L SM9 crypto/sm9/sm9.h crypto/sm9/sm9_err.c
|
||||
L PAILLIER crypto/paillier/paillier.h crypto/paillier/pai_err.c
|
||||
L FFX crypto/ffx/ffx.h crypto/ffx/ffx_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