#include "ink_config.h"
#include "Diags.h"
#include <openssl/opensslconf.h>
#include <openssl/ssl.h>
Go to the source code of this file.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file P_SSLUtils.h.
#define OPENSSL_THREAD_DEFINES |
Definition at line 28 of file P_SSLUtils.h.
#define SSL_CLEAR_DYN_STAT | ( | x | ) |
do { \ RecSetRawStatSum(ssl_rsb, (x), 0); \ RecSetRawStatCount(ssl_rsb, (x), 0); \ } while (0);
Definition at line 95 of file P_SSLUtils.h.
Referenced by SSLInitializeStatistics().
#define SSL_DECREMENT_DYN_STAT | ( | x | ) | RecIncrRawStat(ssl_rsb, NULL, (int) x, -1) |
Definition at line 92 of file P_SSLUtils.h.
#define SSL_INCREMENT_DYN_STAT | ( | x | ) | RecIncrRawStat(ssl_rsb, NULL, (int) x, 1) |
Definition at line 91 of file P_SSLUtils.h.
Referenced by increment_ssl_client_error(), increment_ssl_server_error(), SSLNetVConnection::load_buffer_and_write(), ssl_callback_info(), ssl_read_from_net(), SSLNetVConnection::sslClientHandShakeEvent(), and SSLNetVConnection::sslServerHandShakeEvent().
#define SSL_INCREMENT_DYN_STAT_EX | ( | x, | ||
y | ||||
) | RecIncrRawStat(ssl_rsb, NULL, (int) x, y) |
Definition at line 94 of file P_SSLUtils.h.
Referenced by SSLNetVConnection::sslServerHandShakeEvent().
#define SSL_SET_COUNT_DYN_STAT | ( | x, | ||
count | ||||
) | RecSetRawStatCount(ssl_rsb, x, count) |
Definition at line 93 of file P_SSLUtils.h.
Referenced by SSLRecRawStatSyncCount().
#define SSLDebug | ( | fmt, | ||
... | ||||
) | SSLDiagnostic(DiagsMakeLocation(), true, NULL, fmt, ##__VA_ARGS__) |
Definition at line 120 of file P_SSLUtils.h.
Referenced by SSLNetProcessor::start().
#define SSLDebugVC | ( | vc, | ||
fmt, | ||||
... | ||||
) | SSLDiagnostic(DiagsMakeLocation(), true, vc, fmt, ##__VA_ARGS__) |
Definition at line 121 of file P_SSLUtils.h.
Referenced by SSLNetVConnection::sslServerHandShakeEvent().
#define SSLError | ( | fmt, | ||
... | ||||
) | SSLDiagnostic(DiagsMakeLocation(), false, NULL, fmt, ##__VA_ARGS__) |
Definition at line 117 of file P_SSLUtils.h.
Referenced by SSLInitClientContext(), SSLInitializeLibrary(), SSLInitializeStatistics(), SSLInitServerContext(), SSLPrivateKeyHandler(), and SSLNetProcessor::start().
#define SSLErrorVC | ( | vc, | ||
fmt, | ||||
... | ||||
) | SSLDiagnostic(DiagsMakeLocation(), false, vc, fmt, ##__VA_ARGS__) |
Definition at line 118 of file P_SSLUtils.h.
Referenced by SSLNetVConnection::sslStartHandShake().
typedef ats_scoped_resource<ssl::detail::SCOPED_BIO_TRAITS> scoped_BIO |
Definition at line 151 of file P_SSLUtils.h.
typedef ats_scoped_resource<ssl::detail::SCOPED_X509_TRAITS> scoped_X509 |
Definition at line 150 of file P_SSLUtils.h.
enum SSL_Stats |
Definition at line 41 of file P_SSLUtils.h.
void SSLDebugBufferPrint | ( | const char * | tag, | |
const char * | buffer, | |||
unsigned | buflen, | |||
const char * | message | |||
) |
Definition at line 885 of file SSLUtils.cc.
References is_debug_tag_set.
Referenced by ssl_read_from_net().
SSL_CTX* SSLDefaultServerContext | ( | ) |
Definition at line 899 of file SSLUtils.cc.
Referenced by SSLInitializeStatistics(), and SSLInitServerContext().
void SSLDiagnostic | ( | const SrcLoc & | loc, | |
bool | debug, | |||
SSLNetVConnection * | vc, | |||
const char * | fmt, | |||
... | ||||
) |
void const char* SSLErrorName | ( | int | ssl_error | ) |
Definition at line 863 of file SSLUtils.cc.
References countof.
Referenced by SSLNetVConnection::sslServerHandShakeEvent().
SSL_CTX* SSLInitClientContext | ( | const SSLConfigParams * | param | ) |
Definition at line 1124 of file SSLUtils.cc.
References SSLConfigParams::client_cipherSuite, SSLConfigParams::client_verify_depth, SSLConfigParams::clientCACertFilename, SSLConfigParams::clientCACertPath, SSLConfigParams::clientCertPath, SSLConfigParams::clientKeyPath, SSLConfigParams::clientVerify, SSLConfigParams::init_ssl_ctx_cb, SSLConfigParams::ssl_client_ctx_protocols, SSLConfigParams::ssl_ctx_options, and SSLError.
Referenced by SSLNetProcessor::start().
void SSLInitializeLibrary | ( | ) |
Definition at line 507 of file SSLUtils.cc.
References ats_free(), ats_malloc(), ats_realloc(), mutex_buf, open_ssl_initialized, SSL_locking_callback(), SSL_pthreads_thread_id(), ssl_session_ticket_index, and SSLError.
Referenced by SSLNetProcessor::start().
void SSLInitializeStatistics | ( | ) |
Definition at line 540 of file SSLUtils.cc.
References Debug, ink_assert, ink_hash_table_create(), ink_hash_table_insert(), ink_hash_table_isbound(), InkHashTableKeyType_Word, RecAllocateRawStatBlock(), RECD_INT, RECP_NON_PERSISTENT, RECP_PERSISTENT, RecRawStatSyncCount(), RecRawStatSyncSum(), RecRegisterRawStat, RECT_PROCESS, ssl_cipher_name_table, ssl_cipher_stats_end, ssl_cipher_stats_start, SSL_CLEAR_DYN_STAT, ssl_error_read_eos, ssl_error_ssl, ssl_error_syscall, ssl_error_want_read, ssl_error_want_write, ssl_error_want_x509_lookup, ssl_error_zero_return, ssl_origin_server_bad_cert_stat, ssl_origin_server_cert_verify_failed_stat, ssl_origin_server_decryption_failed_stat, ssl_origin_server_expired_cert_stat, ssl_origin_server_other_errors_stat, ssl_origin_server_revoked_cert_stat, ssl_origin_server_unknown_ca_stat, ssl_origin_server_unknown_cert_stat, ssl_origin_server_wrong_version_stat, ssl_sni_name_set_failure, Ssl_Stat_Count, ssl_total_handshake_time_stat, ssl_total_success_handshake_count_stat, ssl_total_tickets_created_stat, ssl_total_tickets_not_found_stat, ssl_total_tickets_renewed_stat, ssl_total_tickets_verified_stat, ssl_user_agent_bad_cert_stat, ssl_user_agent_cert_verify_failed_stat, ssl_user_agent_decryption_failed_stat, ssl_user_agent_expired_cert_stat, ssl_user_agent_other_errors_stat, ssl_user_agent_revoked_cert_stat, ssl_user_agent_session_hit_stat, ssl_user_agent_session_miss_stat, ssl_user_agent_session_timeout_stat, ssl_user_agent_sessions_stat, ssl_user_agent_unknown_ca_stat, ssl_user_agent_unknown_cert_stat, ssl_user_agent_wrong_version_stat, SSLDefaultServerContext(), SSLError, and SSLRecRawStatSyncCount().
Referenced by SSLNetProcessor::start().
bool SSLParseCertificateConfiguration | ( | const SSLConfigParams * | params, | |
SSLCertLookup * | lookup | |||
) |
Definition at line 1458 of file SSLUtils.cc.
References ssl_user_config::addr, ats_strdup, SSLConfigParams::configFilePath, Error, Note, parseConfigLine(), readIntoBuffer(), REC_ReadConfigInteger, REC_SIGNAL_CONFIG_ERROR, RecSignalWarning(), SSLCertLookup::ssl_default, ssl_extract_certificate(), ssl_store_ssl_context(), and tokLine().
Referenced by SSLCertificateConfig::reconfigure().
void SSLReleaseContext | ( | SSL_CTX * | ctx | ) |
Definition at line 1596 of file SSLUtils.cc.
Referenced by SSLContextStorage::~SSLContextStorage().
Definition at line 120 of file SSLUtils.cc.