Skip to content
Snippets Groups Projects
Commit 06517593 authored by Ken Payson's avatar Ken Payson
Browse files

Load roots.pem relative to current file

parent 1b5f0579
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ import pkg_resources ...@@ -35,7 +35,7 @@ import pkg_resources
cdef grpc_ssl_roots_override_result ssl_roots_override_callback( cdef grpc_ssl_roots_override_result ssl_roots_override_callback(
char **pem_root_certs) with gil: char **pem_root_certs) with gil:
temporary_pem_root_certs = pkg_resources.resource_string( temporary_pem_root_certs = pkg_resources.resource_string(
'grpc._cython', '_credentials/roots.pem') __name__.rstrip('.cygrpc'), '_credentials/roots.pem')
pem_root_certs[0] = <char *>gpr_malloc(len(temporary_pem_root_certs) + 1) pem_root_certs[0] = <char *>gpr_malloc(len(temporary_pem_root_certs) + 1)
memcpy( memcpy(
pem_root_certs[0], <char *>temporary_pem_root_certs, pem_root_certs[0], <char *>temporary_pem_root_certs,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment