]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Improve diagnostics
authorDmitry Belyavskiy <beldmit@gmail.com>
Sat, 9 May 2020 14:24:09 +0000 (17:24 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sat, 9 May 2020 14:24:09 +0000 (17:24 +0300)
gost_crypt.c

index 54b4d9517324975bbcc1926ce2ed03083f0f4607..eaf173bc7481bde6789e2f4837a71da3c9cb2222 100644 (file)
@@ -489,6 +489,8 @@ const struct gost_cipher_info *get_encryption_params(ASN1_OBJECT *obj)
         if (nid == NID_undef) {
             GOSTerr(GOST_F_GET_ENCRYPTION_PARAMS,
                     GOST_R_INVALID_CIPHER_PARAM_OID);
+            ERR_add_error_data(3, "Unsupported CRYPT_PARAMS='",
+                params, "' specified in environment or in config");
             return NULL;
         }
     } else {