gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_0-17-g5ed31


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_0-17-g5ed3148
Date: Wed, 30 Mar 2011 20:00:49 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=5ed31482f439a826235b2e17d8321a3b49745093

The branch, gnutls_2_12_x has been updated
       via  5ed31482f439a826235b2e17d8321a3b49745093 (commit)
      from  adfee35ae60800d633ad24c649f3b4d280cb336c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5ed31482f439a826235b2e17d8321a3b49745093
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Wed Mar 30 22:00:13 2011 +0200

    Generate certificate request with stricter permissions. Reported by Luca 
Capello.

-----------------------------------------------------------------------

Summary of changes:
 NEWS               |    3 +++
 src/certtool-gaa.c |    2 +-
 src/certtool.gaa   |    2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index ce1847c..5a7c682 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ See the end for copying conditions.
 
 * Version 2.12.0 (unreleased)
 
+** certtool: Generated certificate request with stricter permissions.
+Reported by Luca Capello.
+
 ** libgnutls: Bug fixes in opencdk code. Reported by Vitaly Kruglikov.
 
 ** libgnutls: Corrected windows system_errno() function prototype.
diff --git a/src/certtool-gaa.c b/src/certtool-gaa.c
index 8ae957a..a741a64 100644
--- a/src/certtool-gaa.c
+++ b/src/certtool-gaa.c
@@ -1190,7 +1190,7 @@ static int gaa_try(int gaa_num, int gaa_index, gaainfo 
*gaaval, char *opt_list)
        case GAAOPTID_generate_request:
        OK = 0;
 #line 30 "certtool.gaa"
-{ gaaval->action=ACTION_GENERATE_REQUEST; ;};
+{ gaaval->privkey_op=1; gaaval->action=ACTION_GENERATE_REQUEST; ;};
 
                return GAA_OK;
                break;
diff --git a/src/certtool.gaa b/src/certtool.gaa
index e3e9f1c..7c67af3 100644
--- a/src/certtool.gaa
+++ b/src/certtool.gaa
@@ -27,7 +27,7 @@ option (u, update-certificate) { 
$action=ACTION_UPDATE_CERTIFICATE; } "Update a
 
 option (p, generate-privkey) { $privkey_op=1; $action=ACTION_GENERATE_PRIVKEY; 
} "Generate a private key."
 
-option (q, generate-request) { $action=ACTION_GENERATE_REQUEST; } "Generate a 
PKCS #10 certificate request."
+option (q, generate-request) { $privkey_op=1; $action=ACTION_GENERATE_REQUEST; 
} "Generate a PKCS #10 certificate request."
 
 option (e, verify-chain) { $action=ACTION_VERIFY_CHAIN; } "Verify a PEM 
encoded certificate chain. The last certificate in the chain must be a self 
signed one."
 


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]