// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2002, 2003
-// Copyright Dirk Lemstra 2014-2015
+// Copyright Dirk Lemstra 2014-2017
//
// Simple C++ function wrappers for ImageMagick equivalents
//
MagickCore::SetRandomSecretKey(seed);
}
+MagickPPExport bool Magick::SetSecurityPolicy(const std::string &policy_)
+{
+ bool
+ status;
+
+ GetPPException;
+ status=MagickCore::SetMagickSecurityPolicy(policy_.c_str(),
+ exceptionInfo) != MagickFalse;
+ ThrowPPException(false);
+ return(status);
+}
+
MagickPPExport void Magick::TerminateMagick(void)
{
if (magick_initialized)
// This may look like C code, but it is really -*- C++ -*-
//
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2003
-// Copyright Dirk Lemstra 2014
+// Copyright Dirk Lemstra 2014-2017
//
// Simple C++ function wrappers for often used or otherwise
// inconvenient ImageMagick equivalents
// Seed a new sequence of pseudo-random numbers
MagickPPExport void SetRandomSeed(const unsigned long seed);
+ // Set the ImageMagick security policy.
+ MagickPPExport bool SetSecurityPolicy(const std::string &policy_);
+
// C library initialization routine
MagickPPExport void TerminateMagick();
}