From d240ed3e88dbb164d36a8007939b4ab7913f8435 Mon Sep 17 00:00:00 2001 From: Anton Date: Sat, 28 Jul 2018 19:56:52 +0400 Subject: add header file PICA_security.h to group important security parameters in one place --- pica-client/openssltool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pica-client/openssltool.cpp') diff --git a/pica-client/openssltool.cpp b/pica-client/openssltool.cpp index a899c74..314dbd5 100644 --- a/pica-client/openssltool.cpp +++ b/pica-client/openssltool.cpp @@ -16,6 +16,7 @@ along with this program. If not, see . */ #include "openssltool.h" +#include "../PICA_security.h" #include #include #include @@ -119,7 +120,7 @@ bool OpenSSLTool::GenRSAKeySignal(quint32 numbits, QString keyfile, bool setpass args << "genrsa" << "-out" << keyfile; if (setpassword) - args << "-passout" << "stdin" << "-aes256"; + args << "-passout" << "stdin" << PICA_PRIVKEYENCALGO; if (!rand.isEmpty()) args << "-rand" << rand; @@ -160,6 +161,7 @@ bool OpenSSLTool::GenCertSignal(QString cert_file, QString keyfile, QString keyp << "-days" << "3680" << "-utf8" << "-batch" + << PICA_CERTDIGESTALGO << "-passin" << "stdin"); -- cgit v1.2.1