aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/openssl/io/stream.cpp
diff options
context:
space:
mode:
authordeshevoy <deshevoy@yandex-team.ru>2022-02-10 16:46:56 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:56 +0300
commite988f30484abe5fdeedcc7a5d3c226c01a21800c (patch)
tree0a217b173aabb57b7e51f8a169989b1a3e0309fe /library/cpp/openssl/io/stream.cpp
parent33ee501c05d3f24036ae89766a858930ae66c548 (diff)
downloadydb-e988f30484abe5fdeedcc7a5d3c226c01a21800c.tar.gz
Restoring authorship annotation for <deshevoy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/openssl/io/stream.cpp')
-rw-r--r--library/cpp/openssl/io/stream.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/openssl/io/stream.cpp b/library/cpp/openssl/io/stream.cpp
index 0b4be38c0e..191e5422f7 100644
--- a/library/cpp/openssl/io/stream.cpp
+++ b/library/cpp/openssl/io/stream.cpp
@@ -84,47 +84,47 @@ namespace {
return ctx;
}
- struct TStreamIO : public NOpenSSL::TAbstractIO {
- inline TStreamIO(IInputStream* in, IOutputStream* out)
- : In(in)
- , Out(out)
- {
- }
-
- int Write(const char* data, size_t dlen, size_t* written) override {
- Out->Write(data, dlen);
-
- *written = dlen;
- return 1;
+ struct TStreamIO : public NOpenSSL::TAbstractIO {
+ inline TStreamIO(IInputStream* in, IOutputStream* out)
+ : In(in)
+ , Out(out)
+ {
+ }
+
+ int Write(const char* data, size_t dlen, size_t* written) override {
+ Out->Write(data, dlen);
+
+ *written = dlen;
+ return 1;
}
- int Read(char* data, size_t dlen, size_t* readbytes) override {
- *readbytes = In->Read(data, dlen);
- return 1;
+ int Read(char* data, size_t dlen, size_t* readbytes) override {
+ *readbytes = In->Read(data, dlen);
+ return 1;
}
- int Puts(const char* buf) override {
- Y_UNUSED(buf);
- return -1;
+ int Puts(const char* buf) override {
+ Y_UNUSED(buf);
+ return -1;
}
- int Gets(char* buf, int size) override {
- Y_UNUSED(buf);
- Y_UNUSED(size);
- return -1;
+ int Gets(char* buf, int size) override {
+ Y_UNUSED(buf);
+ Y_UNUSED(size);
+ return -1;
}
- void Flush() override {
+ void Flush() override {
}
- IInputStream* In;
- IOutputStream* Out;
+ IInputStream* In;
+ IOutputStream* Out;
};
struct TSslIO: public TSslInitOnDemand, public TOptions {
inline TSslIO(IInputStream* in, IOutputStream* out, const TOptions& opts)
: TOptions(opts)
- , Io(in, out)
+ , Io(in, out)
, Ctx(CreateClientContext())
, Ssl(ConstructSsl())
{
@@ -175,8 +175,8 @@ namespace {
InitVerification(ssl.Get());
}
- BIO_up_ref(Io); // SSL_set_bio consumes only one reference if rbio and wbio are the same
- SSL_set_bio(ssl.Get(), Io, Io);
+ BIO_up_ref(Io); // SSL_set_bio consumes only one reference if rbio and wbio are the same
+ SSL_set_bio(ssl.Get(), Io, Io);
return ssl;
}
@@ -233,7 +233,7 @@ namespace {
}
}
- TStreamIO Io;
+ TStreamIO Io;
TSslContextPtr Ctx;
TSslPtr Ssl;
};