summaryrefslogtreecommitdiff
path: root/tests/certs_.h
diff options
context:
space:
mode:
authorJanusz Kozerski <j.kozerski@samsung.com>2015-07-03 14:26:44 +0200
committerJanusz Kozerski <j.kozerski@samsung.com>2015-07-17 14:33:45 +0200
commitecacacfce9dc0f97fc67ba032726583b8881ed97 (patch)
treeb8710bbd27d939524bf26bb802056d6736c85f8a /tests/certs_.h
parent1bf0726b3028ddfaae0cdd70e46b416335da39a0 (diff)
downloadcert-checker-ecacacfce9dc0f97fc67ba032726583b8881ed97.tar.gz
cert-checker-ecacacfce9dc0f97fc67ba032726583b8881ed97.tar.bz2
cert-checker-ecacacfce9dc0f97fc67ba032726583b8881ed97.zip
Add OCSP verification (CKM API is used)
* Add tests for certificates * Remove unnecessary methods in Logic class * Add missing include * Use new cert-checker-vcore API Change-Id: Idfa777d1f1ba6f7142ea78e29bf1bc63415b128e
Diffstat (limited to 'tests/certs_.h')
-rw-r--r--tests/certs_.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/certs_.h b/tests/certs_.h
new file mode 100644
index 0000000..70dece5
--- /dev/null
+++ b/tests/certs_.h
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/*
+ * @file certs_.h
+ * @author Janusz Kozerski (j.kozerski@samsung.com)
+ * @version 1.0
+ * @brief Implementation of Certs for testing
+ */
+
+#include <cchecker/certs.h>
+
+#ifndef CCHECKER_DBFIXTURE_H
+#define CCHECKER_DBFIXTURE_H
+
+using namespace CCHECKER;
+
+class Certs_ : public Certs {
+ public:
+ virtual ~Certs_();
+ ocsp_response_t check_ocsp_chain_ (const chain_t &chain);
+ void find_app_signatures_ (app_t &app, const std::string &app_path, ocsp_urls_t &ocsp_urls);
+};
+
+#endif //CCHECKER_DBFIXTURE_H