summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/cert_database.h')
-rw-r--r--net/base/cert_database.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/base/cert_database.h b/net/base/cert_database.h
new file mode 100644
index 0000000..e78c22e
--- /dev/null
+++ b/net/base/cert_database.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_BASE_CERT_DATABASE_H_
+#define NET_BASE_CERT_DATABASE_H_
+
+#include "net/base/x509_certificate.h"
+
+namespace net {
+
+// This class provides functions to manipulate the local
+// certificate store.
+
+// TODO(gauravsh): This class could be augmented with methods
+// for all operations that manipulate the underlying system
+// certificate store.
+
+class CertDatabase {
+ public:
+ CertDatabase();
+
+ // Extract and Store User (Client) Certificate from a data blob.
+ // Return true if successful.
+ bool AddUserCert(const char* data, int len);
+
+ private:
+ void Init();
+ DISALLOW_COPY_AND_ASSIGN(CertDatabase);
+};
+
+} // namespace net
+
+#endif // NET_BASE_CERT_DATABASE_H_