[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] HACKING: add note on magic comments
Update of /home/minion/cvsroot/src/minion/src
In directory moria.seul.org:/tmp/cvs-serv10387/src
Modified Files:
tls.c
Log Message:
HACKING: add note on magic comments
Packet/PacketHandler/BuildMessage/test:
Implement Reply Block format recently added to spec.
Common:
Improve documentation on secure deleting
MMTPServer/client:
Add stubs for keyid checking. Now blocking on spec for how to
hash a public key.
tls.c:
Fix mm_TLSSock_check -> mm_TLSSock_Check.
Everywhere else:
- Fix code style according to PEP-0008 guidelines
- Improve doc style to be closer to PEP-0257 guidelines
- General cleanups and removal of dead code.
Index: tls.c
===================================================================
RCS file: /home/minion/cvsroot/src/minion/src/tls.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tls.c 24 Jun 2002 20:28:19 -0000 1.1
+++ tls.c 25 Jun 2002 11:41:08 -0000 1.2
@@ -73,6 +73,7 @@
int sock;
PyObject *sockObj;
} mm_TLSSock;
+
#define mm_TLSSock_Check(v) ((v)->ob_type == &mm_TLSSock_Type)
/* XXXX Code to make new cert */
@@ -258,7 +259,7 @@
SSL *ssl;
int r;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
FAIL_IF_ARGS();
ssl = ((mm_TLSSock*)self)->ssl;
@@ -284,7 +285,7 @@
SSL *ssl;
int r, err;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
FAIL_IF_ARGS();
ssl = ((mm_TLSSock*)self)->ssl;
@@ -309,7 +310,7 @@
{
SSL *ssl;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
FAIL_IF_ARGS();
ssl = ((mm_TLSSock*)self)->ssl;
@@ -333,7 +334,7 @@
int r;
PyObject *res;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "i:read", kwlist,
&n))
return NULL;
@@ -383,7 +384,7 @@
SSL *ssl;
int r;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s#:write", kwlist,
&string, &stringlen))
return NULL;
@@ -418,7 +419,7 @@
SSL *ssl;
int r;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
FAIL_IF_ARGS();
ssl = ((mm_TLSSock*)self)->ssl;
@@ -454,7 +455,7 @@
mm_TLSSock_fileno(PyObject *self, PyObject *args, PyObject *kwargs)
{
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
FAIL_IF_ARGS();
return PyInt_FromLong(((mm_TLSSock*)self)->sock);
@@ -474,7 +475,7 @@
RSA *rsa;
mm_RSA *result;
- assert(mm_TLSSock_check(self));
+ assert(mm_TLSSock_Check(self));
FAIL_IF_ARGS();
ssl = ((mm_TLSSock*)self)->ssl;