Replace deprecated wstring_convert (#290)

Co-authored-by: Jonas Borchelt <jonas.borchelt@icloud.com>
This commit is contained in:
Jonas Borchelt
2023-05-16 12:57:05 +02:00
committed by GitHub
parent a068ebd661
commit 4e3dd40cfe
2 changed files with 32 additions and 13 deletions

View File

@@ -18,9 +18,8 @@ TEST(HelperTest, Base64DER2PemCert) {
}
TEST(HelperTest, DER2PemCert) {
auto decoded = jwt::base::decode<jwt::alphabet::base64>(
jwt::base::pad<jwt::alphabet::base64>(google_cert_base64_der)
);
auto decoded =
jwt::base::decode<jwt::alphabet::base64>(jwt::base::pad<jwt::alphabet::base64>(google_cert_base64_der));
auto cert_pem = jwt::helper::convert_der_to_pem(decoded);
ASSERT_EQ(google_cert, cert_pem);
}