gnutls_privkey_export_rsa_raw2: Added
gnutls_privkey_export_dsa_raw2: Added
gnutls_privkey_export_ecc_raw2: Added
+gnutls_priority_set2: Added
GNUTLS_EXPORT_FLAG_NO_LZ: Added
GNUTLS_DT_IP_ADDRESS: Added
GNUTLS_X509_CRT_FLAG_IGNORE_SANITY: Added
gnutls versions (they are periodically updated to account for cryptographic
advances while providing compatibility with old clients and servers).
-@showfuncB{gnutls_priority_set_direct,gnutls_priority_set}
+@showfuncB{gnutls_priority_set_direct,gnutls_priority_set2}
@float Table,tab:prio-keywords
@multitable @columnfractions .20 .70
If you implement an application that has a configuration file, we
recommend that you make it possible for users or administrators to
specify a GnuTLS protocol priority string, which is used by your
-application via @funcref{gnutls_priority_set}. To allow the best
+application via @funcref{gnutls_priority_set2}. To allow the best
flexibility, make it possible to have a different priority string for
different incoming IP addresses.
@funcintref{gnutls_compression_get_name}, @funcintref{gnutls_compression_list},
and @funcintref{gnutls_compression_get_id}.
+@item The @funcref{gnutls_priority_set} has been superseded by @funcref{gnutls_priority_set2}.
+@tab The function @funcref{gnutls_priority_set2} allows for sharing priority
+caches across multiple sessions reducing allocated memory per session.
+
@end multitable
continue;
gnutls_init(&session, GNUTLS_SERVER | GNUTLS_DATAGRAM);
- gnutls_priority_set(session, priority_cache);
+ gnutls_priority_set2(session, priority_cache, 0);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
x509_cred);
client_len = sizeof(sa_cli);
for (;;) {
gnutls_init(&session, GNUTLS_SERVER);
- gnutls_priority_set(session, priority_cache);
+ gnutls_priority_set2(session, priority_cache, 0);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
x509_cred);
gnutls_credentials_set(session, GNUTLS_CRD_PSK, psk_cred);
client_len = sizeof(sa_cli);
for (;;) {
CHECK(gnutls_init(&session, GNUTLS_SERVER));
- CHECK(gnutls_priority_set(session, priority_cache));
+ CHECK(gnutls_priority_set2(session, priority_cache, 0));
CHECK(gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
x509_cred));
* must remain valid for the lifetime of the session.
*
* Returns: %GNUTLS_E_SUCCESS on success, or an error code.
+ *
+ * Since: 3.6.0
**/
int
gnutls_priority_set2(gnutls_session_t session, gnutls_priority_t priority, unsigned int flags)