From: Michael Tremer Date: Thu, 1 Jun 2023 17:03:32 +0000 (+0000) Subject: _pakfire: Export the key algorithm constants X-Git-Tag: 0.9.29~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59c092dc96bbeb88de03b932f280c312500f167a;p=pakfire.git _pakfire: Export the key algorithm constants Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index e4dc018b0..e4d5845bd 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -22,6 +22,7 @@ #include #include +#include #include "archive.h" #include "archive_file.h" @@ -220,6 +221,12 @@ PyMODINIT_FUNC PyInit__pakfire(void) { Py_INCREF(&SolutionType); PyModule_AddObject(module, "Solution", (PyObject *)&SolutionType); + // Constants + if (PyModule_AddIntMacro(module, PAKFIRE_KEY_ALGO_NULL) < 0) + goto ERROR; + if (PyModule_AddIntMacro(module, PAKFIRE_KEY_ALGO_ED25519) < 0) + goto ERROR; + return module; ERROR: