diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2019-02-05 14:21:51 +0100 |
---|---|---|
committer | Rainer Keller <Rainer.Keller@qt.io> | 2019-02-19 08:44:02 +0000 |
commit | 1274cfe8d2be35105007c6895f6104a679d075e0 (patch) | |
tree | bb5fb2a102d493a4832887df268600fe6fff5a00 /config.tests | |
parent | 0d176aba1291f652649def4018ab3b57132c7757 (diff) |
Add mbedtls configure switch
Change-Id: I038a94c5fa815caabf651df34669ecc90e60064f
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Diffstat (limited to 'config.tests')
-rw-r--r-- | config.tests/mbedtls/main.cpp | 49 | ||||
-rw-r--r-- | config.tests/mbedtls/mbedtls.pro | 1 |
2 files changed, 50 insertions, 0 deletions
diff --git a/config.tests/mbedtls/main.cpp b/config.tests/mbedtls/main.cpp new file mode 100644 index 0000000..62cb19b --- /dev/null +++ b/config.tests/mbedtls/main.cpp @@ -0,0 +1,49 @@ +/**************************************************************************** +** +** Copyright (C) 2019 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of the QtOpcUa module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL3$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPLv3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or later as published by the Free +** Software Foundation and appearing in the file LICENSE.GPL included in +** the packaging of this file. Please review the following information to +** ensure the GNU General Public License version 2.0 requirements will be +** met: http://www.gnu.org/licenses/gpl-2.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include <mbedtls/x509.h> +#include <mbedtls/x509_crt.h> + +int main(int argc, char *argv[]) +{ + mbedtls_pk_context pk; + mbedtls_pk_init( &pk ); + + mbedtls_x509_crt remoteCertificate; + mbedtls_x509_crt_init(&remoteCertificate); + + return 0; +} diff --git a/config.tests/mbedtls/mbedtls.pro b/config.tests/mbedtls/mbedtls.pro new file mode 100644 index 0000000..28dcadc --- /dev/null +++ b/config.tests/mbedtls/mbedtls.pro @@ -0,0 +1 @@ +SOURCES += main.cpp |