From: Dmitry Belyavskiy Date: Tue, 6 Oct 2015 18:13:04 +0000 (+0300) Subject: Build fix X-Git-Tag: v1.1.0.2~42 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=2e3ebd289f98a4b3011cf28a8d2abf4f4398156c;p=openssl-gost%2Fengine.git Build fix --- diff --git a/e_gost_err.c b/e_gost_err.c index 8f3b35b..101f047 100644 --- a/e_gost_err.c +++ b/e_gost_err.c @@ -127,8 +127,8 @@ static ERR_STRING_DATA GOST_str_reasons[] = { {ERR_REASON(GOST_R_INVALID_DIGEST_TYPE), "invalid digest type"}, {ERR_REASON(GOST_R_INVALID_IV_LENGTH), "invalid iv length"}, {ERR_REASON(GOST_R_INVALID_MAC_KEY_LENGTH), "invalid mac key length"}, - {ERR_REASON(GOST_R_INVALID_MAC_KEY_SIZE) ,"invalid mac key size"}, - {ERR_REASON(GOST_R_INVALID_MAC_SIZE) ,"invalid mac size"}, + {ERR_REASON(GOST_R_INVALID_MAC_KEY_SIZE), "invalid mac key size"}, + {ERR_REASON(GOST_R_INVALID_MAC_SIZE), "invalid mac size"}, {ERR_REASON(GOST_R_INVALID_PARAMSET), "invalid paramset"}, {ERR_REASON(GOST_R_KEY_IS_NOT_INITIALIZED), "key is not initialized"}, {ERR_REASON(GOST_R_KEY_PARAMETERS_MISSING), "key parameters missing"}, diff --git a/e_gost_err.h b/e_gost_err.h index 1caaa94..b52811d 100644 --- a/e_gost_err.h +++ b/e_gost_err.h @@ -120,6 +120,8 @@ void ERR_GOST_error(int function, int reason, char *file, int line); # define GOST_R_INVALID_DIGEST_TYPE 111 # define GOST_R_INVALID_IV_LENGTH 112 # define GOST_R_INVALID_MAC_KEY_LENGTH 113 +# define GOST_R_INVALID_MAC_KEY_SIZE 128 +# define GOST_R_INVALID_MAC_SIZE 129 # define GOST_R_INVALID_PARAMSET 114 # define GOST_R_KEY_IS_NOT_INITIALIZED 115 # define GOST_R_KEY_PARAMETERS_MISSING 116 diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c index c2a465b..594329b 100644 --- a/gost_ec_keyx.c +++ b/gost_ec_keyx.c @@ -8,6 +8,7 @@ * Requires OpenSSL 0.9.9 for compilation * **********************************************************************/ #include +#include #include #include #include