mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
revert test code
This commit is contained in:
parent
6191e0af90
commit
cfe230438a
1 changed files with 0 additions and 16 deletions
|
@ -222,28 +222,12 @@ void show_macro_features()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#include <srs_rtmp_handshake.hpp>
|
|
||||||
/**
|
/**
|
||||||
* main entrance.
|
* main entrance.
|
||||||
*/
|
*/
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
int ret = ERROR_SUCCESS;
|
int ret = ERROR_SUCCESS;
|
||||||
|
|
||||||
_srs_internal::SrsDH dh;
|
|
||||||
dh.initialize();
|
|
||||||
|
|
||||||
char key[128]; int nb_key = 128;
|
|
||||||
dh.copy_public_key(key, nb_key);
|
|
||||||
for (int i = 0; i < nb_key; i++) {
|
|
||||||
printf("%#x, ", (unsigned char)key[i]);
|
|
||||||
if (((i+1) %16) == 0) {
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
exit(0);
|
|
||||||
|
|
||||||
// TODO: support both little and big endian.
|
// TODO: support both little and big endian.
|
||||||
srs_assert(srs_is_little_endian());
|
srs_assert(srs_is_little_endian());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue