First Publicly Shared Version of ODKiTEE v15

This commit is contained in:
John W. Bruce
2020-07-24 12:03:58 -07:00
commit eaa8984c06
56 changed files with 21391 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/*
* Copyright 2020 Google LLC. All Rights Reserved. This file and proprietary
* source code may only be used and distributed under the Widevine Master
* License Agreement.
*/
/*
* Support functions for the OEMCrypto API functions, related to
* message handling
*/
#include <pthread.h>
#include "OEMCryptoCENC.h"
#include "bump_allocator.h"
#include "deserializer.h"
#include "marshaller_base.h"
#include "serializer.h"
#include "shared_memory_allocator.h"
#include "shared_memory_interface.h"
#include "special_cases.h"
#include "transport_interface.h"
#ifndef ODKITEE_API_SUPPORT_H_
#define ODKITEE_API_SUPPORT_H_
#ifdef __cplusplus
extern "C" {
#endif
#define OEMCRYPTO_API __attribute__((visibility("default")))
extern pthread_mutex_t api_lock;
extern OEMCryptoResult api_result;
Message *API_InitializeRequest();
Message *API_Transact(Message *request);
OEMCryptoResult API_CheckResult(OEMCryptoResult unpacked_result);
void API_Terminate();
#ifdef __cplusplus
}
#endif
#endif /* ODKITEE_API_SUPOPRT_H_ */