Add HIDL backend to keystore service
This CL adds variants of the public key retrieval and signing
routine which use the WiFi Keystore HIDL for the backend.
The Android.mk has been modified to build a second variant of
the library to expose this HIDL backend. While here, add
guards to all headers.
Bug: 34603782
Test: Able to connect to wifi passpoint networks.
Change-Id: I444ef383e4d3fdabc10c3e44c1bae9747613c8cf
diff --git a/keystore-engine/keystore_backend.h b/keystore-engine/keystore_backend.h
index 19fc183..88c94b3 100644
--- a/keystore-engine/keystore_backend.h
+++ b/keystore-engine/keystore_backend.h
@@ -20,6 +20,9 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
+#ifndef ANDROID_KEYSTORE_BACKEND_H
+#define ANDROID_KEYSTORE_BACKEND_H
+
#include <stdint.h>
class KeystoreBackend {
@@ -31,3 +34,4 @@
size_t* reply_len) = 0;
};
+#endif // ANDROID_KEYSTORE_BACKEND_H