CVS: crypto/src _fastmath.c,1.6,1.7

"A.M. Kuchling" <[email protected]> Thu, 03 Apr 2003 12:39:46 -0800
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Update of /cvsroot/pycrypto/crypto/src
In directory sc8-pr-cvs1:/tmp/cvs-serv817

Modified Files:
	_fastmath.c 
Log Message:
Rename hasprivate to has_private

Index: _fastmath.c
===================================================================
RCS file: /cvsroot/pycrypto/crypto/src/_fastmath.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- _fastmath.c	3 Apr 2003 20:26:52 -0000	1.6
+++ _fastmath.c	3 Apr 2003 20:39:41 -0000	1.7
@@ -90,7 +90,7 @@
 static PyObject *dsaKey__sign (dsaKey *, PyObject *);
 static PyObject *dsaKey__verify (dsaKey *, PyObject *);
 static PyObject *dsaKey_size (dsaKey *, PyObject *);
-static PyObject *dsaKey_hasprivate (dsaKey *, PyObject *);
+static PyObject *dsaKey_has_private (dsaKey *, PyObject *);
 
 static void rsaKey_dealloc (rsaKey *);
 static PyObject *rsaKey_getattr (rsaKey *, char *);
@@ -100,7 +100,7 @@
 static PyObject *rsaKey__blind (rsaKey *, PyObject *);
 static PyObject *rsaKey__unblind (rsaKey *, PyObject *);
 static PyObject *rsaKey_size (rsaKey *, PyObject *);
-static PyObject *rsaKey_hasprivate (rsaKey *, PyObject *);
+static PyObject *rsaKey_has_private (rsaKey *, PyObject *);
 
 static int
 dsaSign (dsaKey * key, mpz_t m, mpz_t k, mpz_t r, mpz_t s)
@@ -247,7 +247,7 @@
 	 "Verify that the signature is valid."},
 	{"size", (PyCFunction) dsaKey_size, METH_VARARGS,
 	 "Return the number of bits that this key can handle."},
-	{"hasprivate", (PyCFunction) dsaKey_hasprivate, METH_VARARGS,
+	{"has_private", (PyCFunction) dsaKey_has_private, METH_VARARGS,
 	 "Return 1 or 0 if this key does/doesn't have a private key."},
 	{NULL, NULL, 0, NULL}
 };
@@ -287,7 +287,7 @@
  	 "Unblind the given long."},
 	{"size", (PyCFunction) rsaKey_size, METH_VARARGS,
 	 "Return the number of bits that this key can handle."},
-	{"hasprivate", (PyCFunction) rsaKey_hasprivate, METH_VARARGS,
+	{"has_private", (PyCFunction) rsaKey_has_private, METH_VARARGS,
 	 "Return 1 or 0 if this key does/doesn't have a private key."},
 	{NULL, NULL, 0, NULL}
 };
@@ -427,7 +427,7 @@
 }
 
 PyObject *
-dsaKey_hasprivate (dsaKey * key, PyObject * args)
+dsaKey_has_private (dsaKey * key, PyObject * args)
 {
 	if (!PyArg_ParseTuple (args, ""))
 		return NULL;
@@ -682,7 +682,7 @@
 }
 
 PyObject *
-rsaKey_hasprivate (rsaKey * key, PyObject * args)
+rsaKey_has_private (rsaKey * key, PyObject * args)
 {
 	if (!PyArg_ParseTuple (args, ""))
 		return NULL;



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/