diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-12-16 12:58:19 -0800 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-12-18 10:11:03 -0800 |
commit | 6aee7a8c456585b175b9a7feaee2cff3bf834a11 (patch) | |
tree | 484435e49618b00ad476a61489d38ab7e9f277a0 /src/php/ext/grpc/channel_credentials.c | |
parent | 17ab6a1c5037f4e02cf55bbaa74a03a333895236 (diff) |
php: make channel
credentials createInsecure explicit
Diffstat (limited to 'src/php/ext/grpc/channel_credentials.c')
-rw-r--r-- | src/php/ext/grpc/channel_credentials.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/php/ext/grpc/channel_credentials.c b/src/php/ext/grpc/channel_credentials.c index df4a5d5162..ae9a9897fc 100644 --- a/src/php/ext/grpc/channel_credentials.c +++ b/src/php/ext/grpc/channel_credentials.c @@ -169,6 +169,14 @@ PHP_METHOD(ChannelCredentials, createComposite) { RETURN_DESTROY_ZVAL(creds_object); } +/** + * Create insecure channel credentials + * @return null + */ +PHP_METHOD(ChannelCredentials, createInsecure) { + RETURN_NULL(); +} + static zend_function_entry channel_credentials_methods[] = { PHP_ME(ChannelCredentials, createDefault, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) @@ -176,6 +184,8 @@ static zend_function_entry channel_credentials_methods[] = { ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) PHP_ME(ChannelCredentials, createComposite, NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) + PHP_ME(ChannelCredentials, createInsecure, NULL, + ZEND_ACC_PUBLIC | ZEND_ACC_STATIC) PHP_FE_END}; void grpc_init_channel_credentials(TSRMLS_D) { |