mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-13 12:27:25 +00:00
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 <[email protected]> Signed-off-by: TRodziewicz <[email protected]>
This commit is contained in:
committed by
TRodziewicz
parent
5935d75385
commit
61bb9b75d2
@@ -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 */
|
||||||
@@ -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 <test/helpers.h>
|
||||||
|
#include <test/macros.h>
|
||||||
|
|
||||||
@@ -232,6 +232,7 @@
|
|||||||
<ClInclude Include="..\..\include\psa\crypto_struct.h" />
|
<ClInclude Include="..\..\include\psa\crypto_struct.h" />
|
||||||
<ClInclude Include="..\..\include\psa\crypto_types.h" />
|
<ClInclude Include="..\..\include\psa\crypto_types.h" />
|
||||||
<ClInclude Include="..\..\include\psa\crypto_values.h" />
|
<ClInclude Include="..\..\include\psa\crypto_values.h" />
|
||||||
|
<ClInclude Include="..\..\tests\include\test\asn1_helpers.h" />
|
||||||
<ClInclude Include="..\..\tests\include\test\constant_flow.h" />
|
<ClInclude Include="..\..\tests\include\test\constant_flow.h" />
|
||||||
<ClInclude Include="..\..\tests\include\test\fake_external_rng_for_test.h" />
|
<ClInclude Include="..\..\tests\include\test\fake_external_rng_for_test.h" />
|
||||||
<ClInclude Include="..\..\tests\include\test\helpers.h" />
|
<ClInclude Include="..\..\tests\include\test\helpers.h" />
|
||||||
@@ -355,6 +356,7 @@
|
|||||||
<ClCompile Include="..\..\library\x509write_crt.c" />
|
<ClCompile Include="..\..\library\x509write_crt.c" />
|
||||||
<ClCompile Include="..\..\library\x509write_csr.c" />
|
<ClCompile Include="..\..\library\x509write_csr.c" />
|
||||||
<ClCompile Include="..\..\library\xtea.c" />
|
<ClCompile Include="..\..\library\xtea.c" />
|
||||||
|
<ClCompile Include="..\..\tests\src\asn1_helpers.c" />
|
||||||
<ClCompile Include="..\..\tests\src\fake_external_rng_for_test.c" />
|
<ClCompile Include="..\..\tests\src\fake_external_rng_for_test.c" />
|
||||||
<ClCompile Include="..\..\tests\src\helpers.c" />
|
<ClCompile Include="..\..\tests\src\helpers.c" />
|
||||||
<ClCompile Include="..\..\tests\src\psa_crypto_helpers.c" />
|
<ClCompile Include="..\..\tests\src\psa_crypto_helpers.c" />
|
||||||
|
|||||||
Reference in New Issue
Block a user