Lines Matching refs:daemon
78 SPDYF_openssl_init(struct SPDY_Daemon *daemon) in SPDYF_openssl_init() argument
82 if(NULL == (daemon->io_context = SSL_CTX_new(TLSv1_server_method()))) in SPDYF_openssl_init()
101 SSL_CTX_set_options(daemon->io_context, options); in SPDYF_openssl_init()
102 if(1 != SSL_CTX_use_certificate_file(daemon->io_context, daemon->certfile , SSL_FILETYPE_PEM)) in SPDYF_openssl_init()
105 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_init()
108 if(1 != SSL_CTX_use_PrivateKey_file(daemon->io_context, daemon->keyfile, SSL_FILETYPE_PEM)) in SPDYF_openssl_init()
111 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_init()
114 … SSL_CTX_set_next_protos_advertised_cb(daemon->io_context, &spdyf_next_protos_advertised_cb, NULL); in SPDYF_openssl_init()
115 if (1 != SSL_CTX_set_cipher_list(daemon->io_context, "HIGH")) in SPDYF_openssl_init()
118 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_init()
127 SPDYF_openssl_deinit(struct SPDY_Daemon *daemon) in SPDYF_openssl_deinit() argument
129 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_deinit()
138 if(NULL == (session->io_context = SSL_new(session->daemon->io_context))) in SPDYF_openssl_new_session()