(original) (raw)
Index: Doc/lib/librotor.tex =================================================================== RCS file: /cvsroot/python/python/dist/src/Doc/lib/librotor.tex,v retrieving revision 1.19 diff -u -r1.19 librotor.tex --- Doc/lib/librotor.tex 10 Jun 2002 19:42:43 -0000 1.19 +++ Doc/lib/librotor.tex 3 Feb 2003 13:28:30 -0000 @@ -4,6 +4,8 @@ \declaremodule{builtin}{rotor} \modulesynopsis{Enigma-like encryption and decryption.} +\deprecated{2.3}{The encryption algorithm is insecure.} + This module implements a rotor-based encryption algorithm, contributed by Lance Ellinghouse\index{Ellinghouse, Lance}. The design is derived Index: Modules/rotormodule.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Modules/rotormodule.c,v retrieving revision 2.37 diff -u -r2.37 rotormodule.c --- Modules/rotormodule.c 2 Aug 2002 02:27:13 -0000 2.37 +++ Modules/rotormodule.c 3 Feb 2003 13:28:31 -0000 @@ -620,4 +620,8 @@ { Rotor_Type.ob_type = &PyType_Type; (void)Py_InitModule("rotor", rotor_methods); + if (PyErr_Warn(PyExc_DeprecationWarning, + "the rotor module uses an insecure algorithm " + "and is deprecated") < 0) + return; }