NAG_DKDM_CONFIG,
NAG_ENCRYPTED_METADATA,
NAG_ALTER_DECRYPTION_CHAIN,
- NAG_BAD_SIGNER_CHAIN,
+ NAG_BAD_SIGNER_CHAIN_UTF8,
NAG_IMPORT_DECRYPTION_CHAIN,
NAG_DELETE_DKDM,
NAG_32_ON_64,
NAG_TOO_MANY_DROPPED_FRAMES,
+ NAG_BAD_SIGNER_CHAIN_VALIDITY,
NAG_COUNT
};
return _respect_kdm_validity_periods;
}
- boost::optional<boost::filesystem::path> player_activity_log_file () const {
- return _player_activity_log_file;
- }
-
boost::optional<boost::filesystem::path> player_debug_log_file () const {
return _player_debug_log_file;
}
maybe_set (_respect_kdm_validity_periods, r);
}
- void set_player_activity_log_file (boost::filesystem::path p) {
- maybe_set (_player_activity_log_file, p);
- }
-
- void unset_player_activity_log_file () {
- if (!_player_activity_log_file) {
- return;
- }
- _player_activity_log_file = boost::none;
- changed ();
- }
-
void set_player_debug_log_file (boost::filesystem::path p) {
maybe_set (_player_debug_log_file, p, PLAYER_DEBUG_LOG);
}
* true to ask Config to solve the problem (by discarding and recreating the bad thing)
*/
enum BadReason {
- BAD_SIGNER_UTF8_STRINGS, ///< signer chain contains UTF-8 strings (not PRINTABLESTRING)
- BAD_SIGNER_INCONSISTENT, ///< signer chain is somehow inconsistent
- BAD_DECRYPTION_INCONSISTENT, ///< KDM decryption chain is somehow inconsistent
+ BAD_SIGNER_UTF8_STRINGS, ///< signer chain contains UTF-8 strings (not PRINTABLESTRING)
+ BAD_SIGNER_INCONSISTENT, ///< signer chain is somehow inconsistent
+ BAD_DECRYPTION_INCONSISTENT, ///< KDM decryption chain is somehow inconsistent
+ BAD_SIGNER_VALIDITY_TOO_LONG, ///< signer certificate validity periods are >10 years
};
static boost::signals2::signal<bool (BadReason)> Bad;
void rename_template (std::string old_name, std::string new_name) const;
void delete_template (std::string name) const;
+ boost::optional<BadReason> check_certificates () const;
+
static Config* instance ();
static void drop ();
static void restore_defaults ();
int _image_display;
VideoViewType _video_view_type;
bool _respect_kdm_validity_periods;
- /** Log file containing things the player does (e.g. started, stopped, loaded
- playlist etc.) Does not contain debugging information.
- */
- boost::optional<boost::filesystem::path> _player_activity_log_file;
/** Log file containing debug information for the player */
boost::optional<boost::filesystem::path> _player_debug_log_file;
/** A directory containing DCPs whose contents are presented to the user