]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Deprecated the key derivation method from netconf. The published
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 16 Nov 2010 14:23:46 +0000 (15:23 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 16 Nov 2010 14:23:46 +0000 (15:23 +0100)
RFC does not include this method and it is not known whether it has
been used at all in practice. No need to support it.

doc/cha-auth.texi
lib/includes/gnutls/compat.h
lib/includes/gnutls/gnutls.h.in

index 95517916bb0a2c8dc546a2549196d669565886d9..42fe4ec2c63e43a45baaaacd85bbe233f6acccef 100644 (file)
@@ -342,9 +342,10 @@ the hint, for example in the callback function, using
 @ref{gnutls_psk_client_get_hint}.
 
 There is no standard mechanism to derive a PSK key from a password
-specified by the TLS PSK document.  However, GnuTLS provides
+specified by the TLS PSK document.  GnuTLS provides
 @ref{gnutls_psk_netconf_derive_key} which follows the algorithm
-specified in @file{draft-ietf-netconf-tls-02.txt}.
+specified in @file{draft-ietf-netconf-tls-02.txt}. This method
+is deprecated and might be removed in later versions of GnuTLS.
 
 Some helper functions such as:
 
index da2bba9d856e478fc9ea80a4d2e66152ac0e174e..81e0b925e68ab0e2f24b7f5c9944930edcc09caf 100644 (file)
@@ -194,4 +194,9 @@ const void *gnutls_session_get_server_random (gnutls_session_t session) _GNUTLS_
 const void *gnutls_session_get_client_random (gnutls_session_t session) _GNUTLS_GCC_ATTR_DEPRECATED;
 const void *gnutls_session_get_master_secret (gnutls_session_t session) _GNUTLS_GCC_ATTR_DEPRECATED;
 
+int gnutls_psk_netconf_derive_key (const char *password,
+                                    const char *psk_identity,
+                                    const char *psk_identity_hint,
+                                    gnutls_datum_t * output_key) _GNUTLS_GCC_ATTR_DEPRECATED;
+
 #endif /* _GNUTLS_COMPAT_H */
index 4efc97a1a8e3fb9442c81398ce2e51af543a500a..c038c1a2a4997b4eb5b15fe04b87a186cf6182c8 100644 (file)
@@ -1423,11 +1423,6 @@ extern "C"
                                           res,
                                           gnutls_params_function * func);
 
-  int gnutls_psk_netconf_derive_key (const char *password,
-                                    const char *psk_identity,
-                                    const char *psk_identity_hint,
-                                    gnutls_datum_t * output_key);
-
   /**
    * gnutls_x509_subject_alt_name_t:
    * @GNUTLS_SAN_DNSNAME: DNS-name SAN.