/* * * Copyright (C) 1998-2019, OFFIS e.V. * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation were developed by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmsign * * Author:Marco Eichelberg * * Purpose: * classes: SiNullProfile * */ #include "dcmtk/config/osconfig.h" #ifdef WITH_OPENSSL #include "dcmtk/dcmsign/sinullpr.h" OFBool SiNullProfile::isAllowableMACType(E_MACType /* macType */) const { return OFTrue; } OFBool SiNullProfile::isAllowableAlgorithmType(E_KeyType keyType) const { if (keyType == EKT_none) return OFFalse; return OFTrue; } OFBool SiNullProfile::attributeRequiredIfPresent(const DcmTagKey& /* key */) const { return OFFalse; } OFBool SiNullProfile::checkRequiredAttributeList(DcmAttributeTag& /* tagList */) const { return OFTrue; } OFBool SiNullProfile::attributeForbidden(const DcmTagKey& /* key */) const { return OFFalse; } OFBool SiNullProfile::isAllowableTransferSyntax(E_TransferSyntax xfer) const { if ((xfer == EXS_LittleEndianImplicit)||(xfer == EXS_BigEndianExplicit)) return OFFalse; return OFTrue; } OFCondition SiNullProfile::inspectSignatureDataset(DcmItem & /* item */) { return EC_Normal; } OFBool SiNullProfile::mainDatasetRequired() const { return OFFalse; } #else /* WITH_OPENSSL */ int sinullpr_cc_dummy_to_keep_linker_from_moaning = 0; #endif