Browse Source

Refinements/Cleanup.

Michele Orrù 11 years ago
parent
commit
65e684e279
3 changed files with 7 additions and 5 deletions
  1. 2 1
      src/questions/metadata.c
  2. 1 1
      src/questions/pollardrho.c
  3. 4 3
      src/questions/williams+1.c

+ 2 - 1
src/questions/metadata.c

@@ -7,6 +7,7 @@
 #include <openssl/pem.h>
 #include <openssl/pem.h>
 #include <openssl/rsa.h>
 #include <openssl/rsa.h>
 #include <openssl/x509.h>
 #include <openssl/x509.h>
+
 #include "qa/questions/questions.h"
 #include "qa/questions/questions.h"
 
 
 
 
@@ -79,7 +80,7 @@ metadata_question_ask_crt(X509* crt)
 
 
 
 
     EVP_PKEY_free(pkey);
     EVP_PKEY_free(pkey);
-    return 1;
+    return 0;
 }
 }
 
 
 qa_question_t MetadataQuestion = {
 qa_question_t MetadataQuestion = {

+ 1 - 1
src/questions/pollardrho.c

@@ -7,7 +7,7 @@
  * order to attempt a factorization of N.
  * order to attempt a factorization of N.
  */
  */
 
 
-#include <openssl/x509.h>
+#include <openssl/rsa.h>
 
 
 #include <qa/questions/qarith.h>
 #include <qa/questions/qarith.h>
 #include <qa/questions/questions.h>
 #include <qa/questions/questions.h>

+ 4 - 3
src/questions/williams+1.c

@@ -19,9 +19,10 @@
  * Given a pair <Vᵢ, Vᵢ₋₁>, terms of a lucas sequence with parameter τ,
  * Given a pair <Vᵢ, Vᵢ₋₁>, terms of a lucas sequence with parameter τ,
  * compute <Vₕᵢ, Vₕᵢ₋₁>
  * compute <Vₕᵢ, Vₕᵢ₋₁>
  */
  */
-void lucas(BIGNUM *v, BIGNUM *w,
-           BIGNUM *h, BIGNUM *tau,
-           BN_CTX *ctx)
+void
+lucas(BIGNUM *v, BIGNUM *w,
+      BIGNUM *h, BIGNUM *tau,
+      BN_CTX *ctx)
 {
 {
   BIGNUM *vv;
   BIGNUM *vv;
   BIGNUM *vw;
   BIGNUM *vw;