#include <openssl/ssl.h>#include <openssl/x509v3.h>#include "../../globals.h"#include "../../tcp_server.h"#include "../../tcp_conn.h"#include "../../ut.h"#include "tls_select.h"#include "../../tls/tls_config.h"

Go to the source code of this file.
| static int get_cert | ( | X509 ** | cert, | |
| struct tcp_connection ** | c, | |||
| struct sip_msg * | msg, | |||
| int | my | |||
| ) | [inline, static] |
Definition at line 68 of file tls_select.c.
References get_cur_connection(), get_ssl(), LM_ERR, LM_INFO, and tcpconn_put().
Referenced by tlsops_alt(), tlsops_cert_version(), tlsops_comp(), tlsops_sn(), and tlsops_validity().
| struct tcp_connection* get_cur_connection | ( | struct sip_msg * | msg | ) | [read] |
Definition at line 39 of file tls_select.c.
References LM_ERR, receive_info::proto, receive_info::proto_reserved1, PROTO_TLS, sip_msg::rcv, tcp_con_lifetime, tcpconn_get(), tcpconn_put(), and tcp_connection::type.
Referenced by get_cert(), tlsops_bits(), tlsops_check_cert(), tlsops_cipher(), tlsops_desc(), and tlsops_version().
| static SSL* get_ssl | ( | struct tcp_connection * | c | ) | [inline, static] |
Definition at line 58 of file tls_select.c.
References tcp_connection::extra_data, and LM_ERR.
Referenced by get_cert(), tlsops_bits(), tlsops_check_cert(), tlsops_cipher(), tlsops_desc(), and tlsops_version().
| int tlsops_alt | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 514 of file tls_select.c.
References ip_addr::addr, ip_addr::af, buf, CERT_LOCAL, CERT_PEER, COMP_E, COMP_HOST, COMP_IP, COMP_URI, _pv_value::flags, get_cert(), ip_addr2a(), _pv_name::isname, ip_addr::len, _str::len, LM_CRIT, LM_ERR, NULL, pv_get_null(), PV_VAL_STR, _pv_param::pvn, _pv_value::rs, _str::s, tcpconn_put(), tcp_connection::type, ip_addr::u, and _pv_name::u.
| int tlsops_bits | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 130 of file tls_select.c.
References buf, _pv_value::flags, get_cur_connection(), get_ssl(), int2str(), _str::len, LM_ERR, LM_INFO, pv_get_null(), PV_VAL_INT, PV_VAL_STR, _pv_value::ri, _pv_value::rs, _str::s, and tcpconn_put().
| int tlsops_cert_version | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 237 of file tls_select.c.
References buf, CERT_LOCAL, CERT_PEER, _pv_value::flags, get_cert(), int2str(), INT2STR_MAX_LEN, _pv_name::isname, _str::len, LM_CRIT, pv_get_null(), PV_VAL_STR, _pv_param::pvn, _pv_value::rs, _str::s, tcpconn_put(), _pv_name::u, and version.
| int tlsops_check_cert | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 270 of file tls_select.c.
References CERT_EXPIRED, CERT_REVOKED, CERT_SELFSIGNED, CERT_VERIFIED, _pv_value::flags, get_cur_connection(), get_ssl(), _pv_name::isname, _str::len, LM_CRIT, pv_get_null(), PV_VAL_INT, PV_VAL_STR, _pv_param::pvn, _pv_value::ri, _pv_value::rs, _str::s, str_init, tcpconn_put(), and _pv_name::u.
| int tlsops_cipher | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 94 of file tls_select.c.
References buf, _pv_value::flags, get_cur_connection(), get_ssl(), _str::len, LM_ERR, LM_INFO, pv_get_null(), PV_VAL_STR, _pv_value::rs, _str::s, and tcpconn_put().
| int tlsops_comp | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 408 of file tls_select.c.
References buf, CERT_ISSUER, CERT_LOCAL, CERT_PEER, CERT_SUBJECT, COMP_C, COMP_CN, COMP_L, COMP_O, COMP_OU, COMP_ST, _pv_value::flags, get_cert(), _pv_name::isname, _str::len, LM_CRIT, LM_DBG, LM_ERR, pv_get_null(), PV_VAL_STR, _pv_param::pvn, _pv_value::rs, _str::s, tcpconn_put(), and _pv_name::u.
| int tlsops_desc | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 206 of file tls_select.c.
References buf, _pv_value::flags, get_cur_connection(), get_ssl(), _str::len, LM_INFO, pv_get_null(), PV_VAL_STR, _pv_value::rs, _str::s, and tcpconn_put().
| int tlsops_sn | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 375 of file tls_select.c.
References buf, CERT_LOCAL, CERT_PEER, _pv_value::flags, get_cert(), int2str(), INT2STR_MAX_LEN, _pv_name::isname, _str::len, LM_CRIT, pv_get_null(), PV_VAL_INT, PV_VAL_STR, _pv_param::pvn, _pv_value::ri, _pv_value::rs, _str::s, tcpconn_put(), and _pv_name::u.
| int tlsops_tlsext | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
| int tlsops_validity | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 320 of file tls_select.c.
References buf, CERT_NOTAFTER, CERT_NOTBEFORE, _pv_value::flags, get_cert(), _pv_name::isname, _str::len, LM_CRIT, LM_ERR, pv_get_null(), PV_VAL_STR, _pv_param::pvn, _pv_value::rs, _str::s, tcpconn_put(), and _pv_name::u.
| int tlsops_version | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) |
Definition at line 168 of file tls_select.c.
References buf, _pv_value::flags, get_cur_connection(), get_ssl(), _str::len, LM_ERR, LM_INFO, pv_get_null(), PV_VAL_STR, _pv_value::rs, _str::s, tcpconn_put(), and version.
1.5.6