Skip to content

Commit

Permalink
[nemo-systemsettings] Convert signature to human-readable form. Fixes…
Browse files Browse the repository at this point in the history
… JB#51446

Ensures the signature is provided in human-readable (octet) form.

Reverts a change accidentally introduced during the uptrade to OpenSSL
1.1 in commit 0ee3036.
  • Loading branch information
llewelld committed Dec 10, 2020
1 parent 8d02e4e commit 12c0bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/certificatemodel.cpp
Expand Up @@ -158,7 +158,7 @@ struct X509Certificate
rv.append(qMakePair(QStringLiteral("Algorithm"), objectToString(sig_alg->algorithm, shortForm)));

BIO *b = BIO_new(BIO_s_mem());
ASN1_STRING_print_ex(b, sig, 0);
X509_signature_dump(b, sig, 0);
QString d(bioToString(b).replace(QChar('\n'), QString()));
rv.append(qMakePair(QStringLiteral("Data"), d.trimmed()));
BIO_free(b);
Expand Down

0 comments on commit 12c0bff

Please sign in to comment.