[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Put some should-never-happen error messages off till 0....



Update of /home/minion/cvsroot/src/minion/src
In directory moria.mit.edu:/tmp/cvs-serv26464/src

Modified Files:
	crypt.c fec.c 
Log Message:
Put some should-never-happen error messages off till 0.0.6

Index: crypt.c
===================================================================
RCS file: /home/minion/cvsroot/src/minion/src/crypt.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- crypt.c	14 Jul 2003 15:38:50 -0000	1.27
+++ crypt.c	21 Aug 2003 21:32:30 -0000	1.28
@@ -326,12 +326,12 @@
                                  PROV_RSA_FULL,
                                  0)) {
                 if (GetLastError() != NTE_BAD_KEYSET) {
-                        /* XXXX005 error */
+                        /* XXXX006 error */
                         return 0;
                 }
                 if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL,
                                         CRYPT_NEWKEYSET)) {
-                        /* XXXX005 error */
+                        /* XXXX006 error */
                         return 0;
                 }
         }
@@ -365,7 +365,7 @@
         }
 
         if (!(p = getProvider())) {
-                TYPE_ERR("XXXX005 internal error 2 ");
+                TYPE_ERR("XXXX006 internal error 2 ");
                 return NULL;
         }
 
@@ -381,9 +381,9 @@
         Py_END_ALLOW_THREADS
         
         if (!r) {
-               /*XXXX005 error */
+               /*XXXX006 error */
                Py_DECREF(result);
-               TYPE_ERR("XXXX005 internal error ");
+               TYPE_ERR("XXXX006 internal error ");
                return NULL;
         }
 

Index: fec.c
===================================================================
RCS file: /home/minion/cvsroot/src/minion/src/fec.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- fec.c	18 Aug 2003 00:41:11 -0000	1.8
+++ fec.c	21 Aug 2003 21:32:30 -0000	1.9
@@ -192,7 +192,8 @@
  * i use malloc so many times, it is easier to put checks all in
  * one place.
  *
- * XXXX005 Pythonize this. -NM 
+ * XXXX Use Python's memory allocation instead, and raise an OOM error
+ * XXXX as appropriate.
  */
 static void *
 my_malloc(int sz, char *err_string)