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:
parent
0a63448b86
commit
84f81983aa
7 changed files with 117 additions and 235 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue