gnutls-commit
[Top][All Lists]
Advanced

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

[SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-55-g8dd2cec


From: Simon Josefsson
Subject: [SCM] GNU gnutls branch, master, updated. gnutls_2_9_7-55-g8dd2cec
Date: Thu, 05 Nov 2009 08:36:36 +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=8dd2cec35365352f23a07de8ec10f4b373d67560

The branch, master has been updated
       via  8dd2cec35365352f23a07de8ec10f4b373d67560 (commit)
       via  558611f1067ab4fff299eb8de6da2d1e372be809 (commit)
      from  c7d1fd6a1b3414aee4c2105274a7dbee8f3357cc (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 8dd2cec35365352f23a07de8ec10f4b373d67560
Author: Simon Josefsson <address@hidden>
Date:   Thu Nov 5 09:36:30 2009 +0100

    Fix NEWS blurb.  Shorten new API name.

commit 558611f1067ab4fff299eb8de6da2d1e372be809
Author: Simon Josefsson <address@hidden>
Date:   Thu Nov 5 09:26:17 2009 +0100

    Doc fix, add Since tag.

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

Summary of changes:
 NEWS                            |   18 +++++++++++----
 doc/manpages/Makefile.am        |    1 +
 lib/ext_signature.c             |   45 ++++++++++++++++++++-------------------
 lib/includes/gnutls/gnutls.h.in |    5 ++-
 lib/libgnutls.map               |    2 +-
 5 files changed, 41 insertions(+), 30 deletions(-)

diff --git a/NEWS b/NEWS
index 29af4e8..b2ef2f8 100644
--- a/NEWS
+++ b/NEWS
@@ -12,16 +12,18 @@ Reported by Tang Tong.
 ** extension and certificate verify field.
 This requires changes for TLS 1.2 servers and clients that use
 callbacks for certificate retrieval.  They are now required to check
-with gnutls_session_sign_algorithm_get_requested() whether the
-certificate they send complies with the peer's preferences in
-signature algorithms.
+with gnutls_sign_algorithm_get_requested() whether the certificate
+they send complies with the peer's preferences in signature
+algorithms.
 
 ** libgnutls: In server side when resuming a session do not overwrite the 
 ** initial session data with the resumed session data.
 
 ** libgnutls: Added support for AES-128, AES-192 and AES-256 in PKCS #8
 ** encryption.
-This affects also PKCS #12 encoded files.
+This affects also PKCS #12 encoded files.  This adds the following new
+enums: GNUTLS_CIPHER_AES_192_CBC, GNUTLS_PKCS_USE_PBES2_AES_128,
+GNUTLS_PKCS_USE_PBES2_AES_192, GNUTLS_PKCS_USE_PBES2_AES_256.
 
 ** libgnutls: Fix PKCS#12 encoding.
 The error you would get was "The OID is not supported.".  Problem
@@ -42,7 +44,13 @@ Reported by Andreas Metzler <address@hidden> in
 Thanks to Clytie Siddall.
 
 ** API and ABI modifications:
-No changes since last version.
+GNUTLS_CIPHER_AES_192_CBC: ADDED to gnutls/gnutls.h.
+GNUTLS_PKCS_USE_PBES2_AES_128: ADDED to gnutls/x509.h.
+GNUTLS_PKCS_USE_PBES2_AES_192: ADDED to gnutls/x509.h.
+GNUTLS_PKCS_USE_PBES2_AES_256: ADDED to gnutls/x509.h.
+GNUTLS_BAG_SECRET: ADDED to gnutls/pkcs12.h.
+GNUTLS_DIG_UNKNOWN: ADDED to gnutls/gnutls.h.
+gnutls_sign_algorithm_get_requested: ADDED.
 
 * Version 2.9.7 (released 2009-10-06)
 
diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am
index b894f7e..48d602d 100644
--- a/doc/manpages/Makefile.am
+++ b/doc/manpages/Makefile.am
@@ -43,6 +43,7 @@ APIMANS += gnutls_server_name_set.3
 APIMANS += gnutls_session_ticket_key_generate.3
 APIMANS += gnutls_session_ticket_enable_client.3
 APIMANS += gnutls_session_ticket_enable_server.3
+APIMANS += gnutls_session_sign_algorithm_get_requested.3
 APIMANS += gnutls_alert_get_name.3
 APIMANS += gnutls_alert_send.3
 APIMANS += gnutls_error_to_alert.3
diff --git a/lib/ext_signature.c b/lib/ext_signature.c
index 77b6089..9be866d 100644
--- a/lib/ext_signature.c
+++ b/lib/ext_signature.c
@@ -284,29 +284,30 @@ _gnutls_session_sign_algo_enabled (gnutls_session_t 
session,
 }
 
 /**
-  * gnutls_session_sign_algorithm_get - get signature algorithms requested by 
peer
-  * @session: is a #gnutls_session_t structure.
-  * @indx: is an index of the signature algorithm to return
-  * @algo: the returned certificate type will be stored there
-  *
-  * Returns the signature algorithm specified by index that was
-  * requested by the peer. If the specified index has no data
-  * available this function returns
-  * %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE.  If the negotiated TLS
-  * version does not support signature algorithms then
-  * %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned even for
-  * the first index.
-  *
-  * This function is usefull in the certificate callback functions
-  * to assist in selecting the correct certificate.
-  *
-  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
-  *   an error code is returned.
-  **/
+ * gnutls_sign_algorithm_get - get signature algorithms requested by peer
+ * @session: is a #gnutls_session_t structure.
+ * @indx: is an index of the signature algorithm to return
+ * @algo: the returned certificate type will be stored there
+ *
+ * Returns the signature algorithm specified by index that was
+ * requested by the peer. If the specified index has no data available
+ * this function returns %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE.  If
+ * the negotiated TLS version does not support signature algorithms
+ * then %GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned even
+ * for the first index.  The first index is 0.
+ *
+ * This function is usefull in the certificate callback functions
+ * to assist in selecting the correct certificate.
+ *
+ * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise
+ *   an error code is returned.
+ *
+ * Since: 2.10.0
+ **/
 int
-gnutls_session_sign_algorithm_get_requested (gnutls_session_t session,
-                                            int indx,
-                                            gnutls_sign_algorithm_t * algo)
+gnutls_sign_algorithm_get_requested (gnutls_session_t session,
+                                    size_t indx,
+                                    gnutls_sign_algorithm_t * algo)
 {
   gnutls_protocol_t ver = gnutls_protocol_get_version (session);
 
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
index e038a5d..115a3fe 100644
--- a/lib/includes/gnutls/gnutls.h.in
+++ b/lib/includes/gnutls/gnutls.h.in
@@ -403,8 +403,9 @@ extern "C" {
   gnutls_compression_get (gnutls_session_t session);
   gnutls_certificate_type_t
   gnutls_certificate_type_get (gnutls_session_t session);
-  int gnutls_session_sign_algorithm_get_requested (gnutls_session_t session,
-                    int indx, gnutls_sign_algorithm_t *algo);
+  int gnutls_sign_algorithm_get_requested (gnutls_session_t session,
+                                          size_t indx,
+                                          gnutls_sign_algorithm_t *algo);
 
   size_t gnutls_cipher_get_key_size (gnutls_cipher_algorithm_t algorithm);
   size_t gnutls_mac_get_key_size (gnutls_mac_algorithm_t algorithm);
diff --git a/lib/libgnutls.map b/lib/libgnutls.map
index 3c9b727..5e6f78d 100644
--- a/lib/libgnutls.map
+++ b/lib/libgnutls.map
@@ -579,7 +579,7 @@ GNUTLS_2_10
     gnutls_x509_crt_get_issuer_alt_name2;
     gnutls_x509_crt_get_issuer_alt_name;
     gnutls_x509_crt_get_issuer_alt_othername_oid;
-    gnutls_session_sign_algorithm_get_requested;
+    gnutls_sign_algorithm_get_requested;
 } GNUTLS_2_8;
 
 GNUTLS_PRIVATE {


hooks/post-receive
-- 
GNU gnutls




reply via email to

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