Lines Matching refs:state
26 void InitSSL(SSLState* state,
38 state->ssl_method = SSLv23_method();
39 state->ssl_ctx = SSL_CTX_new(state->ssl_method);
40 if (!state->ssl_ctx) {
45 SSL_CTX_set_options(state->ssl_ctx,
47 if (SSL_CTX_use_certificate_chain_file(state->ssl_ctx,
52 if (SSL_CTX_use_PrivateKey_file(state->ssl_ctx,
58 if (!SSL_CTX_check_private_key(state->ssl_ctx)) {
63 SSL_CTX_set_next_protos_advertised_cb(state->ssl_ctx,
67 SSL_CTX_set_cipher_list(state->ssl_ctx, SSL_CIPHER_LIST);
71 SSL_CTX_set_timeout(state->ssl_ctx, session_expiration_time);
75 SSL_CTX_set_mode(state->ssl_ctx, SSL_MODE_RELEASE_BUFFERS);