OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A binary wrapper for QuicServer. It listens forever on --port | 5 // A binary wrapper for QuicServer. It listens forever on --port |
6 // (default 6121) until it's killed or ctrl-cd to death. | 6 // (default 6121) until it's killed or ctrl-cd to death. |
7 | 7 |
8 #include <iostream> | 8 #include <iostream> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
(...skipping 24 matching lines...) Expand all Loading... | |
35 return new gfe_quic::ProofSourceGoogle3(ssl_ctx, | 35 return new gfe_quic::ProofSourceGoogle3(ssl_ctx, |
36 /*take_ownership_of_ssl_ctx=*/true); | 36 /*take_ownership_of_ssl_ctx=*/true); |
37 ======= | 37 ======= |
38 <<<<<<< | 38 <<<<<<< |
39 CHECK(ssl_ctx->Init( | 39 CHECK(ssl_ctx->Init( |
40 nullptr /* cert_loader */, NO_AUTHENTICATE_PEER, &config)); | 40 nullptr /* cert_loader */, NO_AUTHENTICATE_PEER, &config)); |
41 ||||||| | 41 ||||||| |
42 SSLContext* ssl_ctx = new SSLContext( | 42 SSLContext* ssl_ctx = new SSLContext( |
43 SSLContext::SSL_SERVER_CONTEXT_SSL_V23, | 43 SSLContext::SSL_SERVER_CONTEXT_SSL_V23, |
44 SSL_SESS_CACHE_SERVER | SSL_SESS_CACHE_NO_INTERNAL_STORE); | 44 SSL_SESS_CACHE_SERVER | SSL_SESS_CACHE_NO_INTERNAL_STORE); |
45 <<<<<<< | |
45 CHECK(ssl_ctx->Init( | 46 CHECK(ssl_ctx->Init( |
46 nullptr /* cert_loader */, NO_AUTHENTICATE_PEER, &config)); | 47 nullptr /* cert_loader */, NO_AUTHENTICATE_PEER, &config)); |
48 ||||||| | |
49 CHECK(ssl_ctx->Init( | |
50 nullptr /* cert_loader */, NO_AUTHENTICATE_PEER, &config)); | |
51 | |
52 return new gfe_quic::ProofSourceGoogle3([=]() { return ssl_ctx; }); | |
53 } | |
54 ======= | |
55 CHECK(ssl_ctx->Init(NO_AUTHENTICATE_PEER, &config)); | |
56 | |
57 return new gfe_quic::ProofSourceGoogle3([=]() { return ssl_ctx; }); | |
58 } | |
59 >>>>>>> | |
Ryan Hamilton
2015/11/22 00:54:41
More merge conflicts?
ianswett
2015/11/23 20:04:50
Done.
| |
47 ======= | 60 ======= |
48 SSLContext* ssl_ctx = new SSLContext( | 61 SSLContext* ssl_ctx = new SSLContext( |
49 SSLContext::SSL_SERVER_CONTEXT_SSL_V23, | 62 SSLContext::SSL_SERVER_CONTEXT_SSL_V23, |
50 SSL_SESS_CACHE_SERVER | SSL_SESS_CACHE_NO_INTERNAL_STORE); | 63 SSL_SESS_CACHE_SERVER | SSL_SESS_CACHE_NO_INTERNAL_STORE); |
51 CHECK(ssl_ctx->Init(NO_AUTHENTICATE_PEER, &config)); | 64 CHECK(ssl_ctx->Init(NO_AUTHENTICATE_PEER, &config)); |
52 >>>>>>> | 65 >>>>>>> |
53 | 66 |
54 return new gfe_quic::ProofSourceGoogle3([=]() { return ssl_ctx; }); | 67 return new gfe_quic::ProofSourceGoogle3([=]() { return ssl_ctx; }); |
55 >>>>>>> | 68 >>>>>>> |
56 } | 69 } |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 | 128 |
116 int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port)); | 129 int rc = server.Listen(net::IPEndPoint(ip, FLAGS_port)); |
117 if (rc < 0) { | 130 if (rc < 0) { |
118 return 1; | 131 return 1; |
119 } | 132 } |
120 | 133 |
121 while (1) { | 134 while (1) { |
122 server.WaitForEvents(); | 135 server.WaitForEvents(); |
123 } | 136 } |
124 } | 137 } |
OLD | NEW |