1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

test: specify input file type through enum

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti
2023-04-18 11:20:36 +02:00
parent 8b7d4323da
commit c9cb5324b7
2 changed files with 29 additions and 24 deletions

View File

@@ -3,6 +3,11 @@
#include "mbedtls/pem.h"
#include "mbedtls/oid.h"
typedef enum {
TEST_PEM,
TEST_DER
} pkwrite_file_format_t;
static void pk_write_check_common(char *key_file, int is_public_key, int is_der)
{
mbedtls_pk_context key;