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

Method get_peer_certificate

src/brpc/controller.cpp:1581–1584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581x509_st* Controller::get_peer_certificate() const {
1582 Socket* s = _current_call.sending_sock.get();
1583 return s ? s->GetPeerCertificate() : NULL;
1584}
1585
1586int Controller::GetSockOption(int level, int optname, void* optval, socklen_t* optlen) {
1587 Socket* s = _current_call.sending_sock.get();

Callers

nothing calls this directly

Calls 2

GetPeerCertificateMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected