Create OWNERS file for renderer/resources.
[chromium-blink-merge.git] / net / tools / flip_server / spdy_ssl.h
blob8b5573353fb26d62009e819d517d96a451a9b81c
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_SSL_H_
6 #define NET_TOOLS_FLIP_SERVER_SPDY_SSL_H_
8 #include <string>
10 #include "openssl/ssl.h"
12 namespace net {
14 struct SSLState {
15 const SSL_METHOD* ssl_method;
16 SSL_CTX* ssl_ctx;
19 void InitSSL(SSLState* state,
20 std::string ssl_cert_name,
21 std::string ssl_key_name,
22 bool use_npn,
23 int session_expiration_time,
24 bool disable_ssl_compression);
25 SSL* CreateSSLContext(SSL_CTX* ssl_ctx);
26 void PrintSslError();
28 } // namespace net
30 #endif // NET_TOOLS_FLIP_SERVER_SPDY_SSL_H_