* Get the list of supported ciphers sent by the client in the client's
* preference order.
*/
- void getSSLClientCiphers(std::string& clientCiphers) {
+ void getSSLClientCiphers(std::string& clientCiphers) const {
std::stringstream ciphersStream;
std::string cipherName;
/**
* Get the list of compression methods sent by the client in TLS Hello.
*/
- std::string getSSLClientComprMethods() {
+ std::string getSSLClientComprMethods() const {
if (!parseClientHello_) {
return "";
}
/**
* Get the list of TLS extensions sent by the client in the TLS Hello.
*/
- std::string getSSLClientExts() {
+ std::string getSSLClientExts() const {
if (!parseClientHello_) {
return "";
}
return folly::join(":", clientHelloInfo_->clientHelloExtensions_);
}
- std::string getSSLClientSigAlgs() {
+ std::string getSSLClientSigAlgs() const {
if (!parseClientHello_) {
return "";
}
* Get the list of shared ciphers between the server and the client.
* Works well for only SSLv2, not so good for SSLv3 or TLSv1.
*/
- void getSSLSharedCiphers(std::string& sharedCiphers) {
+ void getSSLSharedCiphers(std::string& sharedCiphers) const {
char ciphersBuffer[1024];
ciphersBuffer[0] = '\0';
SSL_get_shared_ciphers(ssl_, ciphersBuffer, sizeof(ciphersBuffer) - 1);
* Get the list of ciphers supported by the server in the server's
* preference order.
*/
- void getSSLServerCiphers(std::string& serverCiphers) {
+ void getSSLServerCiphers(std::string& serverCiphers) const {
serverCiphers = SSL_get_cipher_list(ssl_, 0);
int i = 1;
const char *cipher;
};
// For unit-tests
- ClientHelloInfo* getClientHelloInfo() {
+ ClientHelloInfo* getClientHelloInfo() const {
return clientHelloInfo_.get();
}
minWriteSize_ = minWriteSize;
}
- size_t getMinWriteSize() {
+ size_t getMinWriteSize() const {
return minWriteSize_;
}