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

Side by Side Diff: net/socket/ssl_server_socket_nss.h

Issue 1882433002: Removing NSS files and USE_OPENSSL flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing header ordering. Created 4 years, 8 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
OLDNEW
(Empty)
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.
4
5 #ifndef NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
6 #define NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
7
8 #include <certt.h>
9 #include <keyt.h>
10 #include <nspr.h>
11 #include <nss.h>
12 #include <stdint.h>
13
14 #include "base/macros.h"
15 #include "base/memory/scoped_ptr.h"
16 #include "net/base/completion_callback.h"
17 #include "net/base/host_port_pair.h"
18 #include "net/base/nss_memio.h"
19 #include "net/log/net_log.h"
20 #include "net/socket/ssl_server_socket.h"
21 #include "net/ssl/ssl_server_config.h"
22
23 namespace net {
24
25 class SSLServerContextNSS : public SSLServerContext {
26 public:
27 SSLServerContextNSS(X509Certificate* certificate,
28 const crypto::RSAPrivateKey& key,
29 const SSLServerConfig& ssl_server_config);
30 ~SSLServerContextNSS() override;
31
32 scoped_ptr<SSLServerSocket> CreateSSLServerSocket(
33 scoped_ptr<StreamSocket> socket) override;
34
35 private:
36 // Options for the SSL socket.
37 SSLServerConfig ssl_server_config_;
38
39 // Certificate for the server.
40 scoped_refptr<X509Certificate> cert_;
41
42 // Private key used by the server.
43 scoped_ptr<crypto::RSAPrivateKey> key_;
44 };
45
46 } // namespace net
47
48 #endif // NET_SOCKET_SSL_SERVER_SOCKET_NSS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698