~mdw
/
pyke
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Deploy the new <ctype.h> and `foocmp' macros from mLib.
[pyke]
/
catacomb.c
diff --git
a/catacomb.c
b/catacomb.c
index
9c83c9d
..
572f80f
100644
(file)
--- a/
catacomb.c
+++ b/
catacomb.c
@@
-48,6
+48,10
@@
static const struct nameval consts[] = {
C(X25519_KEYSZ), C(X25519_PUBSZ), C(X25519_OUTSZ),
C(X448_KEYSZ), C(X448_PUBSZ), C(X448_OUTSZ),
C(ED25519_KEYSZ), C(ED25519_PUBSZ), C(ED25519_SIGSZ),
C(X25519_KEYSZ), C(X25519_PUBSZ), C(X25519_OUTSZ),
C(X448_KEYSZ), C(X448_PUBSZ), C(X448_OUTSZ),
C(ED25519_KEYSZ), C(ED25519_PUBSZ), C(ED25519_SIGSZ),
+ C(ED25519_MAXPERSOSZ),
+ C(ED448_KEYSZ), C(ED448_PUBSZ), C(ED448_SIGSZ), C(ED448_MAXPERSOSZ),
+ C(AEADF_PCHSZ), C(AEADF_PCMSZ), C(AEADF_PCTSZ),
+ C(AEADF_AADNDEP), C(AEADF_AADFIRST), C(AEADF_NOAAD),
#define ENTRY(tag, val, str) C(KERR_##tag),
KEY_ERRORS(ENTRY)
#undef ENTRY
#define ENTRY(tag, val, str) C(KERR_##tag),
KEY_ERRORS(ENTRY)
#undef ENTRY
@@
-136,7
+140,7
@@
static PyObject *meth__ego(PyObject *me, PyObject *arg)
char *argv0;
if (!PyArg_ParseTuple(arg, "s:_ego", &argv0))
return (0);
char *argv0;
if (!PyArg_ParseTuple(arg, "s:_ego", &argv0))
return (0);
- if (
strcmp(QUIS, "<UNNAMED>") == 0
)
+ if (
STRCMP(QUIS, ==, "<UNNAMED>")
)
ego(argv0);
RETURN_NONE;
}
ego(argv0);
RETURN_NONE;
}
@@
-156,14
+160,14
@@
static void init_random(void)
if (!Py_HashRandomizationFlag) return;
seed = getenv("PYTHONHASHSEED");
if (!Py_HashRandomizationFlag) return;
seed = getenv("PYTHONHASHSEED");
- if (!seed ||
strcmp(seed, "random") == 0
) r = GR_WORD(&rand_global);
+ if (!seed ||
STRCMP(seed, ==, "random")
) r = GR_WORD(&rand_global);
else r = strtoul(seed, 0, 0);
if (!r) r = 0xe011f220; /* zero doesn't work well */
unihash_setkey(&unihash_global, r);
#endif
}
else r = strtoul(seed, 0, 0);
if (!r) r = 0xe011f220; /* zero doesn't work well */
unihash_setkey(&unihash_global, r);
#endif
}
-void init_base(void)
+
EXPORT
void init_base(void)
{
PyObject *mod;
addmethods(methods);
{
PyObject *mod;
addmethods(methods);