cdjingit commented on code in PR #2102: URL: https://github.com/apache/brpc/pull/2102#discussion_r1092734124
########## src/brpc/details/ssl_helper.cpp: ########## @@ -441,6 +441,42 @@ static int SetSSLOptions(SSL_CTX* ctx, const std::string& ciphers, return 0; } +static int ServerALPNCallback(SSL* ssl, + const unsigned char** out, unsigned char* outlen, + const unsigned char* in, unsigned int inlen, void* arg) { + const std::string* alpns = static_cast<const std::string*>(arg); + if (alpns == nullptr) { + return SSL_TLSEXT_ERR_NOACK; + } + + // Use OpenSSL standard select API. + int select_result = SSL_select_next_proto( Review Comment: const int select_result = -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org