We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44565b commit d84511aCopy full SHA for d84511a
oqs/oqs.py
@@ -11,6 +11,7 @@
11
import ctypes.util as ctu
12
import platform # to learn the OS we're on
13
import sys
14
+import warnings
15
16
# expected return value from native OQS functions
17
OQS_SUCCESS = 0
@@ -64,6 +65,11 @@ def oqs_python_version():
64
65
return pkg_resources_require("liboqs-python")[0].version
66
67
68
+# warn the use if the liboqs version differs from liboqs-python version
69
+if oqs_version() != oqs_python_version():
70
+ warnings.warn("liboqs version {} differs from liboqs-python version {}".format(oqs_version(), oqs_python_version()))
71
+
72
73
class MechanismNotSupportedError(Exception):
74
"""Exception raised when an algorithm is not supported by OQS."""
75
0 commit comments