This commit is contained in:
Christian Grothoff committed 2008-08-24 22:07:29 +00:00
1 parent fc198042d3
commit 1be634886d
5 files changed
+3 -140

No files matched your search

-3
View File
@@ -820,7 +820,6 @@ mhd_gtls_proc_cert_cert_req (mhd_gtls_session_t session, opaque * data,
int size, ret;
opaque *p;
mhd_gtls_cert_credentials_t cred;
cert_auth_info_t info;
ssize_t dsize;
int i, j;
enum MHD_GNUTLS_PublicKeyAlgorithm pk_algos[MAX_SIGN_ALGOS];
@@ -843,8 +842,6 @@ mhd_gtls_proc_cert_cert_req (mhd_gtls_session_t session, opaque * data,
return ret;
}
info = mhd_gtls_get_auth_info (session);
p = data;
dsize = data_size;
-2
View File
@@ -77,7 +77,6 @@ gen_rsa_export_server_kx (mhd_gtls_session_t session, opaque ** data)
gnutls_privkey *apr_pkey;
int apr_cert_list_length;
gnutls_datum_t signature, ddata;
cert_auth_info_t info;
mhd_gtls_cert_credentials_t cred;
cred = (mhd_gtls_cert_credentials_t)
@@ -123,7 +122,6 @@ gen_rsa_export_server_kx (mhd_gtls_session_t session, opaque ** data)
return ret;
}
info = mhd_gtls_get_auth_info (session);
mhd_gtls_rsa_export_set_pubkey (session, rsa_mpis[1], rsa_mpis[0]);
mhd_gtls_mpi_print (NULL, &n_m, rsa_mpis[0]);
-129
View File
@@ -29,94 +29,6 @@
/* TODO this file should be removed if session resumption will be abandoned */
/**
* gnutls_session_get_data - Returns all session parameters.
* @session: is a #mhd_gtls_session_t structure.
* @session_data: is a pointer to space to hold the session.
* @session_data_size: is the session_data's size, or it will be set by the function.
*
* Returns all session parameters, in order to support resuming.
* The client should call this, and keep the returned session, if he wants to
* resume that current version later by calling gnutls_session_set_data()
* This function must be called after a successful handshake.
*
* Resuming sessions is really useful and speedups connections after a succesful one.
**/
//int
//gnutls_session_get_data (mhd_gtls_session_t session,
// void *session_data, size_t * session_data_size)
//{
//
// gnutls_datum_t psession;
// int ret;
//
// if (session->internals.resumable == RESUME_FALSE)
// return GNUTLS_E_INVALID_SESSION;
//
// psession.data = session_data;
//
// ret = mhd_gtls_session_pack (session, &psession);
// if (ret < 0)
// {
// gnutls_assert ();
// return ret;
// }
// *session_data_size = psession.size;
//
// if (psession.size > *session_data_size)
// {
// ret = GNUTLS_E_SHORT_MEMORY_BUFFER;
// goto error;
// }
//
// if (session_data != NULL)
// memcpy (session_data, psession.data, psession.size);
//
// ret = 0;
//
//error:
// _gnutls_free_datum (&psession);
// return ret;
//}
/**
* gnutls_session_get_data2 - Returns all session parameters.
* @session: is a #mhd_gtls_session_t structure.
* @session_data: is a pointer to a datum that will hold the session.
*
* Returns all session parameters, in order to support resuming.
* The client should call this, and keep the returned session, if he wants to
* resume that current version later by calling gnutls_session_set_data()
* This function must be called after a successful handshake. The returned
* datum must be freed with gnutls_free().
*
* Resuming sessions is really useful and speedups connections after a succesful one.
**/
//int
//gnutls_session_get_data2 (mhd_gtls_session_t session, gnutls_datum_t * data)
//{
//
// int ret;
//
// if (data == NULL)
// {
// return GNUTLS_E_INVALID_REQUEST;
// }
//
// if (session->internals.resumable == RESUME_FALSE)
// return GNUTLS_E_INVALID_SESSION;
//
// ret = mhd_gtls_session_pack (session, data);
// if (ret < 0)
// {
// gnutls_assert ();
// return ret;
// }
//
// return 0;
//}
/**
* MHD_gtls_session_get_id - Returns session id.
* @session: is a #mhd_gtls_session_t structure.
@@ -158,44 +70,3 @@ MHD_gtls_session_get_id (mhd_gtls_session_t session,
return 0;
}
/**
* gnutls_session_set_data - Sets all session parameters
* @session: is a #mhd_gtls_session_t structure.
* @session_data: is a pointer to space to hold the session.
* @session_data_size: is the session's size
*
* Sets all session parameters, in order to resume a previously established
* session. The session data given must be the one returned by gnutls_session_get_data().
* This function should be called before MHD_gnutls_handshake().
*
* Keep in mind that session resuming is advisory. The server may
* choose not to resume the session, thus a full handshake will be
* performed.
*
* Returns a negative value on error.
*
**/
//int
//gnutls_session_set_data (mhd_gtls_session_t session,
// const void *session_data, size_t session_data_size)
//{
// int ret;
// gnutls_datum_t psession;
//
// psession.data = (opaque *) session_data;
// psession.size = session_data_size;
//
// if (session_data == NULL || session_data_size == 0)
// {
// gnutls_assert ();
// return GNUTLS_E_INVALID_REQUEST;
// }
// ret = mhd_gtls_session_unpack (session, &psession);
// if (ret < 0)
// {
// gnutls_assert ();
// return ret;
// }
//
// return 0;
//}