• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * WPA Supplicant - Certificate utils
3  * Copyright (c) 2022, Google Inc. All rights reserved.
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #pragma once
10 
11 #include <aidl/android/hardware/wifi/supplicant/INonStandardCertCallback.h>
12 #include <aidl/android/system/keystore2/IKeystoreService.h>
13 #include <aidl/android/system/keystore2/ResponseCode.h>
14 #include <android-base/strings.h>
15 #include <android/binder_manager.h>
16 #include <openssl/base.h>
17 #include <openssl/bio.h>
18 #include <openssl/pem.h>
19 #include <openssl/x509.h>
20 #include <vector>
21 
22 extern "C"
23 {
24 #include "utils/common.h"
25 }
26 
27 namespace aidl {
28 namespace android {
29 namespace hardware {
30 namespace wifi {
31 namespace supplicant {
32 namespace certificate_utils {
33 	std::optional<std::vector<uint8_t>> getCertificate(const std::string& alias,
34 		const std::shared_ptr<INonStandardCertCallback> &non_standard_callback);
35 	std::optional<std::vector<std::string>> listAliases(const std::string& prefix,
36 		const std::shared_ptr<INonStandardCertCallback> &non_standard_callback);
37 }  // namespace certificate_utils
38 }  // namespace supplicant
39 }  // namespace wifi
40 }  // namespace hardware
41 }  // namespace android
42 }  // namespace aidl
43