labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@apache.org
Subject svn commit: r603935 - in /labs/badca: Makefile.in openssl/rsamodule.c
Date Thu, 13 Dec 2007 15:17:18 GMT
Author: dreid
Date: Thu Dec 13 07:17:16 2007
New Revision: 603935

URL: http://svn.apache.org/viewvc?rev=603935&view=rev
Log:
Correctly adjust the ref count for RSA objects (missed one earlier)
Add some debug targets to run the tests under gdb.

Anyone know how to automatically start the tests when using gdb?


Modified:
    labs/badca/Makefile.in
    labs/badca/openssl/rsamodule.c

Modified: labs/badca/Makefile.in
URL: http://svn.apache.org/viewvc/labs/badca/Makefile.in?rev=603935&r1=603934&r2=603935&view=diff
==============================================================================
--- labs/badca/Makefile.in (original)
+++ labs/badca/Makefile.in Thu Dec 13 07:17:16 2007
@@ -18,10 +18,6 @@
 	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
 	@PYTHON@ @top_srcdir@/tests/runTests.py @top_srcdir@/tests Keys
 
-testkeygdb:
-	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
-	gdb --args @PYTHON@ @top_srcdir@/tests/runTests.py @top_srcdir@/tests Keys
-
 testcsr:
 	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
 	@PYTHON@ @top_srcdir@/tests/runTests.py @top_srcdir@/tests CSR
@@ -29,4 +25,20 @@
 testcert:
 	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
 	@PYTHON@ @top_srcdir@/tests/runTests.py @top_srcdir@/tests Cert
+
+debugkey:
+	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
+	gdb --args @PYTHON@ @top_srcdir@/tests/runTests.py @top_srcdir@/tests Keys
+
+debugcsr:
+	@echo "Type 'r' to start debugging..."
+	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
+	gdb --args @PYTHON@ @top_srcdir@/tests/runTests.py \
+	           @top_srcdir@/tests CSR
+
+debugcert:
+	@echo "Type 'r' to start debugging..."
+	PYTHONPATH=".:@EXT_PATH@:$$PYTHONPATH" \
+	gdb --args @PYTHON@ @top_srcdir@/tests/runTests.py \
+	           @top_srcdir@/tests Cert
 

Modified: labs/badca/openssl/rsamodule.c
URL: http://svn.apache.org/viewvc/labs/badca/openssl/rsamodule.c?rev=603935&r1=603934&r2=603935&view=diff
==============================================================================
--- labs/badca/openssl/rsamodule.c (original)
+++ labs/badca/openssl/rsamodule.c Thu Dec 13 07:17:16 2007
@@ -92,6 +92,8 @@
 
     if (pkey) {
         rsa = EVP_PKEY_get1_RSA(pkey);
+        if (rsa)
+            RSA_up_ref(rsa);
         EVP_PKEY_free(pkey);
     }
     return rsa;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message