]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
gnutls_srtp_get_profile_by_name -> gnutls_srtp_get_profile_id
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 1 Nov 2012 22:04:20 +0000 (23:04 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 1 Nov 2012 22:04:20 +0000 (23:04 +0100)
NEWS
doc/cha-intro-tls.texi
lib/ext/srtp.c
lib/includes/gnutls/gnutls.h.in
lib/libgnutls.map

diff --git a/NEWS b/NEWS
index b50a73568be58d18248ed2f5f2a915331aaca994..c68e4ceaf7e9f7ee02a382635acc23ffcd07988e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -33,7 +33,7 @@ gnutls_srtp_set_profile: Added
 gnutls_srtp_set_profile_direct: Added
 gnutls_srtp_get_selected_profile: Added
 gnutls_srtp_get_profile_name: Added
-gnutls_srtp_get_profile_by_name: Added
+gnutls_srtp_get_profile_id: Added
 gnutls_srtp_profile_t: Added
 dane_cert_type_name: Added
 dane_match_type_name: Added
index f53cc964726cffea392511cb4cf355cc4e05d5b6..d72ae2b61f8684479922a4e6732d2af20d179e58 100644 (file)
@@ -399,6 +399,7 @@ and they will be discussed in the subsections that follow.
 * HeartBeat::
 * Safe renegotiation::
 * OCSP status request::
+* SRTP::
 @end menu
 
 @node Maximum fragment length negotiation
@@ -592,6 +593,24 @@ ocsptool --ask --load-cert server_cert.pem --load-issuer the_issuer.pem
 Since version 3.1.3 GnuTLS clients transparently support the certificate status
 request.
 
+@node SRTP
+@subsection SRTP
+@cindex SRTP
+@cindex Secure RTP
+
+The TLS protocol was extended in @xcite{RFC5764} to provide keying material to the
+Secure RTP (SRTP) protocol. The SRTP protocol provides an encapsulation of encrypted
+data that is optimized for voice data. With the SRTP TLS extension two peers can
+negotiate keys using TLS or DTLS and obtain keying material for use with SRTP.
+
+To enable use the following functions.
+
+@showfuncB{gnutls_srtp_set_profile,gnutls_srtp_set_profile_direct}
+
+Other helper functions are listed below.
+
+@showfuncC{gnutls_srtp_get_selected_profile,gnutls_srtp_get_profile_name,gnutls_srtp_get_profile_id}
+
 @include sec-tls-app.texi
 
 @node On SSL 2 and older protocols
index c7b0e8663d231b6404603f243e14576276bec7ea..f0512cefb406e97b33b3ed6cd9672e6cffe61a9d 100644 (file)
@@ -105,7 +105,7 @@ static gnutls_srtp_profile_t find_profile (const char *str, const char *end)
 }
 
 /**
- * gnutls_srtp_get_profile_by_name
+ * gnutls_srtp_get_profile_id
  * @name: The name of the profile to look up
  * @profile: Will hold the profile id
  *
@@ -116,8 +116,8 @@ static gnutls_srtp_profile_t find_profile (const char *str, const char *end)
  *
  * Since 3.1.4
  **/
-int gnutls_srtp_get_profile_by_name (const char *name,
-                                     gnutls_srtp_profile_t *profile)
+int gnutls_srtp_get_profile_id (const char *name,
+                                gnutls_srtp_profile_t *profile)
 {
   *profile = find_profile (name, NULL);
   if (*profile == 0)
index 3a80fc9405b5156650e343300a3dc8a17fd5d449..60726d0d1b4d876021c21a66e098828da5ebfcdb 100644 (file)
@@ -990,8 +990,8 @@ gnutls_ecc_curve_t gnutls_ecc_curve_get(gnutls_session_t session);
                                         gnutls_srtp_profile_t *profile);
 
   const char *gnutls_srtp_get_profile_name (gnutls_srtp_profile_t profile);
-  int gnutls_srtp_get_profile_by_name (const char *name,
-                                       gnutls_srtp_profile_t *profile);
+  int gnutls_srtp_get_profile_id (const char *name,
+                                  gnutls_srtp_profile_t *profile);
 
   int gnutls_key_generate (gnutls_datum_t * key, unsigned int key_size);
 
index 975a32e072ba5793d53c7a357191472461191f7c..635e58a181508e4e25a4b4e8c45633c8b83c8109 100644 (file)
@@ -354,11 +354,6 @@ GNUTLS_1_4
     gnutls_srp_set_server_credentials_file;
     gnutls_srp_set_server_credentials_function;
     gnutls_srp_verifier;
-    gnutls_srtp_get_profile_by_name;
-    gnutls_srtp_get_profile_name;
-    gnutls_srtp_get_selected_profile;
-    gnutls_srtp_set_profile;
-    gnutls_srtp_set_profile_direct;
     gnutls_strdup;
     gnutls_strerror;
     gnutls_strerror_name;
@@ -866,6 +861,11 @@ GNUTLS_3_1_0 {
        gnutls_certificate_update_verify_flags;
        gnutls_certificate_verify_peers3;
        gnutls_certificate_verification_status_print;
+       gnutls_srtp_get_profile_id;
+       gnutls_srtp_get_profile_name;
+       gnutls_srtp_get_selected_profile;
+       gnutls_srtp_set_profile;
+       gnutls_srtp_set_profile_direct;
 } GNUTLS_3_0_0;
 
 GNUTLS_PRIVATE {