From 57948369c49f1a78692bdd9494d678c129075d71 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Sat, 13 Feb 2021 00:14:28 +0100 Subject: [PATCH] Create a separate test module for ASN.1 test helper functions The code will be moved in a subsequent commit. Signed-off-by: Gilles Peskine --- tests/include/test/asn1_helpers.h | 26 ++++++++++++++++++++++++++ tests/src/asn1_helpers.c | 25 +++++++++++++++++++++++++ visualc/VS2010/mbedTLS.vcxproj | 2 ++ 3 files changed, 53 insertions(+) create mode 100644 tests/include/test/asn1_helpers.h create mode 100644 tests/src/asn1_helpers.c diff --git a/tests/include/test/asn1_helpers.h b/tests/include/test/asn1_helpers.h new file mode 100644 index 000000000..ddcc0c9a6 --- /dev/null +++ b/tests/include/test/asn1_helpers.h @@ -0,0 +1,26 @@ +/** Helper functions for tests that manipulate ASN.1 data. + */ +/* + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ASN1_HELPERS_H +#define ASN1_HELPERS_H + +#include "test/helpers.h" + + +#endif /* ASN1_HELPERS_H */ diff --git a/tests/src/asn1_helpers.c b/tests/src/asn1_helpers.c new file mode 100644 index 000000000..6ffdca90a --- /dev/null +++ b/tests/src/asn1_helpers.c @@ -0,0 +1,25 @@ +/** \file asn1_helpers.c + * + * \brief Helper functions for tests that manipulate ASN.1 data. + */ + +/* + * Copyright The Mbed TLS Contributors + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + diff --git a/visualc/VS2010/mbedTLS.vcxproj b/visualc/VS2010/mbedTLS.vcxproj index 36ad7652e..c2051e6d6 100644 --- a/visualc/VS2010/mbedTLS.vcxproj +++ b/visualc/VS2010/mbedTLS.vcxproj @@ -232,6 +232,7 @@ + @@ -355,6 +356,7 @@ +