Commit c6dee180 authored by gates's avatar gates
Browse files

Change ordering of headers to fix header files with missing includes

parent 5e069f09
......@@ -2,9 +2,6 @@
#include "config.h"
#endif
#include <inttypes.h>
#include <openssl/evp.h>
#include "aacs.h"
#include "crypto.h"
#include "mmc.h"
......@@ -13,6 +10,9 @@
#include "../util/logging.h"
#include "../file/file.h"
#include <inttypes.h>
#include <openssl/evp.h>
int _validate_pk(uint8_t *pk, uint8_t *cvalue, uint8_t *uv, uint8_t *vd,
uint8_t *mk)
{
......
#include "crypto.h"
#include <string.h>
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/ecdsa.h>
#include "crypto.h"
void _aesg3(const uint8_t *src_key, uint8_t *dst_key, uint8_t inc)
{
int a;
......
......@@ -2,8 +2,6 @@
#include "config.h"
#endif
#include <stdlib.h>
#include "mkb.h"
#include "../file/file.h"
#include "../util/macro.h"
......
#ifndef MKB_H_
#define MKB_H_
#include <stdlib.h>
#include <stdint.h>
typedef struct mkb MKB;
......
......@@ -2,6 +2,12 @@
#include "config.h"
#endif
#include "mmc.h"
#include "crypto.h"
#include "../file/file.h"
#include "../util/macro.h"
#include "../util/logging.h"
#include <stdlib.h>
#include <mntent.h>
......@@ -14,12 +20,6 @@
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include "mmc.h"
#include "crypto.h"
#include "../file/file.h"
#include "../util/macro.h"
#include "../util/logging.h"
static int _mmc_send_cmd(MMC *mmc, const uint8_t *cmd, uint8_t *buf, size_t tx,
size_t rx)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment