Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion client/SslCertificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ struct free_argument<R (&)(T *)>
template<class T>
static auto toQByteArray(T &x)
{
return QByteArray((const char*)x->data, x->length);
const auto *str = std::to_address(x);
return QByteArray((const char*)ASN1_STRING_get0_data(str),
ASN1_STRING_length(str));
}

template <auto Func, typename Arg>
Expand Down
Loading