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

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: Moves to SecureHash (and other comments) 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
« net/base/openssl_memory_private_key_store.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 "base/logging.h"
6 #include "net/socket/ssl_server_socket.h"
7
8 namespace net {
9
10 namespace {
11
12 class SSLServerSocketOpenSSL : public SSLServerSocket {
13 public:
14 virtual ~SSLServerSocketOpenSSL() {}
15
16 // SSLServerSocket
17 virtual int Accept(CompletionCallback* callback) {
18 // TODO(bulach): implement.
19 NOTIMPLEMENTED();
20 return 0;
21 }
22
23 // Socket
24 virtual int Read(IOBuffer* buf, int buf_len,
25 CompletionCallback* callback) {
26 // TODO(bulach): implement.
27 NOTIMPLEMENTED();
28 return 0;
29 }
30 virtual int Write(IOBuffer* buf, int buf_len,
31 CompletionCallback* callback) {
32 // TODO(bulach): implement.
33 NOTIMPLEMENTED();
34 return 0;
35 }
36
37 virtual bool SetReceiveBufferSize(int32 size) {
38 // TODO(bulach): implement.
39 NOTIMPLEMENTED();
40 return false;
41 }
42
43 virtual bool SetSendBufferSize(int32 size) {
44 // TODO(bulach): implement.
45 NOTIMPLEMENTED();
46 return false;
47 }
48 };
49
50 } // namespace
51
52 SSLServerSocket* CreateSSLServerSocket(Socket* socket,
53 X509Certificate* certificate,
54 base::RSAPrivateKey* key,
55 const SSLConfig& ssl_config) {
56 return new SSLServerSocketOpenSSL();
57 }
58
59 } // namespace net
OLDNEW
« net/base/openssl_memory_private_key_store.cc ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698