From: Dmitry Belyavskiy Date: Sat, 9 May 2020 14:24:09 +0000 (+0300) Subject: Improve diagnostics X-Git-Tag: v3.0.0~129 X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=openssl-gost%2Fengine.git;a=commitdiff_plain;h=4072cdf035bc927afc6af01e6c904adb534a8416 Improve diagnostics --- diff --git a/gost_crypt.c b/gost_crypt.c index 54b4d95..eaf173b 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -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 {