From: Raymond Hettinger Date: Wed, 24 Aug 2005 00:28:21 +0000 (+0000) Subject: Update the PC configuration and project files for sha256 and sha512. X-Git-Tag: v2.5a0~1477 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=94ac197531fdc7f358e737dec55cd7158cbdd815;p=thirdparty%2FPython%2Fcpython.git Update the PC configuration and project files for sha256 and sha512. --- diff --git a/PC/VC6/pythoncore.dsp b/PC/VC6/pythoncore.dsp index 8fbb998f91f0..f71b7c2254c7 100644 --- a/PC/VC6/pythoncore.dsp +++ b/PC/VC6/pythoncore.dsp @@ -539,6 +539,14 @@ SOURCE=..\..\Modules\shamodule.c # End Source File # Begin Source File +SOURCE=..\..\Modules\sha256module.c +# End Source File +# Begin Source File + +SOURCE=..\..\Modules\sha512module.c +# End Source File +# Begin Source File + SOURCE=..\..\Modules\signalmodule.c # End Source File # Begin Source File diff --git a/PC/config.c b/PC/config.c index bd040b08b822..9ac69e348f18 100644 --- a/PC/config.c +++ b/PC/config.c @@ -17,7 +17,7 @@ extern void initgc(void); extern void initimageop(void); #endif extern void initmath(void); -extern void initmd5(void); +extern void init_md5(void); extern void initnt(void); extern void initoperator(void); extern void initregex(void); @@ -25,7 +25,9 @@ extern void initregex(void); extern void initrgbimg(void); #endif extern void initsignal(void); -extern void initsha(void); +extern void init_sha(void); +extern void init_sha256(void); +extern void init_sha512(void); extern void initstrop(void); extern void initstruct(void); extern void inittime(void); @@ -86,7 +88,7 @@ struct _inittab _PyImport_Inittab[] = { {"imageop", initimageop}, #endif {"math", initmath}, - {"md5", initmd5}, + {"_md5", init_md5}, {"nt", initnt}, /* Use the NT os functions, not posix */ {"operator", initoperator}, {"regex", initregex}, @@ -94,7 +96,9 @@ struct _inittab _PyImport_Inittab[] = { {"rgbimg", initrgbimg}, #endif {"signal", initsignal}, - {"sha", initsha}, + {"_sha", init_sha}, + {"_sha256", init_sha256}, + {"_sha512", init_sha512}, {"strop", initstrop}, {"struct", initstruct}, {"time", inittime}, diff --git a/PCbuild/pythoncore.vcproj b/PCbuild/pythoncore.vcproj index 3d8aaf24f0c3..652d3123d12b 100644 --- a/PCbuild/pythoncore.vcproj +++ b/PCbuild/pythoncore.vcproj @@ -2763,6 +2763,60 @@ PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;USE_DL_EXPORT;$(NoInherit)"/> + + + + + + + + + + + + + + + + + + + + + +