[Python-Dev] Patch reviews (original) (raw)

Victor Stinner victor.stinner at gmail.com
Thu Sep 1 17:15:51 EDT 2016


2016-08-31 22:31 GMT+02:00 Christian Heimes <christian at python.org>:

https://bugs.python.org/issue27744 Add AFALG (Linux Kernel crypto) to socket module

This patch adds a new socket.sendmsg_afalg() method on Linux.

"afalg" comes from AF_ALG which means "Address Family Algorithm". It's documented as "af_alg: User-space algorithm interface" in crypto/af_alg.c.

IHMO the method should be just "sendmsg_alg()", beacuse "afalg" is redundant. The AF_ prefix is only used to workaround a C limitation: there is no namespace in the language, all symbols are in one single giant namespace.

I don't expect that a platform will add a new sendmsg_alg() C function. If it's the case, we will see how to handle the name conflict ;-)

Victor



More information about the Python-Dev mailing list