]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
New error code
authorDmitry Belyavskiy <beldmit@gmail.com>
Sat, 2 Jan 2016 19:58:34 +0000 (22:58 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 2 Jan 2016 19:58:34 +0000 (22:58 +0300)
e_gost_err.c
e_gost_err.h

index 101f047ef6b6b20fae108d725c8d164fc6a0c848..488e0e977ef9a6a7852912ac00e972d1e067240a 100644 (file)
@@ -1,6 +1,6 @@
 /* e_gost_err.c */
 /* ====================================================================
- * Copyright (c) 1999-2015 The OpenSSL Project.  All rights reserved.
+ * Copyright (c) 1999-2016 The OpenSSL Project.  All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -128,6 +128,7 @@ static ERR_STRING_DATA GOST_str_reasons[] = {
     {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_PARAMS), "invalid mac params"},
     {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"},
index b52811d403ffca00694d8cf9004391af57d17de2..5a600081c7374b0624a9c1ba521bbb8070eb86fd 100644 (file)
@@ -121,6 +121,7 @@ void ERR_GOST_error(int function, int reason, char *file, int line);
 # 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_PARAMS                        130
 # define GOST_R_INVALID_MAC_SIZE                          129
 # define GOST_R_INVALID_PARAMSET                          114
 # define GOST_R_KEY_IS_NOT_INITIALIZED                    115