• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2009 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.
4 
5 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_SSL_H_
6 #define NET_TOOLS_FLIP_SERVER_SPDY_SSL_H_
7 
8 #include <string>
9 
10 #include "openssl/ssl.h"
11 
12 namespace net {
13 
14 struct SSLState {
15   SSL_METHOD* ssl_method;
16   SSL_CTX* ssl_ctx;
17 };
18 
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();
27 
28 }  // namespace net
29 
30 #endif  // NET_TOOLS_FLIP_SERVER_SPDY_SSL_H_
31 
32