Files
OpenCellular/host/linktest/main.c
Bill Richardson bc3f0b74f9 cleanup: remove a couple of unused functions and files
scripts/sign_data.sh is just a wrapper to do this:

  ./signature_digest_utility $1 $3 \
    | openssl rsautl -sign -pkcs -inkey $2

AFAICT, that script is only invoked by the SignatureFile()
function in host/lib/file_keys.c, which is not referenced by
anything. I think I can remove both of those things.

Also remove utility/gbb_utility.cc, which should have been done
long ago in commit 6f39615.

BUG=none
BRANCH=ToT
TEST=make runalltests

Also ran it on daisy_spring-paladin and link-tot-paladin.

Change-Id: I16de5022765806f11bf6144d7ffd8cc849578a68
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/216719
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2014-09-12 03:39:46 +00:00

58 lines
1.2 KiB
C

/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* This tests for the presence of functions used by vboot_reference utilities.
*/
#include <stdio.h>
#include "host_common.h"
#include "file_keys.h"
#include "signature_digest.h"
int main(void)
{
/* host_key.h */
PrivateKeyReadPem(0, 0);
PrivateKeyFree(0);
PublicKeyAlloc(0, 0, 0);
PublicKeyRead(0);
PublicKeyReadKeyb(0, 0, 0);
PublicKeyWrite(0, 0);
/* host_keyblock.h */
KeyBlockCreate(0, 0, 0);
KeyBlockRead(0);
KeyBlockWrite(0, 0);
/* host_misc.h */
ReadFile(0, 0);
WriteFile(0, 0, 0);
/* host_signature.h */
SignatureInit(0, 0, 0, 0);
SignatureAlloc(0, 0);
SignatureCopy(0, 0);
CalculateChecksum(0, 0);
CalculateSignature(0, 0, 0);
/* host_common.h */
CreateFirmwarePreamble(0, 0, 0, 0, 0);
CreateKernelPreamble(0, 0, 0, 0, 0, 0, 0);
/* file_keys.h */
BufferFromFile(0, 0);
RSAPublicKeyFromFile(0);
DigestFile(0, 0);
/* signature_digest.h */
PrependDigestInfo(0, 0);
SignatureDigest(0, 0, 0);
SignatureBuf(0, 0, 0, 0);
return 0;
}