2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <cryptoutil.h>
2N/A#include <libelfsign.h>
2N/A#ifndef SHA1_DIGEST_LENGTH
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4:
2N/Astatic struct filesignatures *
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4:
2N/Astatic filesig_vers_t
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4:
2N/A case ES_GET_CRYPTO:
2N/A case ES_UPDATE_RSA_MD5_SHA1:
2N/A case ES_UPDATE_RSA_SHA1:
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_SUCCESS);
2N/A return (ELFSIGN_INVALID_ELFOBJ);
2N/A return (ELFSIGN_INVALID_ELFOBJ);
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_INVALID_ELFOBJ);
2N/A return (ELFSIGN_INVALID_ELFOBJ);
2N/A return (ELFSIGN_INVALID_ELFOBJ);
2N/A return (ELFSIGN_INVALID_ELFOBJ);
2N/A return (ELFSIGN_SUCCESS);
2N/A return (ELFSIGN_INVALID_CERTPATH);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_SUCCESS);
2N/A return (ELFSIGN_UNKNOWN);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_NOTSIGNED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_SUCCESS);
2N/Astatic ELFsign_status_t
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_SUCCESS);
2N/A return (ELFSIGN_FAILED);
2N/A (-ELF32_FSZ_OFF);
2N/A (-ELF64_FSZ_OFF);
2N/Astruct filesignatures *
2N/A return (FILESIG_UNKNOWN);
2N/A return (FILESIG_UNKNOWN);
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4:
2N/Astatic ELFsign_status_t
2N/A return (ELFSIGN_FAILED);
2N/A if (!hash_mem_resident &&
2N/A return (ELFSIGN_NOTSIGNED);
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4:
2N/Astatic ELFsign_status_t
2N/A return (ELFSIGN_SUCCESS);
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4:
2N/A return (ELFSIGN_FAILED);
2N/A return (ELFSIGN_SUCCESS);
2N/A case ELFSIGN_SUCCESS:
2N/A case ELFSIGN_FAILED:
2N/A case ELFSIGN_NOTSIGNED:
2N/A case ELFSIGN_INVALID_CERTPATH:
2N/A case ELFSIGN_INVALID_ELFOBJ:
2N/A case ELFSIGN_UNKNOWN:
2N/A case FILESIG_VERSION1:
2N/A case FILESIG_VERSION2:
2N/A case FILESIG_VERSION3:
2N/A case FILESIG_VERSION4: