summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-02-12Add Certificate::not_{before,after}v1.6.20v1.6.xadd-validityCarl Hetherington
2022-02-12Make certificate chain validity a parameter of the constructor.v1.6.19Carl Hetherington
2021-06-23Bump default certificate validity period to 40 years.v1.6.18Carl Hetherington
Cherry-picked from 9ec8f4724969c789c3add7edc7c548827f73d8a3 in master.
2021-04-18Fix build failure.Carl Hetherington
2021-04-16Improve handling of image subtitle IDs in XML (DoM bug #1965)backportCarl Hetherington
When reading/writing the XML for image subtitles, we assumed that the content of the <Image> tag is just the ID of the PNG in the MXF, without any prefix. DoM bug #1965 mentions a DCP where this is not the case, and SMPTE 429-5-2009 has an example where there is urn:uuid: in the XML. This change makes DoM write this urn:uuid: prefix, and accept it if it's present (but not complain if it's not). If the urn:uuid: _is_ required in the field, it's a bit surprising that nobody has complained up to this point. Maybe nobody noticed, or nobody reported it. Cherry-picked from 098007a1ee6a46b6ff11398f94faff5c85951da4 in master.
2021-04-16Ignore parameters in PKL type strings when checking them.Carl Hetherington
Cherry-picked from 1ffc787c6318815592e8d81c4878488eb6183ca4 in master.
2020-11-28Fix erroneous reports of unresolved assets when checking OV/VF pairs.v1.6.17Carl Hetherington
2020-10-10Fix crash when loading DCPs whose ASSETMAP contains files that areCarl Hetherington
not mentioned in any PKL (#1855). Back-ported from 4c8cc9e99678a4095772f283ffaaa1d6bd8aaf67 in master.
2020-03-10Be more cautious in CertificateChain::private_key_valid.v1.6.15Carl Hetherington
2019-12-15Add fix_empty_font_ids() to replace empty Font ids with a dummy string.v1.6.14Carl Hetherington
Back-ported from abf4f7577877254ecd7a1dc7955e0d7ca49ad07c in master.
2019-11-24Just emit EmptyAssetPathError from DCP::read, not a MissingAssetError as well.v1.6.13Carl Hetherington
2019-11-11Allow DCP reading to continue even with empty <Path> nodes in ASSETMAP.v1.6.11Carl Hetherington
2019-11-08Fix incorrect LocalTime strings when timezone is behind UTC and not an ↵v1.6.10Carl Hetherington
integer number of hours.
2019-10-10Fix enum confusion.Carl Hetherington
2019-10-01Reject certificate chains where the adjacent certificates have the same subject.Carl Hetherington
This is a backport of 31f31800705880da6ec185f9b31c7e125ae18c38 from master.
2019-10-01In 8c852cb the CPL root attribute "dsig" was removed (to preventCarl Hetherington
'XML root element can contain only one namespace' errors) In a266fc2 [Sony digest validation fix] this was (for some unknown reason) re-added, which makes the root element bug recur. This commit removes that namespace again. It's a shame there was no unit test to pick this regression up.
2019-05-21Increase header size when writing SMPTE subtitle MXFs; fixes problems when ↵v1.6.8Carl Hetherington
writing lots of subs (DCP-o-matic bug #1561). This is a backport of b7c7e14463d91608b080a5a63fcfb4d330ced863 from master.
2019-04-25Throw a different exception when an unrecognised LabelSetType is found.v1.6.7Carl Hetherington
2019-03-29Add EPISODE and PROMO content types.v1.6.6Carl Hetherington
2019-03-16Check that all image data is present after loading a SMPTE subtitle asset.v1.6.5Carl Hetherington
If we load SMPTE subtitles from a XML file try to load PNG data from the same directory; this feels like a hack.
2019-03-12Try to fix libdcp static build.Carl Hetherington
2019-03-12Fix gcov shlib build; this fixes tests to run against the locally-built ↵Carl Hetherington
libdcp rather than the installed one.
2019-01-24Check return value of fread in File::File.Carl Hetherington
2019-01-24Slightly hacky but hopefully functional fix for KDMs after the changesCarl Hetherington
to signer. The KDM stuff uses add_signature_value() but not sign() since it has to allow pass-through of a KDM (so it handles <Signature> etc. itself). This means we have to make the indentation-adding optional. It might have been nicer to make indent() not add indentation if it's not already there.
2019-01-24Fully indent PKL/CPL.Carl Hetherington
2019-01-24Attempt to fix Sony digest validation by indenting the <Signer>Carl Hetherington
and <Signature> before signing. This is in the belief that, perhaps, the Sony software "reformats" the XML before checking that the signature is correct (or something).
2019-01-22Reveal path in MissingAssetError.Carl Hetherington
2019-01-17Missing include for arch.Carl Hetherington
2019-01-14Merge branch 'master' of ssh://git.carlh.net/home/carl/git/libdcpCarl Hetherington
2019-01-14Tidy repeated call of make_uuid() and don't put urn:uuid: in front of ↵Carl Hetherington
default content version label text as it's a bit confusing.
2019-01-14Speculative removal of call to xmlSecKeySetName when signing, onCarl Hetherington
the basis that I can't see what it's for and opendcp doesn't do it. Chasing Sony no-validate bug.
2019-01-12Move verify API away from strings towards error codes.Carl Hetherington
2019-01-08Fix incorrect XML namespace in MXF header; I was using the prefixCarl Hetherington
instead of the namespace URI for what asdcplib calls TimedTextDescriptor::NamespaceName. Thanks to clairmeta; see https://github.com/Ymagis/ClairMeta/issues/72
2019-01-06ClairMeta points out that SMPTE subtitle MXF's ResourceID shouldCarl Hetherington
be the same as the internal XML ID. This in turn must be different from the MXF's UUID. I *think* that we have: AssetUUID: MXF's UUID, which must be different; written from the WriterInfo (set up by fill_writer_info, which is passed _id) AssetID: MXF's ResourceID, which must be the _xml_id; written from the TimedTextDescriptor. I believe that this patch fixes the ResourceID to be the XML ID (as required) without undoing the Doremi fix whereby the MXF UUID must be different to the XML ID. This patch quells ClairMeta's error.
2019-01-06More DCP verification detail and testing.Carl Hetherington
2019-01-06Check CPL hash in the PKL on verify.Carl Hetherington
2018-12-29Fix some warnings.Carl Hetherington
2018-11-14Simpole DCP recovery utility (dcprecover) added.Carl Hetherington
2018-11-08Take thumbprint rather than a full dcp::Certificate for trusted devices.Carl Hetherington
2018-10-09More raw/locale_convert.Carl Hetherington
2018-10-09Merge branch 'master' of ssh://main.carlh.net/home/carl/git/libdcpCarl Hetherington
2018-10-09More _convert functions.Carl Hetherington
2018-09-29Move some methods to where they make more sense.Carl Hetherington
2018-09-25Cope with multiple PKLs in a DCP.Carl Hetherington
2018-09-24Merge branch 'master' of ssh://git.carlh.net/home/carl/git/libdcpCarl Hetherington
2018-09-24Add missing constructor call.Carl Hetherington
2018-09-22Fix build with newer boost.Carl Hetherington
2018-09-18Throw a better error on bad content kind.Carl Hetherington
2018-09-14Add operator< for LocalTime.Carl Hetherington
2018-09-07Silence warnings from asdcplib when testing a MXF file for validity.Carl Hetherington