refactor: prefer "using" over "typedef" (#1883)

* refactor: prefer "using" over "typedef"
This commit is contained in:
Charles Kerr
2021-10-06 09:26:07 -05:00
committed by GitHub
parent 035ca23226
commit cc204e0b2c
63 changed files with 295 additions and 299 deletions

View File

@@ -40,9 +40,9 @@
#define MY_NAME "tr_crypto_utils"
typedef API(ctr_drbg_context) api_ctr_drbg_context;
typedef API(sha1_context) api_sha1_context;
typedef API(dhm_context) api_dhm_context;
using api_ctr_drbg_context = API(ctr_drbg_context);
using api_sha1_context = API(sha1_context);
using api_dhm_context = API(dhm_context);
static void log_polarssl_error(int error_code, char const* file, int line)
{