Bug 39310 - control openssl-gost disabled не удаляет пустую строку в конфиге
Summary: control openssl-gost disabled не удаляет пустую строку в конфиге
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: openssl-gost-engine (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: manowar@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-18 11:13 MSK by Sergey Ivanov
Modified: 2023-08-14 15:42 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Ivanov 2020-11-18 11:13:39 MSK
При выполнении команды control openssl-gost enabled в файл /etc/openssl/openssl.cnf в секцию [ engine_section ] добавляется строка gost = gost_section и ниже пустая строка.
При выполнении команды control openssl-gost disabled в файл /etc/openssl/openssl.cnf из секции [ engine_section ] удаляется строка gost = gost_section НО не удаляется пустая строка добавленная ранее. Таким образом при включении/выключении openssl-gost секция [ engine_section ] постепенно будет забиваться пустыми строками.
Comment 1 manowar@altlinux.org 2021-12-23 19:49:32 MSK
Вроде исправил эту ошибку. И добавил тест для надёжности:

  https://git.altlinux.org/tasks/292532/

Проверьте, пожалуйста, у себя.
Comment 2 Repository Robot 2023-08-14 15:42:55 MSK
openssl-gost-engine-3.0.2-alt1 -> sisyphus:

 Mon Aug 14 2023 Paul Wolneykien <manowar@altlinux> 3.0.2-alt1
 - Upstream version 3.0.2.
 Mon Aug 14 2023 Paul Wolneykien <manowar@altlinux> 3.0.1-alt2
 - Disable GOST 28147-89 ECB cipher (patch).
 - Disable setting IV for MAC (patch).
 Tue May 02 2023 Paul Wolneykien <manowar@altlinux> 3.0.1-alt1
 - Fix: Implement GOST 28147-89 ECB cipher test case.
 - Upstream version 3.0.1.
 Fri Apr 07 2023 Paul Wolneykien <manowar@altlinux> 1.1.0.3.0.255.ge3af41d-alt6
 - Fix the version: don't use the .pN suffix.
 Thu Dec 23 2021 Paul Wolneykien <manowar@altlinux> 1.1.0.3.0.255.ge3af41d.p1-alt5
 - Run tests on the control script after build.
 - openssl-gost.control: Fixed appending a "name = value" pair to
   the end of the configuration file.
 - openssl-gost.control: Insert new "name = value" pair before the
   first empty line (closes: 39310).