Merge pull request #1644 from jboeuf/tsi_util_refactoring

Putting tsi util in header so that it can be used elsewhere.
pull/1651/head
Nicolas Noble 10 years ago
commit 5a8b87c5b7
  1. 2
      src/core/security/security_connector.c
  2. 4
      src/core/security/security_connector.h

@ -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;

@ -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 */

Loading…
Cancel
Save