Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: net/socket/ssl_server_socket_openssl.cc

Issue 6276002: Abstracts SHA256 context for NSS / OpenSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implements SHA256Context abstracting NSS / OpenSSL. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« base/sha2_unittest.cc ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 #include "net/socket/ssl_server_socket.h"
lzheng 2011/01/24 18:46:35 nit: put this behind "base/logging.h"
bulach 2011/01/24 20:54:33 Done.
6
7 #include "base/logging.h"
8
9 namespace net {
10
11 class SSLServerSocketOpenSSL : public SSLServerSocket {
12 public:
13 virtual ~SSLServerSocketOpenSSL() {}
14
15 // SSLServerSocket
16 virtual int Accept(CompletionCallback* callback) {
17 // TODO(bulach): implement.
18 NOTIMPLEMENTED();
19 return 0;
20 }
21
22 // Socket
23 virtual int Read(IOBuffer* buf, int buf_len,
24 CompletionCallback* callback) {
25 // TODO(bulach): implement.
26 NOTIMPLEMENTED();
27 return 0;
28 }
29 virtual int Write(IOBuffer* buf, int buf_len,
30 CompletionCallback* callback) {
31 // TODO(bulach): implement.
32 NOTIMPLEMENTED();
33 return 0;
34 }
35
36 virtual bool SetReceiveBufferSize(int32 size) {
37 // TODO(bulach): implement.
38 NOTIMPLEMENTED();
39 return false;
40 }
41
42 virtual bool SetSendBufferSize(int32 size) {
43 // TODO(bulach): implement.
44 NOTIMPLEMENTED();
45 return false;
46 }
47 };
48
49 SSLServerSocket* CreateSSLServerSocket(
50 Socket* socket, X509Certificate* certificate, base::RSAPrivateKey* key,
wtc 2011/01/21 22:48:51 List one parameter per line.
bulach 2011/01/24 20:54:33 Done.
51 const SSLConfig& ssl_config) {
52 return new SSLServerSocketOpenSSL();
53 }
54
55 } // namespace net
OLDNEW
« base/sha2_unittest.cc ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698