GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>
#include "src/core/lib/security/credentials/credentials.h"
#include <stdio.h>
#include <string.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/http/httpcli.h"
#include "src/core/lib/http/parser.h"
#include "src/core/lib/iomgr/executor.h"
#include "src/core/lib/json/json.h"
#include "src/core/lib/surface/api_trace.h"
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include <grpc/support/sync.h>
#include <grpc/support/time.h>
void grpc_call_credentials_release | ( | grpc_call_credentials * | creds | ) |
Releases a call credentials object.
The creator of the credentials object is responsible for its release.
bool grpc_channel_credentials_attach_credentials | ( | grpc_channel_credentials * | credentials, |
const char * | authority, | ||
grpc_channel_credentials * | control_plane_creds | ||
) |
EXPERIMENTAL.
API MAY CHANGE IN THE FUTURE. Attaches control_plane_creds to credentials under the key authority. Returns false if authority is already present, in which case no changes are made. Note that this API is not thread safe. Only one thread may attach control plane creds to a given credentials object at any one time, and new control plane creds must not be attached after credentials has been used to create a channel.
grpc_channel_credentials* grpc_channel_credentials_find_in_args | ( | const grpc_channel_args * | args | ) |
grpc_channel_credentials* grpc_channel_credentials_from_arg | ( | const grpc_arg * | arg | ) |
void grpc_channel_credentials_release | ( | grpc_channel_credentials * | creds | ) |
Releases a channel credentials object.
The creator of the credentials object is responsible for its release.
grpc_arg grpc_channel_credentials_to_arg | ( | grpc_channel_credentials * | credentials | ) |
void grpc_control_plane_credentials_init | ( | ) |
bool grpc_control_plane_credentials_register | ( | const char * | authority, |
grpc_channel_credentials * | control_plane_creds | ||
) |
EXPERIMENTAL.
API MAY CHANGE IN THE FUTURE. Registers control_plane_creds in the global registry under the key authority. Returns false if authority is already present, in which case no changes are made.
grpc_server_credentials* grpc_find_server_credentials_in_args | ( | const grpc_channel_args * | args | ) |
grpc_server_credentials* grpc_server_credentials_from_arg | ( | const grpc_arg * | arg | ) |
void grpc_server_credentials_release | ( | grpc_server_credentials * | creds | ) |
Releases a server_credentials object.
The creator of the server_credentials object is responsible for its release.
void grpc_server_credentials_set_auth_metadata_processor | ( | grpc_server_credentials * | creds, |
grpc_auth_metadata_processor | processor | ||
) |
grpc_arg grpc_server_credentials_to_arg | ( | grpc_server_credentials * | p | ) |
void grpc_test_only_control_plane_credentials_destroy | ( | ) |
void grpc_test_only_control_plane_credentials_force_init | ( | ) |