1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#include "qopcuax509utils_p.h"
16#include "openssl_symbols_p.h"
17
18QT_BEGIN_NAMESPACE
19
20QString getOpenSslError()
21{
22 char errorBuf[1024];
23 errorBuf[0] = 0;
24 q_ERR_error_string_n(e: q_ERR_get_error(), buf: errorBuf, len: sizeof(errorBuf));
25 return QString::fromLatin1(ba: errorBuf);
26}
27
28QT_END_NAMESPACE
29
30

source code of qtopcua/src/opcua/x509/qopcuax509utils.cpp