]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - e_gost_err.c
Refactor little-to-big-endian subroutine for magma
[openssl-gost/engine.git] / e_gost_err.c
index c71272e2c4fe09805f0e7c460f6576ba96c1125c..c6d221bfcf5601d35bce3e7149131721a1eb52ee 100644 (file)
@@ -141,6 +141,7 @@ static ERR_STRING_DATA GOST_str_reasons[] = {
     {ERR_PACK(0, 0, GOST_R_ERROR_SETTING_PEER_KEY), "error setting peer key"},
     {ERR_PACK(0, 0, GOST_R_INCOMPATIBLE_ALGORITHMS), "incompatible algorithms"},
     {ERR_PACK(0, 0, GOST_R_INCOMPATIBLE_PEER_KEY), "incompatible peer key"},
+    {ERR_PACK(0, 0, GOST_R_INVALID_BUFFER_SIZE), "invalid buffer size"},
     {ERR_PACK(0, 0, GOST_R_INVALID_CIPHER), "invalid cipher"},
     {ERR_PACK(0, 0, GOST_R_INVALID_CIPHER_PARAMS), "invalid cipher params"},
     {ERR_PACK(0, 0, GOST_R_INVALID_CIPHER_PARAM_OID),
@@ -176,6 +177,7 @@ static ERR_STRING_DATA GOST_str_reasons[] = {
 
 #endif
 
+#ifndef GOST_PROV
 static int lib_code = 0;
 static int error_loaded = 0;
 
@@ -220,3 +222,4 @@ void ERR_GOST_error(int function, int reason, char *file, int line)
     ERR_set_debug(file, line, NULL);
 #endif
 }
+#endif