Classes | Typedefs | Functions | Variables
rb_channel_credentials.c File Reference
#include <ruby/ruby.h>
#include "rb_channel_credentials.h"
#include <string.h>
#include "rb_call_credentials.h"
#include "rb_grpc.h"
#include "rb_grpc_imports.generated.h"
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
Include dependency graph for rb_channel_credentials.c:

Go to the source code of this file.

Classes

struct  grpc_rb_channel_credentials
 

Typedefs

typedef struct grpc_rb_channel_credentials grpc_rb_channel_credentials
 

Functions

static grpc_ssl_roots_override_result get_ssl_roots_override (char **pem_root_certs_ptr)
 
static VALUE grpc_rb_channel_credentials_alloc (VALUE cls)
 
static VALUE grpc_rb_channel_credentials_compose (int argc, VALUE *argv, VALUE self)
 
static void grpc_rb_channel_credentials_free (void *p)
 
static void grpc_rb_channel_credentials_free_internal (void *p)
 
static VALUE grpc_rb_channel_credentials_init (int argc, VALUE *argv, VALUE self)
 
static void grpc_rb_channel_credentials_mark (void *p)
 
grpc_channel_credentialsgrpc_rb_get_wrapped_channel_credentials (VALUE v)
 
bool grpc_rb_is_channel_credentials (VALUE v)
 
static VALUE grpc_rb_set_default_roots_pem (VALUE self, VALUE roots)
 
VALUE grpc_rb_wrap_channel_credentials (grpc_channel_credentials *c, VALUE mark)
 
void Init_grpc_channel_credentials ()
 

Variables

static VALUE grpc_rb_cChannelCredentials = Qnil
 
static rb_data_type_t grpc_rb_channel_credentials_data_type
 
static ID id_pem_cert_chain
 
static ID id_pem_private_key
 
static ID id_pem_root_certs
 
static char * pem_root_certs = NULL
 

Typedef Documentation

◆ grpc_rb_channel_credentials

Function Documentation

◆ get_ssl_roots_override()

static grpc_ssl_roots_override_result get_ssl_roots_override ( char **  pem_root_certs_ptr)
static

Definition at line 229 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_alloc()

static VALUE grpc_rb_channel_credentials_alloc ( VALUE  cls)
static

Definition at line 97 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_compose()

static VALUE grpc_rb_channel_credentials_compose ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

Definition at line 200 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_free()

static void grpc_rb_channel_credentials_free ( void *  p)
static

Definition at line 64 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_free_internal()

static void grpc_rb_channel_credentials_free_internal ( void *  p)
static

Definition at line 51 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_init()

static VALUE grpc_rb_channel_credentials_init ( int  argc,
VALUE *  argv,
VALUE  self 
)
static

Definition at line 145 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_mark()

static void grpc_rb_channel_credentials_mark ( void *  p)
static

Definition at line 70 of file rb_channel_credentials.c.

◆ grpc_rb_get_wrapped_channel_credentials()

grpc_channel_credentials* grpc_rb_get_wrapped_channel_credentials ( VALUE  v)

Definition at line 275 of file rb_channel_credentials.c.

◆ grpc_rb_is_channel_credentials()

bool grpc_rb_is_channel_credentials ( VALUE  v)

Definition at line 284 of file rb_channel_credentials.c.

◆ grpc_rb_set_default_roots_pem()

static VALUE grpc_rb_set_default_roots_pem ( VALUE  self,
VALUE  roots 
)
static

Definition at line 239 of file rb_channel_credentials.c.

◆ grpc_rb_wrap_channel_credentials()

VALUE grpc_rb_wrap_channel_credentials ( grpc_channel_credentials c,
VALUE  mark 
)

Definition at line 109 of file rb_channel_credentials.c.

◆ Init_grpc_channel_credentials()

void Init_grpc_channel_credentials ( )

Definition at line 248 of file rb_channel_credentials.c.

Variable Documentation

◆ grpc_rb_cChannelCredentials

VALUE grpc_rb_cChannelCredentials = Qnil
static

Definition at line 36 of file rb_channel_credentials.c.

◆ grpc_rb_channel_credentials_data_type

rb_data_type_t grpc_rb_channel_credentials_data_type
static
Initial value:
= {
"grpc_channel_credentials",
{NULL, NULL}},
NULL,
NULL,
}

Definition at line 82 of file rb_channel_credentials.c.

◆ id_pem_cert_chain

ID id_pem_cert_chain
static

Definition at line 131 of file rb_channel_credentials.c.

◆ id_pem_private_key

ID id_pem_private_key
static

Definition at line 128 of file rb_channel_credentials.c.

◆ id_pem_root_certs

ID id_pem_root_certs
static

Definition at line 125 of file rb_channel_credentials.c.

◆ pem_root_certs

char* pem_root_certs = NULL
static

Definition at line 38 of file rb_channel_credentials.c.

GRPC_RB_MEMSIZE_UNAVAILABLE
#define GRPC_RB_MEMSIZE_UNAVAILABLE
Definition: rb_grpc.h:57
grpc_rb_channel_credentials_free
static void grpc_rb_channel_credentials_free(void *p)
Definition: rb_channel_credentials.c:64
grpc_rb_channel_credentials_mark
static void grpc_rb_channel_credentials_mark(void *p)
Definition: rb_channel_credentials.c:70


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:27