MCPcopy Create free account
hub / github.com/apache/brpc / GetPeerCertificate

Method GetPeerCertificate

src/brpc/socket.cpp:1596–1602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594}
1595
1596X509* Socket::GetPeerCertificate() const {
1597 if (ssl_state() != SSL_CONNECTED) {
1598 return NULL;
1599 }
1600 BAIDU_SCOPED_LOCK(_ssl_session_mutex);
1601 return SSL_get_peer_certificate(_ssl_session);
1602}
1603
1604int Socket::Write(butil::IOBuf* data, const WriteOptions* options_in) {
1605 WriteOptions opt;

Callers 2

CheckCertFunction · 0.80
get_peer_certificateMethod · 0.80

Calls 1

ssl_stateFunction · 0.85

Tested by 1

CheckCertFunction · 0.64