File cas_ssl.c
FileList > broker > cas_ssl.c
Go to the source code of this file
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <assert.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include <fcntl.h>
#include "cas_common.h"
#include "cas_log.h"
#include "cas_ssl.h"
Public Attributes
| Type |
Name |
| bool |
ssl_client = [**false**](broker__monitor_8c.md#function-timeout)
|
Public Static Attributes
| Type |
Name |
| SSL * |
ssl = [**NULL**](freelistheap_8h.md#define-null)
|
Public Functions
Public Static Functions
Macros
Public Attributes Documentation
variable ssl_client
Public Static Attributes Documentation
variable ssl
Public Functions Documentation
function cas_init_ssl
int cas_init_ssl (
int sd
)
function cas_ssl_close
void cas_ssl_close (
int client_sock_fd
)
function cas_ssl_read
int cas_ssl_read (
int sd,
char * buf,
int size
)
function cas_ssl_write
int cas_ssl_write (
int sd,
const char * buf,
int size
)
function is_ssl_data_ready
bool is_ssl_data_ready (
int sock_fd
)
Public Static Functions Documentation
function cas_ssl_validity_check
static int cas_ssl_validity_check (
SSL_CTX * ctx
)
Macro Definition Documentation
define CERTF
#define CERTF `"cas_ssl_cert.crt"`
define CERT_FILENAME_LEN
#define CERT_FILENAME_LEN `512`
define ER_CERT_COPPUPTED
#define ER_CERT_COPPUPTED `-3`
define ER_CERT_EXPIRED
#define ER_CERT_EXPIRED `-2`
define ER_SSL_GENERAL
#define ER_SSL_GENERAL `-1`
define KEYF
#define KEYF `"cas_ssl_cert.key"`
define SOCKET_BLOCK
define SOCKET_NONBLOCK
#define SOCKET_NONBLOCK `1`
The documentation for this class was generated from the following file cubrid/src/broker/cas_ssl.c