This is an automated email from the ASF dual-hosted git repository.

chenBright pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 21339fc4 Fix macOS build compatibility issue (#3616)
21339fc4 is described below

commit 21339fc4b16f0520ae79cd855339f3f5daa60662
Author: nkysg <[email protected]>
AuthorDate: Sat Oct 17 18:06:51 2026 +0800

    Fix macOS build compatibility issue (#3616)
    
    * Fix macOS build compatibility issues
    
    * revert DEFINE_SMALL_ARRAY
---
 src/brpc/details/ssl_helper.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/brpc/details/ssl_helper.cpp b/src/brpc/details/ssl_helper.cpp
index 1673db1d..25ee4c6a 100644
--- a/src/brpc/details/ssl_helper.cpp
+++ b/src/brpc/details/ssl_helper.cpp
@@ -287,10 +287,10 @@ void ExtractHostnames(X509* x, std::vector<std::string>* 
hostnames) {
 #endif // SSL_CTRL_SET_TLSEXT_HOSTNAME 
 
     int i = -1;
-    X509_NAME* xname = X509_get_subject_name(x);
+    auto* xname = X509_get_subject_name(x);
     while ((i = X509_NAME_get_index_by_NID(xname, NID_commonName, i)) != -1) {
         char* str = nullptr;
-        X509_NAME_ENTRY* entry = X509_NAME_get_entry(xname, i);
+        auto* entry = X509_NAME_get_entry(xname, i);
         const int len = ASN1_STRING_to_UTF8((unsigned char**)&str, 
                                             X509_NAME_ENTRY_get_data(entry));
         if (len >= 0) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to