From 94ac197531fdc7f358e737dec55cd7158cbdd815 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 24 Aug 2005 00:28:21 +0000 Subject: Update the PC configuration and project files for sha256 and sha512. --- PC/VC6/pythoncore.dsp | 8 +++++++ PC/config.c | 12 +++++++---- PCbuild/pythoncore.vcproj | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 4 deletions(-) diff --git a/PC/VC6/pythoncore.dsp b/PC/VC6/pythoncore.dsp index 8fbb998..f71b7c2 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 bd040b0..9ac69e3 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 3d8aaf2..652d312 100644 --- a/PCbuild/pythoncore.vcproj +++ b/PCbuild/pythoncore.vcproj @@ -2764,6 +2764,60 @@ + + + + + + + + + + + + + + + + + + + + + + -- cgit v0.12