return ret;
}
-
-<<<<<<< gnutls_kx.c
/* This is the function for the client to send the certificate
* verify message
* FIXME: this function does almost nothing except sending shit to
}
-=======
-/* This is the function for the client to send the certificate
- * verify message
- */
-int _gnutls_send_client_certificate_verify(int cd, GNUTLS_STATE state)
-{
- uint8 *data;
- int ret = 0;
-#ifdef HARD_DEBUG
- fprintf(stderr, "Sending client certificate verify message\n");
-#endif
- switch (_gnutls_cipher_suite_get_kx_algo
- (state->gnutls_internals.current_cipher_suite)) {
- case GNUTLS_KX_DHE_DSS:
- data=gnutls_malloc(20);
- ret =
- _gnutls_send_handshake(cd, state, data,
- 20,
- GNUTLS_CERTIFICATE_VERIFY);
- gnutls_free(data);
- break;
- case GNUTLS_KX_DHE_RSA:
- data=gnutls_malloc(20+16);
- ret =
- _gnutls_send_handshake(cd, state, data,
- 20+16,
- GNUTLS_CERTIFICATE_VERIFY);
- gnutls_free(data);
- break;
- default:
- ret = 0;
- }
-
- return ret;
-}
-
-
->>>>>>> 1.16
int _gnutls_recv_server_kx_message(int cd, GNUTLS_STATE state)
{
KXAlgorithm algorithm;
#endif
_n_Y = n_Y;
gcry_mpi_scan(&state->gnutls_internals.client_Y,
-<<<<<<< gnutls_kx.c
GCRYMPI_FMT_USG, &data[2], &_n_Y);
-=======
- GCRYMPI_FMT_USG, &data[3], &_n_Y);
->>>>>>> 1.16
state->gnutls_internals.KEY =
gnutls_calc_dh_key(state->
gnutls_internals.client_Y,