#include "channel_credentials.h"
#include <ext/standard/sha1.h>
#include <ext/spl/spl_exceptions.h>
#include <zend_exceptions.h>
#include <grpc/support/alloc.h>
#include <grpc/support/string_util.h>
#include "call_credentials.h"
#include "channel.h"
Go to the source code of this file.
Functions | |
php_grpc_zend_object | create_wrapped_grpc_channel_credentials (zend_class_entry *class_type TSRMLS_DC) |
static grpc_ssl_roots_override_result | get_ssl_roots_override (char **pem_root_certs) |
void | grpc_init_channel_credentials (TSRMLS_D) |
zval * | grpc_php_wrap_channel_credentials (grpc_channel_credentials *wrapped, char *hashstr, zend_bool has_call_creds TSRMLS_DC) |
if (p->hashstr !=NULL) | |
if (p->wrapped !=NULL) | |
PHP_METHOD (ChannelCredentials, createComposite) | |
PHP_METHOD (ChannelCredentials, createDefault) | |
PHP_METHOD (ChannelCredentials, createInsecure) | |
PHP_METHOD (ChannelCredentials, createSsl) | |
PHP_METHOD (ChannelCredentials, createXds) | |
PHP_METHOD (ChannelCredentials, invalidateDefaultRootsPem) | |
PHP_METHOD (ChannelCredentials, isDefaultRootsPemSet) | |
PHP_METHOD (ChannelCredentials, setDefaultRootsPem) | |
Variables | |
static zend_function_entry | channel_credentials_methods [] |
static char * | default_pem_root_certs = NULL |
zend_class_entry * | grpc_ce_channel_credentials |
php_grpc_zend_object create_wrapped_grpc_channel_credentials | ( | zend_class_entry *class_type | TSRMLS_DC | ) |
Definition at line 64 of file channel_credentials.c.
|
static |
Definition at line 40 of file channel_credentials.c.
void grpc_init_channel_credentials | ( | TSRMLS_D | ) |
Definition at line 326 of file channel_credentials.c.
zval* grpc_php_wrap_channel_credentials | ( | grpc_channel_credentials * | wrapped, |
char * | hashstr, | ||
zend_bool has_call_creds | TSRMLS_DC | ||
) |
Definition at line 73 of file channel_credentials.c.
Definition at line 52 of file channel_credentials.c.
Definition at line 56 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
createComposite | |||
) |
Create composite credentials from two existing credentials.
ChannelCredentials | $cred1_obj | The first credential |
CallCredentials | $cred2_obj | The second credential |
Definition at line 200 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
createDefault | |||
) |
Create a default channel credentials object.
Definition at line 133 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
createInsecure | |||
) |
Create insecure channel credentials
Definition at line 235 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
createSsl | |||
) |
Create SSL credentials.
string | null | $pem_root_certs | = null PEM encoding of the server root certificates (optional) |
string | null | $private_key | = null PEM encoding of the client's private key (optional) |
string | null | $cert_chain | = null PEM encoding of the client's certificate chain (optional) |
Definition at line 149 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
createXds | |||
) |
Create XDS channel credentials
ChannelCredentials | $fallback_creds | The fallback credentials used if the channel target does not have the 'xds:///' scheme or if the xDS control plane does not provide information on how to fetch credentials dynamically. |
Definition at line 247 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
invalidateDefaultRootsPem | |||
) |
free default roots pem, if it is set
Definition at line 122 of file channel_credentials.c.
PHP_METHOD | ( | ChannelCredentials | , |
isDefaultRootsPemSet | |||
) |
PHP_METHOD | ( | ChannelCredentials | , |
setDefaultRootsPem | |||
) |
Set default roots pem.
string | $pem_roots | PEM encoding of the server root certificates |
Definition at line 93 of file channel_credentials.c.
|
static |
Definition at line 306 of file channel_credentials.c.
|
static |
Definition at line 38 of file channel_credentials.c.
zend_class_entry* grpc_ce_channel_credentials |
class ChannelCredentials
Definition at line 36 of file channel_credentials.c.