Commit 8f778c3d authored by Torfinn Berset's avatar Torfinn Berset
Browse files

Check if at least one encryption mode is selected

parent 7468e2ec
from conans import ConanFile, CMake
from conans.errors import ConanException
class TinyAesCConan(ConanFile):
......@@ -40,11 +41,15 @@ class TinyAesCConan(ConanFile):
"AES128": True,
"AES192": False,
"AES256": False,
"CBC": False,
"ECB": False,
"CTR": False
"CBC": True,
"ECB": True,
"CTR": True
}
def configure(self):
if not self.options.CBC and not self.options.ECB and not self.options.CTR:
raise ConanException("Need to at least specify one of CBC, ECB or CTR modes")
def build(self):
cmake = CMake(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment