diff options
author | Mark D. Roth <roth@google.com> | 2017-09-01 15:04:13 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-09-01 15:04:13 -0700 |
commit | 2caf021772ee241da3366e7dfd32aa4ee1134092 (patch) | |
tree | 53807318821baaa38be9e0b3c7d7d2e7b193dd6a /src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi | |
parent | c928cfee2b94a99747f97ff8c5fb09277a1352b7 (diff) |
Change plugin credentials API to support both sync and async modes.
Diffstat (limited to 'src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi')
-rw-r--r-- | src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi index a0e69dd613..98f306feb7 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd.pxi @@ -49,8 +49,11 @@ cdef class AuthMetadataContext: cdef grpc_auth_metadata_context context -cdef void plugin_get_metadata( +cdef int plugin_get_metadata( void *state, grpc_auth_metadata_context context, - grpc_credentials_plugin_metadata_cb cb, void *user_data) with gil + grpc_credentials_plugin_metadata_cb cb, void *user_data, + grpc_metadata creds_md[GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX], + size_t *num_creds_md, grpc_status_code *status, + const char **error_details) with gil cdef void plugin_destroy_c_plugin_state(void *state) with gil |