Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Dec 18, 2024
1 parent 3276e51 commit 2babad0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 5 additions & 5 deletions cpp/src/Ice/SSL/SchannelTransceiverI.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ namespace Ice::SSL::Schannel
void setBufferSize(int rcvSize, int sndSize) final;

private:
IceInternal::SocketOperation sslHandshake(SecBuffer* initialBuffer = nullptr);
[[nodiscard]] IceInternal::SocketOperation sslHandshake(SecBuffer* initialBuffer = nullptr);

size_t decryptMessage(IceInternal::Buffer&);
size_t encryptMessage(IceInternal::Buffer&);
[[nodiscard]] size_t decryptMessage(IceInternal::Buffer&);
[[nodiscard]] size_t encryptMessage(IceInternal::Buffer&);

bool writeRaw(IceInternal::Buffer&);
bool readRaw(IceInternal::Buffer&);
[[nodiscard]] bool writeRaw(IceInternal::Buffer&);
[[nodiscard]] bool readRaw(IceInternal::Buffer&);

enum State
{
Expand Down
11 changes: 6 additions & 5 deletions cpp/src/Ice/SSL/SecureTransportTransceiverI.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ namespace Ice::SSL::SecureTransport
const std::string&,
const Ice::SSL::ClientAuthenticationOptions&);
~TransceiverI();
IceInternal::NativeInfoPtr getNativeInfo() final;

IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&) final;
IceInternal::SocketOperation closing(bool, std::exception_ptr) final;
[[nodiscard]] IceInternal::NativeInfoPtr getNativeInfo() final;

[[nodiscard]] IceInternal::SocketOperation initialize(IceInternal::Buffer&, IceInternal::Buffer&) final;
[[nodiscard]] IceInternal::SocketOperation closing(bool, std::exception_ptr) final;
void close() final;
IceInternal::SocketOperation write(IceInternal::Buffer&) final;
IceInternal::SocketOperation read(IceInternal::Buffer&) final;
[[nodiscard]] IceInternal::SocketOperation write(IceInternal::Buffer&) final;
[[nodiscard]] IceInternal::SocketOperation read(IceInternal::Buffer&) final;

[[nodiscard]] std::string protocol() const final;
[[nodiscard]] std::string toString() const final;
Expand Down

0 comments on commit 2babad0

Please sign in to comment.