aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi
diff options
context:
space:
mode:
authorGravatar Santosh Ananthakrishnan <santosh@dropbox.com>2018-03-27 16:10:02 -0700
committerGravatar Santosh Ananthakrishnan <santosh@dropbox.com>2018-06-07 22:20:31 +0000
commitfd4c5dd031e548af3672021d9e7e0d079e1f55d2 (patch)
treeddcf7fc6af8154b4a06d8ed194b95eef8d5843a4 /src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi
parentb441dbbc2c534f88bb671b4ca1564e4ef65c3e36 (diff)
TLS session resumption support for Python clients
This change adds an experimental ssl_session_cache_lru function to the Python API that returns an encapsulated grpc_ssl_session_cache (#14483). Python clients may use this object as an argument for the grpc.ssl_session_cache channel option if they wish to cache and resume TLS sessions with a server.
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi')
-rw-r--r--src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi
index 7e9ea33ca0..8d73215247 100644
--- a/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi
+++ b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi
@@ -57,6 +57,11 @@ cdef class ChannelCredentials:
cdef grpc_channel_credentials *c_credentials
+cdef class SSLSessionCacheLRU:
+
+ cdef grpc_ssl_session_cache *_cache
+
+
cdef class SSLChannelCredentials(ChannelCredentials):
cdef readonly object _pem_root_certificates