From 317df86ba3b392410cb3e7d6ac99e182cdd2ea3c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 25 Jan 2024 17:51:06 +0100 Subject: base64: Move base64 encoding support --- cpukit/libtest/t-test-hash-sha256.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpukit/libtest/t-test-hash-sha256.c') diff --git a/cpukit/libtest/t-test-hash-sha256.c b/cpukit/libtest/t-test-hash-sha256.c index b83285326b..79da4b5dfb 100644 --- a/cpukit/libtest/t-test-hash-sha256.c +++ b/cpukit/libtest/t-test-hash-sha256.c @@ -35,7 +35,6 @@ */ #include -#include #include @@ -45,6 +44,8 @@ #include #endif +#include + typedef struct { SHA256_CTX sha256; T_putchar putchar; @@ -94,7 +95,7 @@ T_report_hash_sha256_finalize(void) ctx = &T_report_hash_sha256_instance; SHA256_Final(hash, &ctx->sha256); T_printf("Y:ReportHash:SHA256:"); - (void)_IO_Base64url(ctx->putchar, ctx->putchar_arg, hash, + (void)_Base64url_Encode(ctx->putchar, ctx->putchar_arg, hash, sizeof(hash), NULL, INT_MAX); T_printf("\n"); } -- cgit v1.2.3