1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Replace base64 to match MIT license. 3.0.32

This commit is contained in:
winlin 2018-07-22 17:56:38 +08:00
parent 0a63448b86
commit 84f81983aa
7 changed files with 117 additions and 235 deletions

View file

@ -1674,5 +1674,15 @@ VOID TEST(KernelUtility, CRC32MPEGTS)
}
}
VOID TEST(KernelUtility, Base64Decode)
{
string cipher = "dXNlcjpwYXNzd29yZA==";
string expect = "user:password";
string plaintext;
EXPECT_TRUE(srs_success == srs_av_base64_decode(cipher, plaintext));
EXPECT_TRUE(expect == plaintext);
}
#endif