Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add additional tls error codes #114

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/seastar/net/tls.hh
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,13 @@ namespace tls {
extern const int ERROR_UNSAFE_RENEGOTIATION_DENIED;
extern const int ERROR_UNKNOWN_SRP_USERNAME;
extern const int ERROR_PREMATURE_TERMINATION;
extern const int ERROR_PUSH;
extern const int ERROR_PULL;
extern const int ERROR_UNEXPECTED_PACKET;
extern const int ERROR_UNSUPPORTED_VERSION;
extern const int ERROR_NO_CIPHER_SUITES;
extern const int ERROR_DECRYPTION_FAILED;
extern const int ERROR_MAC_VERIFY_FAILED;
}
}

Expand Down
7 changes: 7 additions & 0 deletions src/net/tls.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2143,3 +2143,10 @@ const int seastar::tls::ERROR_SAFE_RENEGOTIATION_FAILED = GNUTLS_E_SAFE_RENEGOTI
const int seastar::tls::ERROR_UNSAFE_RENEGOTIATION_DENIED = GNUTLS_E_UNSAFE_RENEGOTIATION_DENIED;
const int seastar::tls::ERROR_UNKNOWN_SRP_USERNAME = GNUTLS_E_UNKNOWN_SRP_USERNAME;
const int seastar::tls::ERROR_PREMATURE_TERMINATION = GNUTLS_E_PREMATURE_TERMINATION;
const int seastar::tls::ERROR_PUSH = GNUTLS_E_PUSH_ERROR;
const int seastar::tls::ERROR_PULL = GNUTLS_E_PULL_ERROR;
const int seastar::tls::ERROR_UNEXPECTED_PACKET = GNUTLS_E_UNEXPECTED_PACKET;
const int seastar::tls::ERROR_UNSUPPORTED_VERSION = GNUTLS_E_UNSUPPORTED_VERSION_PACKET;
const int seastar::tls::ERROR_NO_CIPHER_SUITES = GNUTLS_E_NO_CIPHER_SUITES;
const int seastar::tls::ERROR_DECRYPTION_FAILED = GNUTLS_E_DECRYPTION_FAILED;
const int seastar::tls::ERROR_MAC_VERIFY_FAILED = GNUTLS_E_MAC_VERIFY_FAILED;