diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 7fe839092527589b38f014d854c51565b3c1adfa (patch) | |
tree | 309e97022d3530044b712b8f71318c78faf7856e /library/cpp/openssl | |
parent | d0d68c395c10da4cb56a1c845504570a04d7893e (diff) | |
download | ydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/openssl')
-rw-r--r-- | library/cpp/openssl/holders/bio.cpp | 2 | ||||
-rw-r--r-- | library/cpp/openssl/io/stream.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/openssl/holders/bio.cpp b/library/cpp/openssl/holders/bio.cpp index 42cc5fc1ef..e6473ec758 100644 --- a/library/cpp/openssl/holders/bio.cpp +++ b/library/cpp/openssl/holders/bio.cpp @@ -16,7 +16,7 @@ namespace NOpenSSL { ) : THolder(type, name) { - BIO_meth_set_write(*this, write); + BIO_meth_set_write(*this, write); BIO_meth_set_read(*this, read); BIO_meth_set_puts(*this, puts); BIO_meth_set_gets(*this, gets); diff --git a/library/cpp/openssl/io/stream.cpp b/library/cpp/openssl/io/stream.cpp index 0b4be38c0e..f9fdeb2746 100644 --- a/library/cpp/openssl/io/stream.cpp +++ b/library/cpp/openssl/io/stream.cpp @@ -25,15 +25,15 @@ namespace { } }; - int GetLastSslError() noexcept { + int GetLastSslError() noexcept { return ERR_peek_last_error(); } - const char* SslErrorText(int error) noexcept { + const char* SslErrorText(int error) noexcept { return ERR_error_string(error, nullptr); } - inline TStringBuf SslLastError() noexcept { + inline TStringBuf SslLastError() noexcept { return SslErrorText(GetLastSslError()); } @@ -69,7 +69,7 @@ namespace { using TBioPtr = TSslHolderPtr<bio_st>; using TX509Ptr = TSslHolderPtr<x509_st>; - inline TSslContextPtr CreateSslCtx(const ssl_method_st* method) { + inline TSslContextPtr CreateSslCtx(const ssl_method_st* method) { TSslContextPtr ctx(SSL_CTX_new(method)); if (!ctx) { |