26 #include <ext/spl/spl_exceptions.h>
27 #include <zend_exceptions.h>
42 zend_class_entry *class_type TSRMLS_DC) {
44 zend_object_std_init(&
intern->std, class_type TSRMLS_CC);
45 object_properties_init(&
intern->std, class_type);
47 server_credentials_ce_handlers);
52 zval *server_credentials_object;
55 wrapped_grpc_server_credentials *server_credentials =
57 server_credentials_object);
58 server_credentials->wrapped =
wrapped;
59 return server_credentials_object;
79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
"s!ss", &
pem_root_certs,
81 &private_key_length, &pem_key_cert_pair.
cert_chain,
82 &cert_chain_length) == FAILURE) {
83 zend_throw_exception(spl_ce_InvalidArgumentException,
84 "createSsl expects 3 strings", 1 TSRMLS_CC);
96 ZEND_BEGIN_ARG_INFO_EX(arginfo_createSsl, 0, 0, 3)
98 ZEND_ARG_INFO(0, pem_private_key)
99 ZEND_ARG_INFO(0, pem_cert_chain)
104 ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
114 server_credentials_ce_handlers);