summaryrefslogtreecommitdiffstats
path: root/Modules/sha1module.c
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2012-06-21 15:05:50 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2012-06-21 15:05:50 (GMT)
commit1e5be8cfb509cff331365be8ad780820f729ccb2 (patch)
tree208ea0ad028e76e76b72f620e9a6288a6b2d70c7 /Modules/sha1module.c
parent1e3398a50c57af41fff5789e8f75fe4d399b7fd0 (diff)
downloadcpython-1e5be8cfb509cff331365be8ad780820f729ccb2.zip
cpython-1e5be8cfb509cff331365be8ad780820f729ccb2.tar.gz
cpython-1e5be8cfb509cff331365be8ad780820f729ccb2.tar.bz2
sha1_{init,process,done}: make static
Diffstat (limited to 'Modules/sha1module.c')
-rw-r--r--Modules/sha1module.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/sha1module.c b/Modules/sha1module.c
index daea887..a733c4b 100644
--- a/Modules/sha1module.c
+++ b/Modules/sha1module.c
@@ -184,7 +184,8 @@ static void sha1_compress(struct sha1_state *sha1, unsigned char *buf)
Initialize the hash state
@param sha1 The hash state you wish to initialize
*/
-void sha1_init(struct sha1_state *sha1)
+static void
+sha1_init(struct sha1_state *sha1)
{
assert(sha1 != NULL);
sha1->state[0] = 0x67452301UL;
@@ -202,7 +203,8 @@ void sha1_init(struct sha1_state *sha1)
@param in The data to hash
@param inlen The length of the data (octets)
*/
-void sha1_process(struct sha1_state *sha1,
+static void
+sha1_process(struct sha1_state *sha1,
const unsigned char *in, Py_ssize_t inlen)
{
Py_ssize_t n;
@@ -237,7 +239,8 @@ void sha1_process(struct sha1_state *sha1,
@param sha1 The hash state
@param out [out] The destination of the hash (20 bytes)
*/
-void sha1_done(struct sha1_state *sha1, unsigned char *out)
+static void
+sha1_done(struct sha1_state *sha1, unsigned char *out)
{
int i;