Guest User

Untitled

a guest
May 11th, 2025
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. Span s(reinterpret_cast<uint8_t*>(client_hello_buf), sizeof(client_hello_buf));
  2. try {
  3.     auto alpns = getALPNProtocols(s);
  4.     for (auto s : alpns.value()) std::cout << s << std::endl;
  5. }
  6. catch (std::exception& e)
  7. {
  8.     std::cout << e.what() << std::endl;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment