MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / strm_ctrl

Function strm_ctrl

tdport/td/net/SslStream.cpp:85–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83int strm_write(BIO *b, const char *buf, int len);
84
85long strm_ctrl(BIO *b, int cmd, long num, void *ptr) {
86 switch (cmd) {
87 case BIO_CTRL_FLUSH:
88 return 1;
89 case BIO_CTRL_PUSH:
90 case BIO_CTRL_POP:
91 return 0;
92#if defined(BIO_CTRL_GET_KTLS_SEND)
93 case BIO_CTRL_GET_KTLS_SEND:
94 return 0;
95#endif
96#if defined(BIO_CTRL_GET_KTLS_RECV)
97 case BIO_CTRL_GET_KTLS_RECV:
98 return 0;
99#endif
100 default:
101 LOG(FATAL) << b << " " << cmd << " " << num << " " << ptr;
102 }
103 return 1;
104}
105
106BIO_METHOD *BIO_s_sslstream() {
107 static BIO_METHOD *result = [] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected