gnutls-commit
[Top][All Lists]
Advanced

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

[SCM] GNU gnutls branch, gnutls_3_0_x-2, updated. gnutls_3_0_24-3-g5d511


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, gnutls_3_0_x-2, updated. gnutls_3_0_24-3-g5d511c8
Date: Mon, 01 Oct 2012 19:35:53 +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=5d511c883afc398444f422ce1ae8c38e75491227

The branch, gnutls_3_0_x-2 has been updated
       via  5d511c883afc398444f422ce1ae8c38e75491227 (commit)
      from  7b9d0158f022b8468ea7cd362ef9142889f4ff29 (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 5d511c883afc398444f422ce1ae8c38e75491227
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Mon Oct 1 21:32:51 2012 +0200

    gnutls_ocsp_resp_check_crt() accepts the response index.

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

Summary of changes:
 lib/includes/gnutls/ocsp.h |    6 +++---
 lib/x509/ocsp.c            |    6 ++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/lib/includes/gnutls/ocsp.h b/lib/includes/gnutls/ocsp.h
index 70343a2..52ea028 100644
--- a/lib/includes/gnutls/ocsp.h
+++ b/lib/includes/gnutls/ocsp.h
@@ -249,9 +249,9 @@ extern "C"
                               unsigned int *verify,
                               unsigned int flags);
 
-int
-gnutls_ocsp_resp_check_crt (gnutls_ocsp_resp_t resp,
-                           gnutls_x509_crt_t crt);
+  int gnutls_ocsp_resp_check_crt (gnutls_ocsp_resp_t resp,
+                                  unsigned int indx,
+                                  gnutls_x509_crt_t crt);
 
 #ifdef __cplusplus
 }
diff --git a/lib/x509/ocsp.c b/lib/x509/ocsp.c
index 3aca0f5..d3849e8 100644
--- a/lib/x509/ocsp.c
+++ b/lib/x509/ocsp.c
@@ -1277,6 +1277,7 @@ gnutls_ocsp_resp_get_produced (gnutls_ocsp_resp_t resp)
 /**
  * gnutls_ocsp_resp_check_crt:
  * @resp: should contain a #gnutls_ocsp_resp_t structure
+ * @indx: Specifies response number to get. Use (0) to get the first one.
  * @crt: The certificate to check
  *
  * This function will check whether the OCSP response
@@ -1287,6 +1288,7 @@ gnutls_ocsp_resp_get_produced (gnutls_ocsp_resp_t resp)
  **/
 int
 gnutls_ocsp_resp_check_crt (gnutls_ocsp_resp_t resp,
+                            unsigned int indx,
                            gnutls_x509_crt_t crt)
 {
 int ret;
@@ -1297,7 +1299,7 @@ gnutls_datum_t dn = {NULL, 0};
 uint8_t cdn_hash[MAX_HASH_SIZE];
 size_t t, hash_len;
 
-  ret = gnutls_ocsp_resp_get_single (resp, 0, &digest, &rdn_hash, NULL,
+  ret = gnutls_ocsp_resp_get_single (resp, indx, &digest, &rdn_hash, NULL,
                                      &rserial, NULL, NULL, NULL, NULL, NULL);
   if (ret < 0)
     return gnutls_assert_val(ret);
@@ -1374,7 +1376,7 @@ cleanup:
 /**
  * gnutls_ocsp_resp_get_single:
  * @resp: should contain a #gnutls_ocsp_resp_t structure
- * @indx: Specifies which extension OID to get. Use (0) to get the first one.
+ * @indx: Specifies response number to get. Use (0) to get the first one.
  * @digest: output variable with #gnutls_digest_algorithm_t hash algorithm
  * @issuer_name_hash: output buffer with hash of issuer's DN
  * @issuer_key_hash: output buffer with hash of issuer's public key


hooks/post-receive
-- 
GNU gnutls



reply via email to

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