]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Build fix
authorDmitry Belyavskiy <beldmit@gmail.com>
Tue, 6 Oct 2015 18:13:04 +0000 (21:13 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Tue, 6 Oct 2015 18:13:04 +0000 (21:13 +0300)
e_gost_err.c
e_gost_err.h
gost_ec_keyx.c

index 8f3b35b5afbe8636084e9d541d54b011b51f9e03..101f047ef6b6b20fae108d725c8d164fc6a0c848 100644 (file)
@@ -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"},
index 1caaa9488b4676ec1293d372102a0ae7fdf60aa0..b52811d403ffca00694d8cf9004391af57d17de2 100644 (file)
@@ -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
index c2a465b15c342f188f24eaee584abf95a80faec8..594329b50979c21fe12d5da3c8838bb54d53dbae 100644 (file)
@@ -8,6 +8,7 @@
  *          Requires OpenSSL 0.9.9 for compilation                    *
  **********************************************************************/
 #include <openssl/evp.h>
+#include <openssl/err.h>
 #include <openssl/rand.h>
 #include <string.h>
 #include <openssl/objects.h>