|
|
@ -48,7 +48,6 @@ |
|
|
|
#include <stdbool.h> |
|
|
|
#include <stdbool.h> |
|
|
|
|
|
|
|
|
|
|
|
#include <grpc/grpc.h> |
|
|
|
#include <grpc/grpc.h> |
|
|
|
#include <grpc/support/log.h> |
|
|
|
|
|
|
|
#include <grpc/grpc_security.h> |
|
|
|
#include <grpc/grpc_security.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "completion_queue.h" |
|
|
|
#include "completion_queue.h" |
|
|
@ -172,7 +171,6 @@ PHP_METHOD(Channel, __construct) { |
|
|
|
if (creds == NULL) { |
|
|
|
if (creds == NULL) { |
|
|
|
channel->wrapped = grpc_insecure_channel_create(target, &args, NULL); |
|
|
|
channel->wrapped = grpc_insecure_channel_create(target, &args, NULL); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
gpr_log(GPR_DEBUG, "Initialized secure channel"); |
|
|
|
|
|
|
|
channel->wrapped = |
|
|
|
channel->wrapped = |
|
|
|
grpc_secure_channel_create(creds->wrapped, target, &args, NULL); |
|
|
|
grpc_secure_channel_create(creds->wrapped, target, &args, NULL); |
|
|
|
} |
|
|
|
} |
|
|
|