projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a const getter for X509 used in handshake (server-side)
[folly.git]
/
folly
/
io
/
async
/
AsyncSSLSocket.cpp
diff --git
a/folly/io/async/AsyncSSLSocket.cpp
b/folly/io/async/AsyncSSLSocket.cpp
index 572d8800a330ceb0449afb76dab6af395321ea7e..a326ca5c1f6e0145060c55f64485ceb6f458a131 100644
(file)
--- a/
folly/io/async/AsyncSSLSocket.cpp
+++ b/
folly/io/async/AsyncSSLSocket.cpp
@@
-880,6
+880,10
@@
int AsyncSSLSocket::getSSLCertSize() const {
return certSize;
}
+const X509* AsyncSSLSocket::getSelfCert() const {
+ return (ssl_ != nullptr) ? SSL_get_certificate(ssl_) : nullptr;
+}
+
bool AsyncSSLSocket::willBlock(int ret,
int* sslErrorOut,
unsigned long* errErrorOut) noexcept {