diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-05-18 15:08:50 -0700 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-05-18 15:08:50 -0700 |
commit | cf4124e06aaa666684dd35f3f14fa127465abddf (patch) | |
tree | 110afcb86ec6ccee8d8339b6c12a5673b4eb62aa /src | |
parent | ad654aca5e8b121594929f962f1937a37fe4b6e5 (diff) |
Putting tsi util in header so that it can be used elsewhere.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/security/security_connector.c | 2 | ||||
-rw-r--r-- | src/core/security/security_connector.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/core/security/security_connector.c b/src/core/security/security_connector.c index 61cb20f6b9..b17e0e0dfa 100644 --- a/src/core/security/security_connector.c +++ b/src/core/security/security_connector.c @@ -82,7 +82,7 @@ static const char *ssl_cipher_suites(void) { /* -- Common methods. -- */ /* Returns the first property with that name. */ -static const tsi_peer_property *tsi_peer_get_property_by_name( +const tsi_peer_property *tsi_peer_get_property_by_name( const tsi_peer *peer, const char *name) { size_t i; if (peer == NULL) return NULL; diff --git a/src/core/security/security_connector.h b/src/core/security/security_connector.h index 47abe05cff..87b7ca9b8b 100644 --- a/src/core/security/security_connector.h +++ b/src/core/security/security_connector.h @@ -198,4 +198,8 @@ typedef struct { grpc_security_status grpc_ssl_server_security_connector_create( const grpc_ssl_server_config *config, grpc_security_connector **sc); +/* Util. */ +const tsi_peer_property *tsi_peer_get_property_by_name( + const tsi_peer *peer, const char *name); + #endif /* GRPC_INTERNAL_CORE_SECURITY_SECURITY_CONNECTOR_H */ |