summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnder Juaristi <a@juaristi.eus>2018-01-06 13:21:46 +0100
committerAnder Juaristi <a@juaristi.eus>2018-01-06 13:21:46 +0100
commitc486b5539c0b15934a93e82f3a41057fc278a138 (patch)
tree40787478edf8227a4e6e3b9cabc140ad462f7db5
parentc47be2df8073b516d22e7dfd0e2dbd405567f34b (diff)
downloadgnutls-c486b5539c0b15934a93e82f3a41057fc278a138.tar.gz
TLS 1.3: Mark obsolete functions for removal
Signed-off-by: Ander Juaristi <a@juaristi.eus>
-rw-r--r--lib/ext/session_ticket.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/lib/ext/session_ticket.c b/lib/ext/session_ticket.c
index 4320e83aa9..b7a286ffe6 100644
--- a/lib/ext/session_ticket.c
+++ b/lib/ext/session_ticket.c
@@ -269,45 +269,7 @@ cleanup:
int _gnutls_decrypt_session_ticket(gnutls_session_t session, struct ticket_st *ticket)
{
- int ret;
- gnutls_ext_priv_data_t epriv;
- session_ticket_ext_st *priv = NULL;
-
- ret = _gnutls_hello_ext_get_priv(session,
- GNUTLS_EXTENSION_SESSION_TICKET,
- &epriv);
- if (ret < 0)
- return 0;
- priv = epriv;
-
- /* TODO fix this */
-// ret = decrypt_ticket(session, priv, ticket);
-// if (ret < 0)
-// return 0;
-
- return 0;
-}
-
-int _gnutls_encrypt_session_ticket(gnutls_session_t session, struct ticket_st *ticket)
-{
- int ret;
- gnutls_ext_priv_data_t epriv;
- session_ticket_ext_st *priv = NULL;
-
- ret = _gnutls_hello_ext_get_priv(session,
- GNUTLS_EXTENSION_SESSION_TICKET,
- &epriv);
- if (ret < 0)
- return 0;
-
- /* Generate a ticket and encrypt it with priv->key */
- /* TODO fix this */
-// ret = encrypt_ticket(session, priv, ticket);
-// if (ret < 0) {
-// gnutls_assert();
-// return ret;
-// }
-
+ /* TODO this function is no longer needed and should be removed */
return 0;
}